A++ » INCLUDE » TTreePlayer

class TTreePlayer: public TVirtualTreePlayer


TTreePlayer

A TTree object is a list of TBranch.
To Create a TTree object one must:
- Create the TTree header via the TTree constructor
- Call the TBranch constructor for every branch.

To Fill this object, use member function Fill with no parameters.
The Fill function loops on all defined TBranch.


Function Members (Methods)

public:
virtual~TTreePlayer()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
virtual TVirtualIndex*BuildIndex(const TTree* T, const char* majorname, const char* minorname)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
virtual TTree*CopyTree(const char* selection, Option_t* option, Long64_t nentries, Long64_t firstentry)
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual Long64_tDrawScript(const char* wrapperPrefix, const char* macrofilename, const char* cutfilename, Option_t* option, Long64_t nentries, Long64_t firstentry)
virtual Long64_tDrawSelect(const char* varexp, const char* selection, Option_t* option, Long64_t nentries, Long64_t firstentry)
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual Int_tFit(const char* formula, const char* varexp, const char* selection, Option_t* option, Option_t* goption, Long64_t nentries, Long64_t firstentry)
static TVirtualTreePlayer*TVirtualTreePlayer::GetCurrentPlayer()
virtual Int_tGetDimension() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual Long64_tGetEntries(const char* selection)
virtual Long64_tGetEntriesToProcess(Long64_t firstentry, Long64_t nentries) const
virtual TH1*GetHistogram() const
virtual const char*TObject::GetIconName() const
virtual const char*TObject::GetName() const
virtual Int_tGetNfill() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
const char*GetScanFileName() const
virtual TTreeFormula*GetSelect() const
virtual Long64_tGetSelectedRows() const
TSelector*GetSelector() const
TSelector*GetSelectorFromFile() const
virtual const char*TObject::GetTitle() const
virtual UInt_tTObject::GetUniqueID() const
virtual Double_t*GetV1() const
virtual Double_t*GetV2() const
virtual Double_t*GetV3() const
virtual Double_t*GetV4() const
virtual Double_t*GetVal(Int_t i) const
virtual TTreeFormula*GetVar(Int_t i) const
virtual TTreeFormula*GetVar1() const
virtual TTreeFormula*GetVar2() const
virtual TTreeFormula*GetVar3() const
virtual TTreeFormula*GetVar4() const
virtual Double_t*GetW() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tTObject::IsSortable() const
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
virtual Int_tMakeClass(const char* classname, Option_t* option)
virtual Int_tMakeCode(const char* filename)
virtual Int_tMakeProxy(const char* classname, const char* macrofilename = 0, const char* cutfilename = 0, const char* option = 0, Int_t maxUnrolling = 3)
virtual Int_tMakeReader(const char* classname, Option_t* option)
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
voidTObject::operator delete(void* ptr)
voidTObject::operator delete(void* ptr, void* vp)
voidTObject::operator delete[](void* ptr)
voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual TPrincipal*Principal(const char* varexp, const char* selection, Option_t* option, Long64_t nentries, Long64_t firstentry)
virtual voidTObject::Print(Option_t* option = "") const
virtual Long64_tProcess(const char* filename, Option_t* option, Long64_t nentries, Long64_t firstentry)
virtual Long64_tProcess(TSelector* selector, Option_t* option, Long64_t nentries, Long64_t firstentry)
virtual TSQLResult*Query(const char* varexp, const char* selection, Option_t* option, Long64_t nentries, Long64_t firstentry)
virtual Int_tTObject::Read(const char* name)
virtual voidRecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(ostream& out, Option_t* option = "")
virtual Long64_tScan(const char* varexp, const char* selection, Option_t* option, Long64_t nentries, Long64_t firstentry)
Bool_tScanRedirected()
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
virtual voidSetEstimate(Long64_t n)
static voidTObject::SetObjectStat(Bool_t stat)
static voidTVirtualTreePlayer::SetPlayer(const char* player)
voidSetScanFileName(const char* name)
voidSetScanRedirect(Bool_t on = kFALSE)
virtual voidSetTree(TTree* t)
virtual voidTObject::SetUniqueID(UInt_t uid)
virtual voidShowMembers(TMemberInspector& insp) const
virtual voidStartViewer(Int_t ww, Int_t wh)
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
static TVirtualTreePlayer*TVirtualTreePlayer::TreePlayer(TTree* obj)
TTreePlayer()
virtual Int_tUnbinnedFit(const char* formula, const char* varexp, const char* selection, Option_t* option, Long64_t nentries, Long64_t firstentry)
virtual voidUpdateFormulaLeaves()
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
voidDeleteSelectorFromFile()
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
const char*GetNameByIndex(TString& varexp, Int_t* index, Int_t colindex)
voidTObject::MakeZombie()
voidTakeAction(Int_t nfill, Int_t& npoints, Int_t& action, TObject* obj, Option_t* option)
voidTakeEstimate(Int_t nfill, Int_t& npoints, Int_t action, TObject* obj, Option_t* option)

Data Members

