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);
#define ClassDef(name, id)
TClass instances represent classes, structs and namespaces in the ROOT type system.
Mother of all ROOT objects.
Principal Components Analysis (PCA)
A specialized TSelector for TTree::Draw.
virtual Double_t * GetW() const
TTreeFormula * GetSelect() const
TTreeFormula * GetVar(Int_t i) const
Return the TTreeFormula corresponding to the i-th component of the request formula (where the compone...
virtual Double_t * GetV4() const
TTreeFormula * GetVar3() const
virtual Double_t * GetV2() const
TTreeFormula * GetVar2() const
TTreeFormula * GetVar1() const
TTreeFormula * GetVar4() const
virtual Double_t * GetV1() const
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 * GetV3() const
virtual Int_t GetNfill() const
A TSelector object is used by the TTree::Draw, TTree::Scan, TTree::Process to navigate in a TTree and...
Implement some of the functionality of the class TTree requiring access to extra libraries (Histogram...
virtual void UpdateFormulaLeaves()
this function is called by TChain::LoadTree when a new Tree is loaded.
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.
TList * fInput
Pointer to the actual class of the TSelectorFromFile.
TSelector * GetSelector() const
void DeleteSelectorFromFile()
Delete any selector created by this object.
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.
TTreePlayer & operator=(const TTreePlayer &)
virtual Long64_t GetSelectedRows() const
virtual Long64_t GetEntries(const char *selection)
Return the number of entries matching the selection.
virtual Double_t * GetV3() const
TSelectorDraw * fSelector
Pointer to histogram used for the projection.
virtual Double_t * GetV1() 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.
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 ~TTreePlayer()
Tree destructor.
TH1 * GetHistogram() const
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.
void TakeEstimate(Int_t nfill, Int_t &npoints, Int_t action, TObject *obj, Option_t *option)
TSelector * fSelectorFromFile
Pointer to current selector.
virtual Double_t * GetV4() const
const char * fScanFileName
TList * fFormulaList
input list to the selector
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.
virtual Int_t MakeCode(const char *filename)
Generate skeleton function for this Tree.
virtual Double_t * GetV2() const
TTreeFormula * GetVar1() const
TTreeFormula * GetSelect() const
void TakeAction(Int_t nfill, Int_t &npoints, Int_t &action, TObject *obj, Option_t *option)
virtual Int_t MakeClass(const char *classname, Option_t *option)
Generate skeleton analysis class for this Tree.
virtual void SetEstimate(Long64_t n)
Set number of entries to estimate variable limits.
void SetScanRedirect(Bool_t on=kFALSE)
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.
TSelector * GetSelectorFromFile() const
void SetScanFileName(const char *name)
TTreeFormula * GetVar4() const
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 Int_t GetNfill() 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.
TSelector * fSelectorUpdate
Pointer to a list of coordinated list TTreeFormula (used by Scan and Query)
virtual void StartViewer(Int_t ww, Int_t wh)
Start the TTreeViewer on this TTree.
Bool_t fScanRedirect
Pointer to current Tree.
virtual Double_t * GetVal(Int_t i) const
TTreePlayer(const TTreePlayer &)
virtual Double_t * GetW() 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.
virtual Int_t GetDimension() const
TClass * fSelectorClass
Pointer to a user defined selector created by this TTreePlayer object.
TTreeFormula * GetVar3() const
const char * GetScanFileName() const
virtual void SetTree(TTree *t)
virtual TVirtualIndex * BuildIndex(const TTree *T, const char *majorname, const char *minorname)
Build the index for the tree (see TTree::BuildIndex)
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.
TTreePlayer()
Default Tree constructor.
virtual Int_t MakeReader(const char *classname, Option_t *option)
Generate skeleton selector class for this tree.
virtual void RecursiveRemove(TObject *obj)
cleanup pointers in the player pointing to obj
TTreeFormula * GetVar2() const
TTreeFormula * GetVar(Int_t i) const
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...
A TTree represents a columnar dataset.
Abstract interface for Tree Index.
Abstract base class defining the interface for the plugins that implement Draw, Scan,...