1 #ifndef ALITREEPLAYER_H 2 #define ALITREEPLAYER_H 71 #include "TTreePlayer.h" 72 #include "TTreeFormula.h" 79 virtual Int_t
Compile(
const char *expression =
"");
80 virtual char *
PrintValue(Int_t mode = 0)
const;
81 virtual char *
PrintValue(Int_t mode, Int_t instance,
const char *decform =
"9.9")
const;
98 static TObjArray * selectMetadata(TTree *
tree, TString query, Int_t verbose, TString *idList=NULL);
99 static TObjArray * selectTreeInfo(TTree* tree, TString query,Int_t verbose);
100 static Int_t selectWhatWhereOrderBy(TTree * tree, TString what, TString where, TString orderBy, Int_t firstentry, Int_t nentries, TString outputFormat, TString outputName);
101 static TString printSelectedTreeInfo(TTree*tree, TString infoType, TString regExpFriend, TString regExpTag, Int_t verbose);
102 static TObjArray * MakeHistograms(TTree * tree, TString hisString, TString defaultCut, Int_t firstEntry, Int_t lastEntry, Int_t chunkSize=-1, Int_t verbose=1);
103 static TPad * DrawHistograms(TPad * pad,
TObjArray *
hisArray, TString drawExpression,
TObjArray *keepArray=0, Int_t verbose=0);
104 static void MakeCacheTree(TTree * tree, TString varList, TString outFile, TString outTree, TCut selection);
106 template <
typename T>
static Long64_t BinarySearchSmaller(Long64_t n,
const T *
array, T value);
107 enum TStatType {kUndef=-1,
kEntries,
kSum,
kMean,
kRMS,
kMedian,
kLTM,
kLTMRMS, kMedianLeft,kMedianRight,
kMax,kMin};
108 static Int_t GetStatType(
const TString &
stat);
109 static void AddStatInfo(TTree* treeLeft, TTree * treeRight ,
const TString refQuery, Double_t deltaT,
110 const TString statString=
"median:medianLeft:medianRight:RMS:Mean:LTM0.60:LTMRMS0.60:Max:Min",
111 Int_t maxEntries=100000000);
144 pind = std::lower_bound(array, array + n, value);
145 return ( pind - array - 1);
Set of functions to extend functionality of the TTreePlayer.
static Long64_t BinarySearchSmaller(Long64_t n, const T *array, T value)