#include "TROOT.h"
#include "TTreeFormula.h"
#include "TTree.h"
#include "TBranch.h"
#include "TBranchObject.h"
#include "TFunction.h"
#include "TClonesArray.h"
#include "TLeafB.h"
#include "TLeafC.h"
#include "TLeafObject.h"
#include "TDataMember.h"
#include "TMethodCall.h"
#include "TCutG.h"
#include "TRandom.h"
#include "TInterpreter.h"
#include "TDataType.h"
#include "TStreamerInfo.h"
#include "TStreamerElement.h"
#include "TBranchElement.h"
#include "TLeafElement.h"
#include "TArrayI.h"
#include "TAxis.h"
#include "TError.h"
#include "TVirtualCollectionProxy.h"
#include "TString.h"
#include "TTimeStamp.h"
#include "TMath.h"
#include "TVirtualRefProxy.h"
#include "TTreeFormulaManager.h"
#include "TFormLeafInfo.h"
#include "TMethod.h"
#include "TBaseClass.h"
#include "TFormLeafInfoReference.h"
#include "TEntryList.h"
#include <ctype.h>
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <typeinfo>
#include <algorithm>
Go to the source code of this file.
Defines | |
#define | TT_EVAL_INIT |
#define | TREE_EVAL_INIT |
#define | TT_EVAL_INIT_LOOP |
#define | TREE_EVAL_INIT_LOOP |
Functions | |
ClassImp (TTreeFormula) inline static void R__LoadBranch(TBranch *br | |
Double_t | Summing (TTreeFormula *sum) |
Double_t | FindMin (TTreeFormula *arr) |
Double_t | FindMax (TTreeFormula *arr) |
Double_t | FindMin (TTreeFormula *arr, TTreeFormula *condition) |
Double_t | FindMax (TTreeFormula *arr, TTreeFormula *condition) |
Variables | |
const Int_t | kMaxLen = 1024 |
R__EXTERN TTree * | gTree |
Long64_t | entry |
#define TREE_EVAL_INIT |
Value:
const Int_t real_instance = GetRealInstance(instance,0); \ \ if (real_instance>fNdata[0]) return 0; \ \ if (fAxis) { \ char * label; \ /* This portion is a duplicate (for speed reason) of the code \ located in the main for loop at "a tree string" (and in EvalStringInstance) */ \ label = (char*)GetLeafInfo(0)->GetValuePointer((TLeaf*)0x0,instance); \ Int_t bin = fAxis->FindBin(label); \ return bin-0.5; \ }
Definition at line 3680 of file TTreeFormula.cxx.
#define TREE_EVAL_INIT_LOOP |
Value:
/* Now let calculate what physical instance we really need. */ \ const Int_t real_instance = GetRealInstance(instance,code); \ \ if (real_instance>fNdata[code]) return 0;
Definition at line 3719 of file TTreeFormula.cxx.
#define TT_EVAL_INIT |
Value:
TLeaf *leaf = (TLeaf*)fLeaves.UncheckedAt(0); \ \ const Int_t real_instance = GetRealInstance(instance,0); \ \ if (instance==0) fNeedLoading = kTRUE; \ if (real_instance>fNdata[0]) return 0; \ \ /* Since the only operation in this formula is reading this branch, \ we are guaranteed that this function is first called with instance==0 and \ hence we are guaranteed that the branch is always properly read */ \ \ if (fNeedLoading) { \ fNeedLoading = kFALSE; \ TBranch *br = leaf->GetBranch(); \ Long64_t tentry = br->GetTree()->GetReadEntry(); \ R__LoadBranch(br,tentry,fQuickLoad); \ } \ \ if (fAxis) { \ char * label; \ /* This portion is a duplicate (for speed reason) of the code \ located in the main for loop at "a tree string" (and in EvalStringInstance) */ \ if (fLookupType[0]==kDirect) { \ label = (char*)leaf->GetValuePointer(); \ } else { \ label = (char*)GetLeafInfo(0)->GetValuePointer(leaf,instance); \ } \ Int_t bin = fAxis->FindBin(label); \ return bin-0.5; \ }
Definition at line 3651 of file TTreeFormula.cxx.
#define TT_EVAL_INIT_LOOP |
Value:
TLeaf *leaf = (TLeaf*)fLeaves.UncheckedAt(code); \ \ /* Now let calculate what physical instance we really need. */ \ const Int_t real_instance = GetRealInstance(instance,code); \ \ if (willLoad) { \ TBranch *branch = (TBranch*)fBranches.UncheckedAt(code); \ if (branch) { \ Long64_t treeEntry = branch->GetTree()->GetReadEntry(); \ R__LoadBranch(branch,treeEntry,fQuickLoad); \ } else if (fDidBooleanOptimization) { \ branch = leaf->GetBranch(); \ Long64_t treeEntry = branch->GetTree()->GetReadEntry(); \ if (branch->GetReadEntry() != treeEntry) branch->GetEntry( treeEntry ); \ } \ } else { \ /* In the cases where we are behind (i.e. right of) a potential boolean optimization \ this tree variable reading may have not been executed with instance==0 which would \ result in the branch being potentially not read in. */ \ if (fDidBooleanOptimization) { \ TBranch *br = leaf->GetBranch(); \ Long64_t treeEntry = br->GetTree()->GetReadEntry(); \ if (br->GetReadEntry() != treeEntry) br->GetEntry( treeEntry ); \ } \ } \ if (real_instance>fNdata[code]) return 0;
Definition at line 3693 of file TTreeFormula.cxx.
ClassImp | ( | TTreeFormula | ) |
Double_t @8738::FindMax | ( | TTreeFormula * | arr, | |
TTreeFormula * | condition | |||
) | [static] |
Definition at line 3791 of file TTreeFormula.cxx.
Double_t @8738::FindMax | ( | TTreeFormula * | arr | ) | [static] |
Definition at line 3746 of file TTreeFormula.cxx.
Double_t @8738::FindMin | ( | TTreeFormula * | arr, | |
TTreeFormula * | condition | |||
) | [static] |
Definition at line 3760 of file TTreeFormula.cxx.
Double_t @8738::FindMin | ( | TTreeFormula * | arr | ) | [static] |
Definition at line 3732 of file TTreeFormula.cxx.
References TTreeFormula::EvalInstance(), TTreeFormula::GetNdata(), i, and len.
Double_t @8738::Summing | ( | TTreeFormula * | sum | ) | [static] |
Definition at line 3726 of file TTreeFormula.cxx.
Definition at line 96 of file TTreeFormula.cxx.
Referenced by TGPopupMenu::Activate(), RooStats::MarkovChain::Add(), TLDAPServer::AddEntry(), RooStats::MarkovChain::AddFast(), TUploadDataSetDlg::AddFiles(), TSpider::AddVariable(), alloc_color(), TFileDrawMap::AnimateTree(), TChainIndex::Append(), AppendLink(), TGRootIDE::Back(), TGHtmlBrowser::Back(), TTreeViewer::BuildInterface(), TGListTree::Checked(), TGListTree::Clicked(), TGListView::Clicked(), TGContainer::Clicked(), TTreePlayer::CopyTree(), create_asimage_list_entry(), RooStats::MCMCInterval::CreateHist(), TRootContextMenu::CreateMenu(), TGM::CreateSession(), RooStats::MCMCInterval::CreateSparseHist(), XSElementList::CurrentZ(), TLegend::DeleteEntry(), TGPopupMenu::DeleteEntry(), TDocDirective::DeleteOutputFiles(), dib_data_to_scanline(), XrdClientAdmin::DirList_low(), TestFileList::DisplayFile(), TGRootIDE::DisplayFile(), TGListTree::DoubleClicked(), TGListView::DoubleClicked(), TGContainer::DoubleClicked(), Draw_Slave_Access(), TRootContextMenu::DrawEntry(), TGPopupMenu::DrawEntry(), TGuiBldPopupMenu::DrawEntry(), drr_func_cache_init(), drr_func_cache_push(), drr_func_entry_free(), drr_generic_method(), drr_method_missing(), TFileDrawMap::DumpObject(), TLegend::EditEntryAttFill(), TLegend::EditEntryAttLine(), TLegend::EditEntryAttMarker(), TLegend::EditEntryAttText(), XrdOucAvahiBonjour::EntryGroupReply(), EventInfo(), TMemStatShow::EventInfo1(), TMemStatShow::EventInfo2(), filename_completion_function(), TTreePerfStats::FileReadEvent(), Roo1DTable::fill(), TBranchElement::Fill(), TTreeCacheUnzip::FillBuffer(), TTreeCache::FillBuffer(), TFitEditor::FillDataSetList(), format_asimage_list_entry_details(), TGHtmlBrowser::Forward(), TGRootIDE::Forward(), get_first_set(), RooStats::MarkovChain::GetAsSparseHist(), TCollection::GetCollectionEntryName(), TSAM::GetDatasets(), TSAM::GetDSetFiles(), TSAM::GetDSetLocations(), TLegend::GetEntry(), TAlienResult::GetEntryList(), TTree::GetEvent(), TBranch::GetEvent(), TGLiteResult::GetFileName(), TAlienResult::GetFileName(), THtml::TPathDefinition::GetFileNameFromInclude(), TGLiteResult::GetFileNamePath(), TAlienResult::GetFileNamePath(), TAlienResult::GetKey(), TGLiteResult::GetKey(), TGMenuBar::GetLastOnLeft(), TGNumberEntry::GetLayoutManager(), TGLVContainer::GetMaxSubnameWidth(), TLDAPServer::GetNamingContexts(), TLDAPResult::GetNext(), TFileDrawMap::GetObjectInfoDir(), TGLiteResult::GetPath(), TAlienResult::GetPath(), XSReactionDlg::GetString(), TLDAPServer::GetSubschemaSubentry(), TBranchElement::GetValue(), TTreeTableInterface::GetValue(), TTreeTableInterface::GetValueAsString(), TBranchElement::GetValuePointer(), XSElementList::GetZ(), GRSTgaclAclAddEntry(), GRSTgaclAclParse(), GRSTgaclAclPrint(), GRSTgaclAclTestexclUser(), GRSTgaclAclTestUser(), GRSTgaclEntriesFree(), GRSTgaclEntryAddCred(), GRSTgaclEntryAllowPerm(), GRSTgaclEntryDelCred(), GRSTgaclEntryDenyPerm(), GRSTgaclEntryFree(), GRSTgaclEntryParse(), GRSTgaclEntryPrint(), GRSTgaclEntryUnallowPerm(), GRSTgaclEntryUndenyPerm(), GRSTxacmlAclParse(), GRSTxacmlAclPrint(), GRSTxacmlEntryParse(), GRSTxacmlEntryPrint(), gxv_EntryTable_validate(), gxv_StateArray_validate(), gxv_XEntryTable_validate(), gxv_XStateArray_validate(), TGSplitButton::HandleButton(), TGSplitButton::HandleKey(), TRootDialog::HandleKey(), TGSplitButton::HandleSButton(), TTreeTableInterface::InitEntries(), TSpider::InitVariables(), TBranchElement::IsMissingCollection(), TEveGListTreeEditorFrame::ItemBelowMouse(), TEveGListTreeEditorFrame::ItemKeyPress(), TGListTree::KeyPressed(), TGMenuBar::Layout(), LDAPExample(), load_asimage_list_entry_data(), TChain::Loop(), TGeoManager::MakeAlignablePN(), TTreeViewer::MapBranch(), memstat(), TLDAPServer::ModifyEntry(), TGListTree::MouseOver(), TTreeViewer::NewExpression(), TSessionFrame::OnBtnAddClicked(), TSessionFrame::OnBtnDownClicked(), TSessionFrame::OnBtnRemoveClicked(), TSessionFrame::OnBtnUpClicked(), TSessionOutputFrame::OnElementClicked(), TNewChainDlg::OnElementClicked(), TSessionOutputFrame::OnElementDblClicked(), TSessionViewer::OnListTreeClicked(), TSessionViewer::OnListTreeDoubleClicked(), TWinNTSystem::OpenDirectory(), TPolyMarker3D::PaintH3(), TLegend::PaintPrimitives(), pcre_get_stringnumber(), pcre_get_stringtable_entries(), TTreePlayer::Principal(), TCollection::PrintCollectionEntry(), TMap::PrintCollectionEntry(), TQUndoManager::PrintCollectionEntry(), Roo1DTable::printMultiline(), Roo1DTable::printValue(), TTreePlayer::Process(), TProofPlayer::Process(), TDocOutput::ProcessDocInDir(), TGListView::ProcessMessage(), TGHtmlBrowser::ProcessMessage(), TGListBox::ProcessMessage(), TLeafI::ReadBasket(), TLeafO::ReadBasket(), TLeafS::ReadBasket(), TLeafC::ReadBasket(), TLeafD::ReadBasket(), TLeafB::ReadBasket(), TLeafF::ReadBasket(), TLeafL::ReadBasket(), THtml::TFileSysDir::Recurse(), TLegend::RecursiveRemove(), TRootBrowser::RecursiveReparent(), ref_asimage_list_entry(), XrdOucAvahiBonjour::RegisterEntries(), XrdOucAvahiBonjour::RegisterReply(), XrdOucAppleBonjour::RegisterReply(), XrdOucAppleBonjour::RegisterService(), XrdOucAvahiBonjour::RegisterService(), TGListTree::ReturnPressed(), XrdProofdAux::RmDir(), TLegend::SavePrimitive(), TTreePlayer::Scan(), TGeoManager::SetAlignableEntry(), TSpider::SetCurrentEntries(), TMemStat::SetCurrentStamp(), TGSelectBox::SetEntry(), TLegend::SetEntryLabel(), TLegend::SetEntryOption(), TTree::SetEventList(), TGL5DDataSetEditor::SetIsoTabWidgets(), TGLiteResult::SetKey(), TAlienResult::SetKey(), TGSplitButton::SetMenuState(), TGSplitButton::SetSplit(), TSPlot::SetTreeSelection(), TMemStatShow::Show(), TFitEditor::ShowObjectName(), TLM::StartSession(), TEntryList::Subtract(), TRootDialog::TabPressed(), TSelectorDraw::TakeEstimate(), TChainIndex::TChainIndex(), testTextEntries(), TextEntryWindow::TextEntryWindow(), TGSplitButton::TGSplitButton(), TLegendEntry::TLegendEntry(), tt_face_free_name(), tt_face_load_font_dir(), tt_face_load_loca(), tt_face_load_name(), tt_face_lookup_table(), tt_name_entry_ascii_from_other(), tt_name_entry_ascii_from_utf16(), unref_asimage_list_entry(), TTreeViewer::UpdateCombo(), XSReactionDlg::UpdateContainer(), TSessionFrame::UpdatePackages(), and TUploadDataSetDlg::UploadDataSet().
Definition at line 57 of file TTreeFormula.cxx.
Definition at line 56 of file TTreeFormula.cxx.