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)
override;
#define ClassDefOverride(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...
Int_t MakeCode(const char *filename) override
Generate skeleton function for this Tree.
TTree * CopyTree(const char *selection, Option_t *option, Long64_t nentries, Long64_t firstentry) override
Copy a Tree with selection, make a clone of this Tree header, then copy the selected entries.
Long64_t DrawSelect(const char *varexp, const char *selection, Option_t *option, Long64_t nentries, Long64_t firstentry) override
Draw expression varexp for specified entries that matches the selection.
TList * fInput
! input list to the selector
void DeleteSelectorFromFile()
Delete any selector created by this object.
void SetEstimate(Long64_t n) override
Set number of entries to estimate variable limits.
Int_t UnbinnedFit(const char *formula, const char *varexp, const char *selection, Option_t *option, Long64_t nentries, Long64_t firstentry) override
Unbinned fit of one or more variable(s) from a Tree.
void RecursiveRemove(TObject *obj) override
cleanup pointers in the player pointing to obj
Double_t * GetW() const override
Long64_t DrawScript(const char *wrapperPrefix, const char *macrofilename, const char *cutfilename, Option_t *option, Long64_t nentries, Long64_t firstentry) override
Draw the result of a C++ script.
TSelectorDraw * fSelector
! Pointer to current selector
void SetTree(TTree *t) override
Long64_t GetSelectedRows() const override
Int_t MakeReader(const char *classname, Option_t *option) override
Generate skeleton selector class for this tree.
const char * GetNameByIndex(TString &varexp, Int_t *index, Int_t colindex)
Return name corresponding to colindex in varexp.
TTreeFormula * GetVar4() const override
See TSelectorDraw::GetVar.
TTreeFormula * GetVar(Int_t i) const override
See TSelectorDraw::GetVar.
TTreeFormula * GetVar2() const override
See TSelectorDraw::GetVar.
Long64_t fSelectedRows
Number of selected entries.
Long64_t Scan(const char *varexp, const char *selection, Option_t *option, Long64_t nentries, Long64_t firstentry) override
Loop on Tree and print entries passing selection.
TSelector * fSelectorFromFile
! Pointer to a user defined selector created by this TTreePlayer object
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)
TTree * fTree
! Pointer to current Tree
Double_t * GetV1() const override
See TSelectorDraw::GetVal.
void SetScanRedirect(Bool_t on=kFALSE)
Double_t * GetV4() const override
See TSelectorDraw::GetVal.
TTreeFormula * GetSelect() const override
TH1 * GetHistogram() const override
TTreeFormula * GetVar3() const override
See TSelectorDraw::GetVar.
void SetScanFileName(const char *name)
Int_t GetNfill() const override
void StartViewer(Int_t ww, Int_t wh) override
Start the TTreeViewer on this TTree.
Int_t MakeProxy(const char *classname, const char *macrofilename=nullptr, const char *cutfilename=nullptr, const char *option=nullptr, Int_t maxUnrolling=3) override
Generate a skeleton analysis class for this Tree using TBranchProxy.
Int_t MakeClass(const char *classname, Option_t *option) override
Generate skeleton analysis class for this Tree.
TPrincipal * Principal(const char *varexp, const char *selection, Option_t *option, Long64_t nentries, Long64_t firstentry) override
Interface to the Principal Components Analysis class.
Double_t * GetV2() const override
See TSelectorDraw::GetVal.
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
void UpdateFormulaLeaves() override
this function is called by TChain::LoadTree when a new Tree is loaded.
Long64_t Process(const char *filename, Option_t *option, Long64_t nentries, Long64_t firstentry) override
Process this tree executing the TSelector code in the specified filename.
TSelector * GetSelectorFromFile() const override
TSQLResult * Query(const char *varexp, const char *selection, Option_t *option, Long64_t nentries, Long64_t firstentry) override
Loop on Tree and return TSQLResult object containing entries passing selection.
Bool_t fScanRedirect
Switch to redirect TTree::Scan output to a file.
TClass * fSelectorClass
! Pointer to the actual class of the TSelectorFromFile
const char * GetScanFileName() const
TSelector * GetSelector() const override
TTreePlayer(const TTreePlayer &)=delete
Long64_t GetEntries(const char *selection) override
Return the number of entries matching the selection.
Int_t GetDimension() const override
Int_t fDimension
Dimension of the current expression.
Double_t * GetV3() const override
See TSelectorDraw::GetVal.
TVirtualIndex * BuildIndex(const TTree *T, const char *majorname, const char *minorname) override
Build the index for the tree (see TTree::BuildIndex)
TTreeFormula * GetVar1() const override
See TSelectorDraw::GetVar.
TTreePlayer()
Default Tree constructor.
TTreePlayer & operator=(const TTreePlayer &)=delete
Double_t * GetVal(Int_t i) const override
See TSelectorDraw::GetVal.
~TTreePlayer() override
Tree destructor.
Int_t Fit(const char *formula, const char *varexp, const char *selection, Option_t *option, Option_t *goption, Long64_t nentries, Long64_t firstentry) override
Fit a projected item(s) from a Tree.
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,...