12#ifndef ROOT_TTreePlayer
13#define ROOT_TTreePlayer
68 const char *macrofilename,
const char *cutfilename,
108 const char *macrofilename =
nullptr,
const char *cutfilename =
nullptr,
109 const char *
option =
nullptr,
Int_t maxUnrolling = 3);
#define ClassDef(name, id)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char filename
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t index
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
TClass instances represent classes, structs and namespaces in the ROOT type system.
TH1 is the base class of all histogram classes in ROOT.
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
See TSelectorDraw::GetVal.
TTreeFormula * GetVar3() const
See TSelectorDraw::GetVar.
virtual Double_t * GetV2() const
See TSelectorDraw::GetVal.
TTreeFormula * GetVar2() const
See TSelectorDraw::GetVar.
TTreeFormula * GetVar1() const
See TSelectorDraw::GetVar.
TTreeFormula * GetVar4() const
See TSelectorDraw::GetVar.
virtual Double_t * GetV1() const
See TSelectorDraw::GetVal.
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
See TSelectorDraw::GetVal.
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.
TList * fInput
! input list to the selector
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.
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
See TSelectorDraw::GetVal.
TSelectorDraw * fSelector
! Pointer to current selector
virtual Double_t * GetV1() const
See TSelectorDraw::GetVal.
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 TSelector * GetSelector() const
const char * GetNameByIndex(TString &varexp, Int_t *index, Int_t colindex)
Return name corresponding to colindex in varexp.
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.
Long64_t fSelectedRows
Number of selected entries.
TSelector * fSelectorFromFile
! Pointer to a user defined selector created by this TTreePlayer object
virtual Double_t * GetV4() const
See TSelectorDraw::GetVal.
const char * fScanFileName
Name of the file where Scan is redirected.
TList * fFormulaList
! Pointer to a list of coordinated list TTreeFormula (used by Scan and Query)
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
See TSelectorDraw::GetVal.
TTreeFormula * GetVar1() const
See TSelectorDraw::GetVar.
TTreeFormula * GetSelect() const
TTree * fTree
! Pointer to current Tree
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.
void SetScanFileName(const char *name)
TTreeFormula * GetVar4() const
See TSelectorDraw::GetVar.
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
virtual Int_t MakeProxy(const char *classname, const char *macrofilename=nullptr, const char *cutfilename=nullptr, const char *option=nullptr, Int_t maxUnrolling=3)
Generate a skeleton analysis class for this Tree using TBranchProxy.
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
! Set to the selector address when it's entry list needs to be updated by the UpdateFormulaLeaves fun...
TH1 * fHistogram
! Pointer to histogram used for the projection
virtual void StartViewer(Int_t ww, Int_t wh)
Start the TTreeViewer on this TTree.
Bool_t fScanRedirect
Switch to redirect TTree::Scan output to a file.
virtual Double_t * GetVal(Int_t i) const
See TSelectorDraw::GetVal.
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 the actual class of the TSelectorFromFile
TTreeFormula * GetVar3() const
See TSelectorDraw::GetVar.
const char * GetScanFileName() const
TTreePlayer(const TTreePlayer &)=delete
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)
Int_t fDimension
Dimension of the current expression.
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.
TTreePlayer & operator=(const TTreePlayer &)=delete
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
See TSelectorDraw::GetVar.
TTreeFormula * GetVar(Int_t i) const
See TSelectorDraw::GetVar.
virtual TSelector * GetSelectorFromFile() 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,...