public:
static TObject::(anonymous)TObject::kBitMask
static TObject::EStatusBitsTObject::kCanDelete
static TObject::EStatusBitsTObject::kCannotPick
static TObject::EStatusBitsTObject::kHasUUID
static TObject::EStatusBitsTObject::kInvalidObject
static TObject::(anonymous)TObject::kIsOnHeap
static TObject::EStatusBitsTObject::kIsReferenced
static const Long64_tTVirtualTreePlayer::kMaxEntries
static TObject::EStatusBitsTObject::kMustCleanup
static TObject::EStatusBitsTObject::kNoContextMenu
static TObject::(anonymous)TObject::kNotDeleted
static TObject::EStatusBitsTObject::kObjInCanvas
static TObject::(anonymous)TObject::kOverwrite
static TObject::(anonymous)TObject::kSingleKey
static TObject::(anonymous)TObject::kWriteDelete
static TObject::(anonymous)TObject::kZombie
protected:
Int_tfDimensionDimension of the current expression
TList*fFormulaList! Pointer to a list of coordinated list TTreeFormula (used by Scan and Query)
TH1*fHistogram! Pointer to histogram used for the projection
TList*fInput! input list to the selector
const char*fScanFileNameName of the file where Scan is redirected
Bool_tfScanRedirectSwitch to redirect TTree::Scan output to a file
Long64_tfSelectedRowsNumber of selected entries
TSelectorDraw*fSelector! Pointer to current selector
TClass*fSelectorClass! Pointer to the actual class of the TSelectorFromFile
TSelector*fSelectorFromFile! Pointer to a user defined selector created by this TTreePlayer object
TSelector*fSelectorUpdate! Set to the selector address when it's entry list needs to be updated by the UpdateFormulaLeaves function
TTree*fTree! Pointer to current Tree

Class Charts

Inheritance Chart:
TObject
TVirtualTreePlayer
TTreePlayer

Function documentation

TTreePlayer(const TTreePlayer& )
TTreePlayer& operator=(const TTreePlayer& )
const char * GetNameByIndex(TString& varexp, Int_t* index, Int_t colindex)
void TakeAction(Int_t nfill, Int_t& npoints, Int_t& action, TObject* obj, Option_t* option)
void TakeEstimate(Int_t nfill, Int_t& npoints, Int_t action, TObject* obj, Option_t* option)
void DeleteSelectorFromFile()
TTreePlayer()
virtual ~TTreePlayer()
TVirtualIndex * BuildIndex(const TTree* T, const char* majorname, const char* minorname)
TTree * CopyTree(const char* selection, Option_t* option, Long64_t nentries, Long64_t firstentry)
Long64_t DrawSelect(const char* varexp, const char* selection, Option_t* option, Long64_t nentries, Long64_t firstentry)
Int_t GetDimension() const
{return fDimension;}
TH1 * GetHistogram() const
{return fHistogram;}
Long64_t GetEntries(const char* selection)
Long64_t GetEntriesToProcess(Long64_t firstentry, Long64_t nentries) const
Int_t GetNfill() const
{return fSelector->GetNfill();}
const char * GetScanFileName() const
{return fScanFileName;}
TTreeFormula * GetSelect() const
{return fSelector->GetSelect();}
Long64_t GetSelectedRows() const
{return fSelectedRows;}
TSelector * GetSelector() const
{return fSelector;}
TSelector * GetSelectorFromFile() const
TTreeFormula * GetVar(Int_t i) const
{return fSelector->GetVar(i);}
TTreeFormula * GetVar1() const
{return fSelector->GetVar1();}
TTreeFormula * GetVar2() const
{return fSelector->GetVar2();}
TTreeFormula * GetVar3() const
{return fSelector->GetVar3();}
TTreeFormula * GetVar4() const
{return fSelector->GetVar4();}
Double_t * GetVal(Int_t i) const
{return fSelector->GetVal(i);}
Double_t * GetV1() const
{return fSelector->GetV1();}
Double_t * GetV2() const
{return fSelector->GetV2();}
Double_t * GetV3() const
{return fSelector->GetV3();}
Double_t * GetV4() const
{return fSelector->GetV4();}
Double_t * GetW() const
{return fSelector->GetW();}
Int_t MakeClass(const char* classname, Option_t* option)
Int_t MakeCode(const char* filename)
Int_t MakeProxy(const char* classname, const char* macrofilename = 0, const char* cutfilename = 0, const char* option = 0, Int_t maxUnrolling = 3)
Long64_t Process(const char* filename, Option_t* option, Long64_t nentries, Long64_t firstentry)
Long64_t Process(TSelector* selector, Option_t* option, Long64_t nentries, Long64_t firstentry)
void RecursiveRemove(TObject* obj)
Long64_t Scan(const char* varexp, const char* selection, Option_t* option, Long64_t nentries, Long64_t firstentry)
{return fScanRedirect;}
TSQLResult * Query(const char* varexp, const char* selection, Option_t* option, Long64_t nentries, Long64_t firstentry)
void SetScanRedirect(Bool_t on = kFALSE)
void SetScanFileName(const char* name)
void SetTree(TTree* t)
{fTree = t;}
void StartViewer(Int_t ww, Int_t wh)
Int_t UnbinnedFit(const char* formula, const char* varexp, const char* selection, Option_t* option, Long64_t nentries, Long64_t firstentry)