12 #ifndef ROOT_TTreePlayer 13 #define ROOT_TTreePlayer 70 const char *macrofilename,
const char *cutfilename,
74 virtual Int_t Fit(
const char *formula ,
const char *varexp,
const char *selection,
Option_t *option ,
110 const char *macrofilename = 0,
const char *cutfilename = 0,
111 const char *option = 0,
Int_t maxUnrolling = 3);
void DeleteSelectorFromFile()
Delete any selector created by this object.
Principal Components Analysis (PCA)
void SetScanFileName(const char *name)
virtual Long64_t GetEntriesToProcess(Long64_t firstentry, Long64_t nentries) const
return the number of entries to be processed this function checks that nentries is not bigger than th...
TTreeFormula * GetVar(Int_t i) const
Return the TTreeFormula corresponding to the i-th component of the request formula (where the compone...
Abstract interface for Tree Index.
virtual Double_t * GetVal(Int_t i) const
Return the last values corresponding to the i-th component of the formula being processed (where the ...
virtual Double_t * GetV2() const
TSelectorDraw * fSelector
Pointer to histogram used for the projection.
const char * GetNameByIndex(TString &varexp, Int_t *index, Int_t colindex)
Set to the selector address when it's entry list needs to be updated by the UpdateFormulaLeaves funct...
virtual Long64_t Scan(const char *varexp, const char *selection, Option_t *option, Long64_t nentries, Long64_t firstentry)
Loop on Tree and print entries passing selection.
virtual void SetTree(TTree *t)
virtual Double_t * GetV4() const
TTreeFormula * GetSelect() const
virtual Int_t GetDimension() const
TPrincipal * Principal(const char *varexp, const char *selection, Option_t *option, Long64_t nentries, Long64_t firstentry)
Interface to the Principal Components Analysis class.
virtual Long64_t DrawSelect(const char *varexp, const char *selection, Option_t *option, Long64_t nentries, Long64_t firstentry)
Draw expression varexp for specified entries that matches the selection.
virtual Long64_t DrawScript(const char *wrapperPrefix, const char *macrofilename, const char *cutfilename, Option_t *option, Long64_t nentries, Long64_t firstentry)
Draw the result of a C++ script.
virtual Double_t * GetV3() const
TTreeFormula * GetVar4() const
virtual TTree * CopyTree(const char *selection, Option_t *option, Long64_t nentries, Long64_t firstentry)
Copy a Tree with selection, make a clone of this Tree header, then copy the selected entries...
void SetScanRedirect(Bool_t on=kFALSE)
#define ClassDef(name, id)
virtual Long64_t Process(const char *filename, Option_t *option, Long64_t nentries, Long64_t firstentry)
Process this tree executing the TSelector code in the specified filename.
TTreeFormula * GetVar2() const
virtual Double_t * GetV2() const
TSelector * GetSelector() const
TSelector * fSelectorFromFile
Pointer to current selector.
void TakeEstimate(Int_t nfill, Int_t &npoints, Int_t action, TObject *obj, Option_t *option)
TTreeFormula * GetVar1() const
virtual ~TTreePlayer()
Tree destructor.
virtual void UpdateFormulaLeaves()
this function is called by TChain::LoadTree when a new Tree is loaded.
virtual void StartViewer(Int_t ww, Int_t wh)
Start the TTreeViewer on this TTree.
virtual Double_t * GetW() const
virtual Int_t UnbinnedFit(const char *formula, const char *varexp, const char *selection, Option_t *option, Long64_t nentries, Long64_t firstentry)
Unbinned fit of one or more variable(s) from a Tree.
virtual void SetEstimate(Long64_t n)
Set number of entries to estimate variable limits.
TTreeFormula * GetSelect() const
virtual Double_t * GetW() const
virtual Int_t MakeReader(const char *classname, Option_t *option)
Generate skeleton selector class for this tree.
virtual Double_t * GetV1() const
virtual Long64_t GetSelectedRows() const
virtual Int_t GetNfill() const
TClass * fSelectorClass
Pointer to a user defined selector created by this TTreePlayer object.
const char * fScanFileName
virtual Int_t MakeProxy(const char *classname, const char *macrofilename=0, const char *cutfilename=0, const char *option=0, Int_t maxUnrolling=3)
Generate a skeleton analysis class for this Tree using TBranchProxy.
virtual Double_t * GetV3() const
TList * fInput
Pointer to the actual class of the TSelectorFromFile.
virtual Double_t * GetV4() const
TTreePlayer & operator=(const TTreePlayer &)
The ROOT global object gROOT contains a list of all defined classes.
TH1 * GetHistogram() const
virtual Int_t MakeCode(const char *filename)
Generate skeleton function for this Tree.
TSelector * GetSelectorFromFile() const
TTreeFormula * GetVar(Int_t i) const
virtual Double_t * GetV1() const
A specialized TSelector for TTree::Draw.
TTreeFormula * GetVar4() const
TSelector * fSelectorUpdate
Pointer to a list of coordinated list TTreeFormula (used by Scan and Query)
Bool_t fScanRedirect
Pointer to current Tree.
virtual Int_t GetNfill() const
TTreeFormula * GetVar3() const
virtual void RecursiveRemove(TObject *obj)
cleanup pointers in the player pointing to obj
const char * GetScanFileName() const
TTreePlayer()
Default Tree constructor.
Mother of all ROOT objects.
virtual Double_t * GetVal(Int_t i) const
virtual Long64_t GetEntries(const char *selection)
Return the number of entries matching the selection.
Abstract base class defining the interface for the plugins that implement Draw, Scan, Process, MakeProxy, etc.
void TakeAction(Int_t nfill, Int_t &npoints, Int_t &action, TObject *obj, Option_t *option)
virtual TVirtualIndex * BuildIndex(const TTree *T, const char *majorname, const char *minorname)
Build the index for the tree (see TTree::BuildIndex)
A TTree object has a header with a name and a title.
TTreeFormula * GetVar3() const
TList * fFormulaList
input list to the selector
Implement some of the functionality of the class TTree requiring access to extra libraries (Histogram...
A TSelector object is used by the TTree::Draw, TTree::Scan, TTree::Process to navigate in a TTree and...
virtual Int_t Fit(const char *formula, const char *varexp, const char *selection, Option_t *option, Option_t *goption, Long64_t nentries, Long64_t firstentry)
Fit a projected item(s) from a Tree.
TTreeFormula * GetVar2() const
virtual Int_t MakeClass(const char *classname, Option_t *option)
Generate skeleton analysis class for this Tree.
TTreeFormula * GetVar1() const
virtual TSQLResult * Query(const char *varexp, const char *selection, Option_t *option, Long64_t nentries, Long64_t firstentry)
Loop on Tree and return TSQLResult object containing entries passing selection.