Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TProofChain Class Reference

Definition at line 31 of file TProofChain.h.

Public Types

enum  { kOwnsChain = BIT(19) }
 
- Public Types inherited from TChain
enum  EStatusBits { kGlobalWeight = BIT(15) , kAutoDelete = BIT(16) , kProofUptodate = BIT(17) , kProofLite = BIT(18) }
 
- Public Types inherited from TTree
enum  { kSplitCollectionOfPointers = 100 }
 
enum  ESetBranchAddressStatus {
  kMissingBranch = -5 , kInternalError = -4 , kMissingCompiledCollectionProxy = -3 , kMismatch = -2 ,
  kClassMismatch = -1 , kMatch = 0 , kMatchConversion = 1 , kMatchConversionCollection = 2 ,
  kMakeClass = 3 , kVoidPtr = 4 , kNoCheck = 5 , kNeedEnableDecomposedObj = BIT(29) ,
  kNeedDisableDecomposedObj = BIT(30) , kDecomposedObjMask = kNeedEnableDecomposedObj | kNeedDisableDecomposedObj
}
 
enum  EStatusBits { kForceRead = BIT(11) , kCircular = BIT(12) , kOnlyFlushAtCluster = BIT(14) , kEntriesReshuffled = BIT(19) }
 
- Public Types inherited from TObject
enum  {
  kIsOnHeap = 0x01000000 , kNotDeleted = 0x02000000 , kZombie = 0x04000000 , kInconsistent = 0x08000000 ,
  kBitMask = 0x00ffffff
}
 
enum  { kSingleKey = BIT(0) , kOverwrite = BIT(1) , kWriteDelete = BIT(2) }
 
enum  EDeprecatedStatusBits { kObjInCanvas = BIT(3) }
 
enum  EStatusBits {
  kCanDelete = BIT(0) , kMustCleanup = BIT(3) , kIsReferenced = BIT(4) , kHasUUID = BIT(5) ,
  kCannotPick = BIT(6) , kNoContextMenu = BIT(8) , kInvalidObject = BIT(13)
}
 

Public Member Functions

 TProofChain ()
 Crates a new PROOF chain proxy.
 
 TProofChain (TChain *chain, Bool_t gettreeheader)
 Crates a new PROOF chain proxy containing the files from the chain.
 
 TProofChain (TDSet *dset, Bool_t gettreeheader)
 Creates a new PROOF chain proxy containing the files from the dset.
 
virtual ~TProofChain ()
 Destructor.
 
virtual void Browse (TBrowser *b)
 Forwards the execution to the dummy tree header.
 
virtual void ConnectProof ()
 Connects the proof "Progress" signal.
 
Int_t Debug () const
 
virtual Long64_t Draw (const char *varexp, const char *selection, Option_t *option="", Long64_t nentries=TTree::kMaxEntries, Long64_t firstentry=0)
 Forwards the execution to the TDSet.
 
virtual Long64_t Draw (const char *varexp, const TCut &selection, Option_t *option="", Long64_t nentries=TTree::kMaxEntries, Long64_t firstentry=0)
 Forwards the execution to the TDSet.
 
virtual void Draw (Option_t *opt)
 Default Draw method for all objects.
 
virtual TBranchFindBranch (const char *name)
 Forwards the execution to the dummy tree header.
 
virtual TLeafFindLeaf (const char *name)
 Forwards the execution to the dummy tree header.
 
virtual TBranchGetBranch (const char *name)
 Forwards the execution to the dummy tree header.
 
virtual Bool_t GetBranchStatus (const char *branchname) const
 Forwards the execution to the dummy tree header.
 
virtual Long64_t GetEntries () const
 Returns the total number of entries in the TProofChain, which is the number of entries in the TDSet that it holds.
 
virtual Long64_t GetEntries (const char *sel)
 See TTree::GetEntries(const char *selection) Not implemented in TProofChain.
 
virtual TListGetListOfAliases () const
 
virtual TObjArrayGetListOfBranches ()
 Return a pointer to the list of branches of the current tree.
 
virtual TListGetListOfClones ()
 
virtual TListGetListOfFriends () const
 
virtual TObjArrayGetListOfLeaves ()
 Return a pointer to the list of leaves of the current tree.
 
Int_t GetMakeClass () const
 
TVirtualTreePlayerGetPlayer ()
 Forwards the execution to the dummy tree header.
 
virtual Long64_t GetReadEntry () const
 Returns the number of processed entries.
 
Bool_t HasTreeHeader () const
 
virtual Long64_t Process (const char *filename, Option_t *option="", Long64_t nentries=TTree::kMaxEntries, Long64_t firstentry=0)
 Forwards the execution to the TDSet.
 
virtual Long64_t Process (TSelector *selector, Option_t *option="", Long64_t nentries=TTree::kMaxEntries, Long64_t firstentry=0)
 The return value is -1 in case of error and TSelector::GetStatus() in in case of success.
 
virtual void Progress (Long64_t total, Long64_t processed)
 Changes the number of processed entries.
 
virtual void ReleaseProof ()
 Releases PROOF. Disconnect the "progress" signal.
 
virtual void SetDebug (Int_t level=1, Long64_t min=0, Long64_t max=9999999)
 See TTree::SetDebug.
 
virtual void SetEntryList (TEntryList *enlist, const Option_t *)
 
virtual void SetEventList (TEventList *evlist)
 This function transfroms the given TEventList into a TEntryList.
 
virtual void SetName (const char *name)
 See TTree::GetName.
 
- Public Member Functions inherited from TChain
 TChain ()
 Default constructor.
 
 TChain (const char *name, const char *title="")
 Create a chain.
 
virtual ~TChain ()
 Destructor.
 
virtual Int_t Add (const char *name, Long64_t nentries=TTree::kMaxEntries)
 Add a new file to this chain.
 
virtual Int_t Add (TChain *chain)
 Add all files referenced by the passed chain to this chain.
 
virtual Int_t AddFile (const char *name, Long64_t nentries=TTree::kMaxEntries, const char *tname="")
 Add a new file to this chain.
 
virtual Int_t AddFileInfoList (TCollection *list, Long64_t nfiles=TTree::kMaxEntries)
 Add all files referenced in the list to the chain.
 
virtual TFriendElementAddFriend (const char *chainname, const char *dummy="")
 Add a TFriendElement to the list of friends of this chain.
 
virtual TFriendElementAddFriend (const char *chainname, TFile *dummy)
 Add the whole chain or tree as a friend of this chain.
 
virtual TFriendElementAddFriend (TTree *chain, const char *alias="", Bool_t warn=kFALSE)
 Add the whole chain or tree as a friend of this chain.
 
virtual void CanDeleteRefs (Bool_t flag=kTRUE)
 When closing a file during the chain processing, the file may be closed with option "R" if flag is set to kTRUE.
 
virtual void CreatePackets ()
 Initialize the packet descriptor string.
 
virtual void DirectoryAutoAdd (TDirectory *)
 Override the TTree::DirectoryAutoAdd behavior: we never auto add.
 
virtual Int_t Fill ()
 Fill all branches.
 
virtual const char * GetAlias (const char *aliasName) const
 Returns the expanded value of the alias. Search in the friends if any.
 
virtual Long64_t GetCacheSize () const
 
virtual Long64_t GetChainEntryNumber (Long64_t entry) const
 Return absolute entry number in the chain.
 
virtual TClusterIterator GetClusterIterator (Long64_t firstentry)
 Return an iterator over the cluster of baskets starting at firstentry.
 
virtual Int_t GetEntry (Long64_t entry=0, Int_t getall=0)
 Get entry from the file to memory.
 
virtual Long64_t GetEntryNumber (Long64_t entry) const
 Return entry number corresponding to entry.
 
virtual Int_t GetEntryWithIndex (Int_t major, Int_t minor=0)
 Return entry corresponding to major and minor number.
 
TFileGetFile () const
 Return a pointer to the current file.
 
virtual TLeafGetLeaf (const char *branchname, const char *leafname)
 Return a pointer to the leaf name in the current tree.
 
virtual TLeafGetLeaf (const char *name)
 Return a pointer to the leaf name in the current tree.
 
TObjArrayGetListOfFiles () const
 
virtual Double_t GetMaximum (const char *columname)
 Return maximum of column with name columname.
 
virtual Double_t GetMinimum (const char *columname)
 Return minimum of column with name columname.
 
virtual Int_t GetNbranches ()
 Return the number of branches of the current tree.
 
Int_t GetNtrees () const
 
TListGetStatus () const
 
virtual TTreeGetTree () const
 
virtual Int_t GetTreeNumber () const
 
Long64_tGetTreeOffset () const
 
Int_t GetTreeOffsetLen () const
 
virtual Double_t GetWeight () const
 Return the chain weight.
 
virtual Bool_t InPlaceClone (TDirectory *newdirectory, const char *options="")
 Move content to a new file. (NOT IMPLEMENTED for TChain)
 
virtual Int_t LoadBaskets (Long64_t maxmemory)
 Dummy function.
 
virtual Long64_t LoadTree (Long64_t entry)
 Find the tree which contains entry, and set it as the current tree.
 
void Lookup (Bool_t force=kFALSE)
 Check / locate the files in the chain.
 
virtual void Loop (Option_t *option="", Long64_t nentries=kMaxEntries, Long64_t firstentry=0)
 Loop on nentries of this chain starting at firstentry. (NOT IMPLEMENTED)
 
virtual void ls (Option_t *option="") const
 List the chain.
 
virtual Long64_t Merge (const char *name, Option_t *option="")
 Merge all the entries in the chain into a new tree in a new file.
 
virtual Long64_t Merge (TCollection *list, Option_t *option="")
 Merge all chains in the collection. (NOT IMPLEMENTED)
 
virtual Long64_t Merge (TCollection *list, TFileMergeInfo *info)
 Merge all chains in the collection. (NOT IMPLEMENTED)
 
virtual Long64_t Merge (TFile *file, Int_t basketsize, Option_t *option="")
 Merge all the entries in the chain into a new tree in the current file.
 
virtual void Print (Option_t *option="") const
 Print the header information of each tree in the chain.
 
virtual void RecursiveRemove (TObject *obj)
 Make sure that obj (which is being deleted or will soon be) is no longer referenced by this TTree.
 
virtual void RemoveFriend (TTree *)
 Remove a friend from the list of friends.
 
virtual void Reset (Option_t *option="")
 Resets the state of this chain.
 
virtual void ResetAfterMerge (TFileMergeInfo *)
 Resets the state of this chain after a merge (keep the customization but forget the data).
 
virtual void ResetBranchAddress (TBranch *)
 Reset the addresses of the branch.
 
virtual void ResetBranchAddresses ()
 Reset the addresses of the branches.
 
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
 Save TChain as a C++ statements on output stream out.
 
virtual Long64_t Scan (const char *varexp="", const char *selection="", Option_t *option="", Long64_t nentries=kMaxEntries, Long64_t firstentry=0)
 Loop on tree and print entries passing selection.
 
virtual void SetAutoDelete (Bool_t autodel=kTRUE)
 Set the global branch kAutoDelete bit.
 
template<class T >
Int_t SetBranchAddress (const char *bname, T **add, TBranch **ptr=0)
 
template<class T >
Int_t SetBranchAddress (const char *bname, T *add, TBranch **ptr=0)
 
virtual Int_t SetBranchAddress (const char *bname, void *add, TBranch **ptr, TClass *realClass, EDataType datatype, Bool_t isptr)
 Check if bname is already in the status list, and if not, create a TChainElement object and set its address.
 
virtual Int_t SetBranchAddress (const char *bname, void *add, TBranch **ptr=0)
 Set branch address.
 
virtual Int_t SetBranchAddress (const char *bname, void *add, TClass *realClass, EDataType datatype, Bool_t isptr)
 Check if bname is already in the status list, and if not, create a TChainElement object and set its address.
 
virtual void SetBranchStatus (const char *bname, Bool_t status=1, UInt_t *found=0)
 Set branch status to Process or DoNotProcess.
 
virtual Int_t SetCacheSize (Long64_t cacheSize=-1)
 Set maximum size of the file cache .
 
virtual void SetDirectory (TDirectory *dir)
 Remove reference to this chain from current directory and add reference to new directory dir.
 
virtual void SetEntryList (TEntryList *elist, Option_t *opt="")
 Set the input entry list (processing the entries of the chain will then be limited to the entries in the list).
 
virtual void SetEntryListFile (const char *filename="", Option_t *opt="")
 Set the input entry list (processing the entries of the chain will then be limited to the entries in the list).
 
virtual void SetMakeClass (Int_t make)
 Set all the branches in this TTree to be in decomposed object mode (also known as MakeClass mode).
 
virtual void SetPacketSize (Int_t size=100)
 Set number of entries per packet for parallel root.
 
virtual void SetProof (Bool_t on=kTRUE, Bool_t refresh=kFALSE, Bool_t gettreeheader=kFALSE)
 Enable/Disable PROOF processing on the current default Proof (gProof).
 
virtual void SetWeight (Double_t w=1, Option_t *option="")
 Set chain weight.
 
virtual void UseCache (Int_t maxCacheSize=10, Int_t pageSize=0)
 Dummy function kept for back compatibility.
 
- Public Member Functions inherited from TTree
 TTree ()
 Default constructor and I/O constructor.
 
 TTree (const char *name, const char *title, Int_t splitlevel=99, TDirectory *dir=gDirectory)
 Normal tree constructor.
 
 TTree (const TTree &tt)=delete
 
virtual ~TTree ()
 Destructor.
 
void AddAllocationCount (UInt_t count)
 
virtual Int_t AddBranchToCache (const char *bname, Bool_t subbranches=kFALSE)
 Add branch with name bname to the Tree cache.
 
virtual Int_t AddBranchToCache (TBranch *branch, Bool_t subbranches=kFALSE)
 Add branch b to the Tree cache.
 
void AddClone (TTree *)
 Add a cloned tree to our list of trees to be notified whenever we change our branch addresses or when we are deleted.
 
virtual void AddTotBytes (Int_t tot)
 
virtual void AddZipBytes (Int_t zip)
 
virtual Long64_t AutoSave (Option_t *option="")
 AutoSave tree header every fAutoSave bytes.
 
virtual Int_t Branch (const char *folder, Int_t bufsize=32000, Int_t splitlevel=99)
 Create one branch for each element in the folder.
 
TBranchBranch (const char *name, char *address, const char *leaflist, Int_t bufsize=32000)
 
template<class T >
TBranchBranch (const char *name, const char *classname, T **addobj, Int_t bufsize=32000, Int_t splitlevel=99)
 
template<class T >
TBranchBranch (const char *name, const char *classname, T *obj, Int_t bufsize=32000, Int_t splitlevel=99)
 
virtual TBranchBranch (const char *name, const char *classname, void *addobj, Int_t bufsize=32000, Int_t splitlevel=99)
 Create a new branch with the object of class classname at address addobj.
 
TBranchBranch (const char *name, int address, const char *leaflist, Int_t bufsize=32000)
 
TBranchBranch (const char *name, Long_t address, const char *leaflist, Int_t bufsize=32000)
 
template<typename T , std::size_t N>
TBranchBranch (const char *name, std::array< T, N > *obj, Int_t bufsize=32000, Int_t splitlevel=99)
 
template<class T >
TBranchBranch (const char *name, T **addobj, Int_t bufsize=32000, Int_t splitlevel=99)
 Add a new branch, and infer the data type from the array addobj being passed.
 
template<class T >
TBranchBranch (const char *name, T *obj, Int_t bufsize=32000, Int_t splitlevel=99)
 Add a new branch, and infer the data type from the type of obj being passed.
 
virtual TBranchBranch (const char *name, void *address, const char *leaflist, Int_t bufsize=32000)
 Create a new TTree Branch.
 
virtual Int_t Branch (TCollection *list, Int_t bufsize=32000, Int_t splitlevel=99, const char *name="")
 Create one branch for each element in the collection.
 
virtual Int_t Branch (TList *list, Int_t bufsize=32000, Int_t splitlevel=99)
 Deprecated function. Use next function instead.
 
virtual TBranchBranchOld (const char *name, const char *classname, void *addobj, Int_t bufsize=32000, Int_t splitlevel=1)
 Create a new TTree BranchObject.
 
virtual TBranchBranchRef ()
 Build the optional branch supporting the TRefTable.
 
virtual TBranchBronch (const char *name, const char *classname, void *addobj, Int_t bufsize=32000, Int_t splitlevel=99)
 Create a new TTree BranchElement.
 
virtual Int_t BuildIndex (const char *majorname, const char *minorname="0")
 Build a Tree Index (default is TTreeIndex).
 
TStreamerInfoBuildStreamerInfo (TClass *cl, void *pointer=0, Bool_t canOptimize=kTRUE)
 Build StreamerInfo for class cl.
 
virtual TFileChangeFile (TFile *file)
 Called by TTree::Fill() when file has reached its maximum fgMaxTreeSize.
 
virtual TTreeCloneTree (Long64_t nentries=-1, Option_t *option="")
 Create a clone of this tree and copy nentries.
 
virtual void CopyAddresses (TTree *, Bool_t undo=kFALSE)
 Set branch addresses of passed tree equal to ours.
 
virtual Long64_t CopyEntries (TTree *tree, Long64_t nentries=-1, Option_t *option="", Bool_t needCopyAddresses=false)
 Copy nentries from given tree to this tree.
 
virtual TTreeCopyTree (const char *selection, Option_t *option="", Long64_t nentries=kMaxEntries, Long64_t firstentry=0)
 Copy a tree with selection.
 
virtual TBasketCreateBasket (TBranch *)
 Create a basket for this tree and given branch.
 
Int_t Debug () const
 
virtual void Delete (Option_t *option="")
 Delete this tree from memory or/and disk.
 
virtual void DropBaskets ()
 Remove some baskets from memory.
 
virtual Int_t DropBranchFromCache (const char *bname, Bool_t subbranches=kFALSE)
 Remove the branch with name 'bname' from the Tree cache.
 
virtual Int_t DropBranchFromCache (TBranch *branch, Bool_t subbranches=kFALSE)
 Remove the branch b from the Tree cache.
 
virtual void DropBuffers (Int_t nbytes)
 Drop branch buffers to accommodate nbytes below MaxVirtualsize.
 
Bool_t EnableCache ()
 Enable the TTreeCache unless explicitly disabled for this TTree by a prior call to SetCacheSize(0).
 
virtual Int_t Fit (const char *funcname, const char *varexp, const char *selection="", Option_t *option="", Option_t *goption="", Long64_t nentries=kMaxEntries, Long64_t firstentry=0)
 Fit a projected item(s) from a tree.
 
virtual Int_t FlushBaskets (Bool_t create_cluster=true) const
 Write to disk all the basket that have not yet been individually written and create an event cluster boundary (by default).
 
UInt_t GetAllocationCount () const
 
virtual Long64_t GetAutoFlush () const
 
virtual Long64_t GetAutoSave () const
 
virtual TBranchRefGetBranchRef () const
 
virtual Long64_t GetChainOffset () const
 
virtual Bool_t GetClusterPrefetch () const
 
TFileGetCurrentFile () const
 Return pointer to the current file.
 
Long64_t GetDebugMax () const
 
Long64_t GetDebugMin () const
 
Int_t GetDefaultEntryOffsetLen () const
 
TDirectoryGetDirectory () const
 
virtual Long64_t GetEntriesFast () const
 
virtual Long64_t GetEntriesFriend () const
 Return pointer to the 1st Leaf named name in any Branch of this Tree or any branch in the list of friend trees.
 
virtual TEntryListGetEntryList ()
 Returns the entry list assigned to this tree.
 
virtual Long64_t GetEntryNumberWithBestIndex (Long64_t major, Long64_t minor=0) const
 Return entry number corresponding to major and minor number.
 
virtual Long64_t GetEntryNumberWithIndex (Long64_t major, Long64_t minor=0) const
 Return entry number corresponding to major and minor number.
 
virtual Long64_t GetEstimate () const
 
Int_t GetEvent (Long64_t entry=0, Int_t getall=0)
 
TEventListGetEventList () const
 
virtual Int_t GetFileNumber () const
 
virtual TTreeGetFriend (const char *) const
 Return a pointer to the TTree friend whose name or alias is friendname.
 
virtual const char * GetFriendAlias (TTree *) const
 If the 'tree' is a friend, this method returns its alias name.
 
TH1GetHistogram ()
 
virtual Bool_t GetImplicitMT ()
 
virtual Int_tGetIndex ()
 
virtual Double_tGetIndexValues ()
 
ROOT::TIOFeatures GetIOFeatures () const
 Returns the current set of IO settings.
 
virtual TIteratorGetIteratorOnAllLeaves (Bool_t dir=kIterForward)
 Creates a new iterator that will go through all the leaves on the tree itself and its friend.
 
Int_t GetMakeClass () const
 
virtual Long64_t GetMaxEntryLoop () const
 
virtual Long64_t GetMaxVirtualSize () const
 
TObjectGetNotify () const
 
virtual Int_t GetPacketSize () const
 
virtual TVirtualPerfStatsGetPerfStats () const
 
TVirtualTreePlayerGetPlayer ()
 Load the TTreePlayer (if not already done).
 
TTreeCacheGetReadCache (TFile *file) const
 Find and return the TTreeCache registered with the file and which may contain branches for us.
 
TTreeCacheGetReadCache (TFile *file, Bool_t create)
 Find and return the TTreeCache registered with the file and which may contain branches for us.
 
virtual Long64_t GetReadEvent () const
 
virtual Int_t GetScanField () const
 
TTreeFormulaGetSelect ()
 
virtual Long64_t GetSelectedRows ()
 
Float_t GetTargetMemoryRatio () const
 
virtual Int_t GetTimerInterval () const
 
virtual Long64_t GetTotBytes () const
 
TBufferGetTransientBuffer (Int_t size)
 Returns the transient buffer currently used by this TTree for reading/writing baskets.
 
virtual TVirtualIndexGetTreeIndex () const
 
virtual Int_t GetUpdate () const
 
virtual TListGetUserInfo ()
 Return a pointer to the list containing user objects associated to this tree.
 
virtual Double_tGetV1 ()
 
virtual Double_tGetV2 ()
 
virtual Double_tGetV3 ()
 
virtual Double_tGetV4 ()
 
virtual Double_tGetVal (Int_t i)
 
TTreeFormulaGetVar (Int_t i)
 
TTreeFormulaGetVar1 ()
 
TTreeFormulaGetVar2 ()
 
TTreeFormulaGetVar3 ()
 
TTreeFormulaGetVar4 ()
 
virtual Double_tGetW ()
 
virtual Long64_t GetZipBytes () const
 
virtual void IncrementTotalBuffers (Int_t nbytes)
 
Bool_t IsFolder () const
 Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).
 
virtual Long64_t LoadTreeFriend (Long64_t entry, TTree *T)
 Load entry on behalf of our master tree, we may use an index.
 
virtual Int_t MakeClass (const char *classname=0, Option_t *option="")
 Generate a skeleton analysis class for this tree.
 
virtual Int_t MakeCode (const char *filename=0)
 Generate a skeleton function for this tree.
 
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 Int_t MakeSelector (const char *selector=0, Option_t *option="")
 Generate skeleton selector class for this tree.
 
Bool_t MemoryFull (Int_t nbytes)
 Check if adding nbytes to memory we are still below MaxVirtualsize.
 
virtual Bool_t Notify ()
 Function called when loading a new class library.
 
TTreeoperator= (const TTree &tt)=delete
 
virtual void OptimizeBaskets (ULong64_t maxMemory=10000000, Float_t minComp=1.1, Option_t *option="")
 This function may be called after having filled some entries in a Tree.
 
TPrincipalPrincipal (const char *varexp="", const char *selection="", Option_t *option="np", Long64_t nentries=kMaxEntries, Long64_t firstentry=0)
 Interface to the Principal Components Analysis class.
 
virtual void PrintCacheStats (Option_t *option="") const
 Print statistics about the TreeCache for this tree.
 
virtual Long64_t Project (const char *hname, const char *varexp, const char *selection="", Option_t *option="", Long64_t nentries=kMaxEntries, Long64_t firstentry=0)
 Make a projection of a tree using selections.
 
virtual TSQLResultQuery (const char *varexp="", const char *selection="", Option_t *option="", Long64_t nentries=kMaxEntries, Long64_t firstentry=0)
 Loop over entries and return a TSQLResult object containing entries following selection.
 
virtual Long64_t ReadFile (const char *filename, const char *branchDescriptor="", char delimiter=' ')
 Create or simply read branches from filename.
 
virtual Long64_t ReadStream (std::istream &inputStream, const char *branchDescriptor="", char delimiter=' ')
 Create or simply read branches from an input stream.
 
virtual void Refresh ()
 Refresh contents of this tree and its branches from the current status on disk.
 
virtual void RegisterExternalFriend (TFriendElement *)
 Record a TFriendElement that we need to warn when the chain switches to a new file (typically this is because this chain is a friend of another TChain)
 
virtual void RemoveExternalFriend (TFriendElement *)
 Removes external friend.
 
virtual Bool_t SetAlias (const char *aliasName, const char *aliasFormula)
 Set a tree variable alias.
 
virtual void SetAutoFlush (Long64_t autof=-30000000)
 This function may be called at the start of a program to change the default value for fAutoFlush.
 
virtual void SetAutoSave (Long64_t autos=-300000000)
 This function may be called at the start of a program to change the default value for fAutoSave (and for SetAutoSave) is -300000000, ie 300 MBytes.
 
virtual void SetBasketSize (const char *bname, Int_t buffsize=16000)
 Set a branch's basket size.
 
template<class T >
Int_t SetBranchAddress (const char *bname, T **add, TBranch **ptr=0)
 
template<class T >
Int_t SetBranchAddress (const char *bname, T *add, TBranch **ptr=0)
 
virtual Int_t SetCacheEntryRange (Long64_t first, Long64_t last)
 interface to TTreeCache to set the cache entry range
 
virtual void SetCacheLearnEntries (Int_t n=10)
 Interface to TTreeCache to set the number of entries for the learning phase.
 
virtual void SetChainOffset (Long64_t offset=0)
 
virtual void SetCircular (Long64_t maxEntries)
 Enable/Disable circularity for this tree.
 
virtual void SetClusterPrefetch (Bool_t enabled)
 
virtual void SetDefaultEntryOffsetLen (Int_t newdefault, Bool_t updateExisting=kFALSE)
 Update the default value for the branch's fEntryOffsetLen.
 
virtual Long64_t SetEntries (Long64_t n=-1)
 Change number of entries in the tree.
 
virtual void SetEstimate (Long64_t nentries=1000000)
 Set number of entries to estimate variable limits.
 
virtual void SetFileNumber (Int_t number=0)
 Set fFileNumber to number.
 
virtual void SetImplicitMT (Bool_t enabled)
 
ROOT::TIOFeatures SetIOFeatures (const ROOT::TIOFeatures &)
 Provide the end-user with the ability to enable/disable various experimental IO features for this TTree.
 
virtual void SetMaxEntryLoop (Long64_t maxev=kMaxEntries)
 
virtual void SetMaxVirtualSize (Long64_t size=0)
 
virtual void SetNotify (TObject *obj)
 Sets the address of the object to be notified when the tree is loaded.
 
virtual void SetObject (const char *name, const char *title)
 Change the name and title of this tree.
 
virtual void SetParallelUnzip (Bool_t opt=kTRUE, Float_t RelSize=-1)
 Enable or disable parallel unzipping of Tree buffers.
 
virtual void SetPerfStats (TVirtualPerfStats *perf)
 Set perf stats.
 
virtual void SetScanField (Int_t n=50)
 
void SetTargetMemoryRatio (Float_t ratio)
 
virtual void SetTimerInterval (Int_t msec=333)
 
virtual void SetTreeIndex (TVirtualIndex *index)
 The current TreeIndex is replaced by the new index.
 
virtual void SetUpdate (Int_t freq=0)
 
virtual void Show (Long64_t entry=-1, Int_t lenmax=20)
 Print values of all active leaves for entry.
 
virtual void StartViewer ()
 Start the TTreeViewer on this tree.
 
virtual Int_t StopCacheLearningPhase ()
 Stop the cache learning phase.
 
virtual Int_t UnbinnedFit (const char *funcname, const char *varexp, const char *selection="", Option_t *option="", Long64_t nentries=kMaxEntries, Long64_t firstentry=0)
 Unbinned fit of one or more variable(s) from a tree.
 
void UseCurrentStyle ()
 Replace current attributes by current style.
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0)
 Write this object to the current directory.
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const
 Write this object to the current directory.
 
- Public Member Functions inherited from TNamed
 TNamed ()
 
 TNamed (const char *name, const char *title)
 
 TNamed (const TNamed &named)
 TNamed copy ctor.
 
 TNamed (const TString &name, const TString &title)
 
virtual ~TNamed ()
 TNamed destructor.
 
virtual void Clear (Option_t *option="")
 Set name and title to empty strings ("").
 
virtual TObjectClone (const char *newname="") const
 Make a clone of an object using the Streamer facility.
 
virtual Int_t Compare (const TObject *obj) const
 Compare two TNamed objects.
 
virtual void Copy (TObject &named) const
 Copy this to obj.
 
virtual void FillBuffer (char *&buffer)
 Encode TNamed into output buffer.
 
virtual const char * GetName () const
 Returns name of object.
 
virtual const char * GetTitle () const
 Returns title of object.
 
virtual ULong_t Hash () const
 Return hash value for this object.
 
virtual Bool_t IsSortable () const
 
TNamedoperator= (const TNamed &rhs)
 TNamed assignment operator.
 
virtual void SetNameTitle (const char *name, const char *title)
 Set all the TNamed parameters (name and title).
 
virtual void SetTitle (const char *title="")
 Set the title of the TNamed.
 
virtual Int_t Sizeof () const
 Return size of the TNamed part of the TObject.
 
- Public Member Functions inherited from TObject
 TObject ()
 TObject constructor.
 
 TObject (const TObject &object)
 TObject copy ctor.
 
virtual ~TObject ()
 TObject destructor.
 
void AbstractMethod (const char *method) const
 Use this method to implement an "abstract" method that you don't want to leave purely abstract.
 
virtual void AppendPad (Option_t *option="")
 Append graphics object to current pad.
 
ULong_t CheckedHash ()
 Check and record whether this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object.
 
virtual const char * ClassName () const
 Returns name of class to which the object belongs.
 
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 Computes distance from point (px,py) to the object.
 
virtual void DrawClass () const
 Draw class inheritance tree of the class to which this object belongs.
 
virtual TObjectDrawClone (Option_t *option="") const
 Draw a clone of this object in the current selected pad for instance with: gROOT->SetSelectedPad(gPad).
 
virtual void Dump () const
 Dump contents of object on stdout.
 
virtual void Error (const char *method, const char *msgfmt,...) const
 Issue error message.
 
virtual void Execute (const char *method, const char *params, Int_t *error=0)
 Execute method on this object with the given parameter string, e.g.
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=0)
 Execute method on this object with parameters stored in the TObjArray.
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 Execute action corresponding to an event at (px,py).
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 Issue fatal error message.
 
virtual TObjectFindObject (const char *name) const
 Must be redefined in derived classes.
 
virtual TObjectFindObject (const TObject *obj) const
 Must be redefined in derived classes.
 
virtual Option_tGetDrawOption () const
 Get option used by the graphics system to draw this object.
 
virtual const char * GetIconName () const
 Returns mime type name of object.
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 Returns string containing info about the object at position (px,py).
 
virtual Option_tGetOption () const
 
virtual UInt_t GetUniqueID () const
 Return the unique object id.
 
virtual Bool_t HandleTimer (TTimer *timer)
 Execute action in response of a timer timing out.
 
Bool_t HasInconsistentHash () const
 Return true is the type of this object is known to have an inconsistent setup for Hash and RecursiveRemove (i.e.
 
virtual void Info (const char *method, const char *msgfmt,...) const
 Issue info message.
 
virtual Bool_t InheritsFrom (const char *classname) const
 Returns kTRUE if object inherits from class "classname".
 
virtual Bool_t InheritsFrom (const TClass *cl) const
 Returns kTRUE if object inherits from TClass cl.
 
virtual void Inspect () const
 Dump contents of this object in a graphics canvas.
 
void InvertBit (UInt_t f)
 
virtual Bool_t IsEqual (const TObject *obj) const
 Default equal comparison (objects are equal if they have the same address in memory).
 
R__ALWAYS_INLINE Bool_t IsOnHeap () const
 
R__ALWAYS_INLINE Bool_t IsZombie () const
 
void MayNotUse (const char *method) const
 Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary).
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 Use this method to declare a method obsolete.
 
void operator delete (void *ptr)
 Operator delete.
 
void operator delete[] (void *ptr)
 Operator delete [].
 
voidoperator new (size_t sz)
 
voidoperator new (size_t sz, void *vp)
 
voidoperator new[] (size_t sz)
 
voidoperator new[] (size_t sz, void *vp)
 
TObjectoperator= (const TObject &rhs)
 TObject assignment operator.
 
virtual void Paint (Option_t *option="")
 This method must be overridden if a class wants to paint itself.
 
virtual void Pop ()
 Pop on object drawn in a pad to the top of the display list.
 
virtual Int_t Read (const char *name)
 Read contents of object with specified name from the current directory.
 
void ResetBit (UInt_t f)
 
virtual void SaveAs (const char *filename="", Option_t *option="") const
 Save this object in the file specified by filename.
 
void SetBit (UInt_t f)
 
void SetBit (UInt_t f, Bool_t set)
 Set or unset the user status bits as specified in f.
 
virtual void SetDrawOption (Option_t *option="")
 Set drawing option for object.
 
virtual void SetUniqueID (UInt_t uid)
 Set the unique object id.
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 Issue system error message.
 
R__ALWAYS_INLINE Bool_t TestBit (UInt_t f) const
 
Int_t TestBits (UInt_t f) const
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 Issue warning message.
 
- Public Member Functions inherited from TAttLine
 TAttLine ()
 AttLine default constructor.
 
 TAttLine (Color_t lcolor, Style_t lstyle, Width_t lwidth)
 AttLine normal constructor.
 
virtual ~TAttLine ()
 AttLine destructor.
 
void Copy (TAttLine &attline) const
 Copy this line attributes to a new TAttLine.
 
Int_t DistancetoLine (Int_t px, Int_t py, Double_t xp1, Double_t yp1, Double_t xp2, Double_t yp2)
 Compute distance from point px,py to a line.
 
virtual Color_t GetLineColor () const
 Return the line color.
 
virtual Style_t GetLineStyle () const
 Return the line style.
 
virtual Width_t GetLineWidth () const
 Return the line width.
 
virtual void Modify ()
 Change current line attributes if necessary.
 
virtual void ResetAttLine (Option_t *option="")
 Reset this line attributes to default values.
 
virtual void SaveLineAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t widdef=1)
 Save line attributes as C++ statement(s) on output stream out.
 
virtual void SetLineAttributes ()
 Invoke the DialogCanvas Line attributes.
 
virtual void SetLineColor (Color_t lcolor)
 Set the line color.
 
virtual void SetLineColorAlpha (Color_t lcolor, Float_t lalpha)
 Set a transparent line color.
 
virtual void SetLineStyle (Style_t lstyle)
 Set the line style.
 
virtual void SetLineWidth (Width_t lwidth)
 Set the line width.
 
- Public Member Functions inherited from TAttFill
 TAttFill ()
 AttFill default constructor.
 
 TAttFill (Color_t fcolor, Style_t fstyle)
 AttFill normal constructor.
 
virtual ~TAttFill ()
 AttFill destructor.
 
void Copy (TAttFill &attfill) const
 Copy this fill attributes to a new TAttFill.
 
virtual Color_t GetFillColor () const
 Return the fill area color.
 
virtual Style_t GetFillStyle () const
 Return the fill area style.
 
virtual Bool_t IsTransparent () const
 
virtual void Modify ()
 Change current fill area attributes if necessary.
 
virtual void ResetAttFill (Option_t *option="")
 Reset this fill attributes to default values.
 
virtual void SaveFillAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1001)
 Save fill attributes as C++ statement(s) on output stream out.
 
virtual void SetFillAttributes ()
 Invoke the DialogCanvas Fill attributes.
 
virtual void SetFillColor (Color_t fcolor)
 Set the fill area color.
 
virtual void SetFillColorAlpha (Color_t fcolor, Float_t falpha)
 Set a transparent fill color.
 
virtual void SetFillStyle (Style_t fstyle)
 Set the fill area style.
 
- Public Member Functions inherited from TAttMarker
 TAttMarker ()
 TAttMarker default constructor.
 
 TAttMarker (Color_t color, Style_t style, Size_t msize)
 TAttMarker normal constructor.
 
virtual ~TAttMarker ()
 TAttMarker destructor.
 
void Copy (TAttMarker &attmarker) const
 Copy this marker attributes to a new TAttMarker.
 
virtual Color_t GetMarkerColor () const
 Return the marker color.
 
virtual Size_t GetMarkerSize () const
 Return the marker size.
 
virtual Style_t GetMarkerStyle () const
 Return the marker style.
 
virtual void Modify ()
 Change current marker attributes if necessary.
 
virtual void ResetAttMarker (Option_t *toption="")
 Reset this marker attributes to the default values.
 
virtual void SaveMarkerAttributes (std::ostream &out, const char *name, Int_t coldef=1, Int_t stydef=1, Int_t sizdef=1)
 Save line attributes as C++ statement(s) on output stream out.
 
virtual void SetMarkerAttributes ()
 Invoke the DialogCanvas Marker attributes.
 
virtual void SetMarkerColor (Color_t mcolor=1)
 Set the marker color.
 
virtual void SetMarkerColorAlpha (Color_t mcolor, Float_t malpha)
 Set a transparent marker color.
 
virtual void SetMarkerSize (Size_t msize=1)
 Set the marker size.
 
virtual void SetMarkerStyle (Style_t mstyle=1)
 Set the marker style.
 

Protected Attributes

TChainfChain
 
TDSetfSet
 
- Protected Attributes inherited from TChain
Bool_t fCanDeleteRefs
 ! If true, TProcessIDs are deleted when closing a file
 
TFilefFile
 ! Pointer to current file (We own the file).
 
TObjArrayfFiles
 -> List of file names containing the trees (TChainElement, owned)
 
Int_t fNtrees
 Number of trees.
 
TChainfProofChain
 ! chain proxy when going to be processed by PROOF
 
TListfStatus
 -> List of active/inactive branches (TChainElement, owned)
 
TTreefTree
 ! Pointer to current tree (Note: We do not own this tree.)
 
Int_t fTreeNumber
 ! Current Tree number in fTreeOffset table
 
Long64_tfTreeOffset
 [fTreeOffsetLen] Array of variables
 
Int_t fTreeOffsetLen
 Current size of fTreeOffset array.
 
- Protected Attributes inherited from TTree
TListfAliases
 List of aliases for expressions based on the tree branches.
 
std::atomic< UInt_tfAllocationCount {0}
 indicates basket should be resized to exact memory usage, but causes significant
 
Long64_t fAutoFlush
 Auto-flush tree when fAutoFlush entries written or -fAutoFlush (compressed) bytes produced.
 
Long64_t fAutoSave
 Autosave tree when fAutoSave entries written or -fAutoSave (compressed) bytes produced.
 
TObjArray fBranches
 List of Branches.
 
TBranchReffBranchRef
 Branch supporting the TRefTable (if any)
 
Bool_t fCacheDoAutoInit
 ! true if cache auto creation or resize check is needed
 
Bool_t fCacheDoClusterPrefetch
 ! true if cache is prefetching whole clusters
 
Long64_t fCacheSize
 ! Maximum size of file buffers
 
Bool_t fCacheUserSet
 ! true if the cache setting was explicitly given by user
 
Long64_t fChainOffset
 ! Offset of 1st entry of this Tree in a TChain
 
TListfClones
 ! List of cloned trees which share our addresses
 
Long64_tfClusterRangeEnd
 [fNClusterRange] Last entry of a cluster range.
 
Long64_tfClusterSize
 [fNClusterRange] Number of entries in each cluster for a given range.
 
Int_t fDebug
 ! Debug level
 
Long64_t fDebugMax
 ! Last entry number to debug
 
Long64_t fDebugMin
 ! First entry number to debug
 
Int_t fDefaultEntryOffsetLen
 Initial Length of fEntryOffset table in the basket buffers.
 
TDirectoryfDirectory
 ! Pointer to directory holding this tree
 
Long64_t fEntries
 Number of entries.
 
TEntryListfEntryList
 ! Pointer to event selection list (if one)
 
Long64_t fEstimate
 Number of entries to estimate histogram limits.
 
TEventListfEventList
 ! Pointer to event selection list (if one)
 
TListfExternalFriends
 ! List of TFriendsElement pointing to us and need to be notified of LoadTree. Content not owned.
 
Int_t fFileNumber
 ! current file number (if file extensions)
 
Long64_t fFlushedBytes
 Number of auto-flushed bytes.
 
UInt_t fFriendLockStatus
 ! Record which method is locking the friend recursion
 
TListfFriends
 pointer to list of friend elements
 
Bool_t fIMTEnabled
 ! true if implicit multi-threading is enabled for this tree
 
TArrayI fIndex
 Index of sorted values.
 
TArrayD fIndexValues
 Sorted index values.
 
TIOFeatures fIOFeatures {0}
 IO features to define for newly-written baskets and branches.
 
TObjArray fLeaves
 Direct pointers to individual branch leaves.
 
Int_t fMakeClass
 ! not zero when processing code generated by MakeClass
 
Int_t fMaxClusterRange
 ! Memory allocated for the cluster range.
 
Long64_t fMaxEntries
 Maximum number of entries in case of circular buffers.
 
Long64_t fMaxEntryLoop
 Maximum number of entries to process.
 
Long64_t fMaxVirtualSize
 Maximum total size of buffers kept in memory.
 
Int_t fNClusterRange
 Number of Cluster range in addition to the one defined by 'AutoFlush'.
 
UInt_t fNEntriesSinceSorting
 ! Number of entries processed since the last re-sorting of branches
 
Int_t fNfill
 ! Local for EntryLoop
 
TObjectfNotify
 ! Object to be notified when loading a Tree
 
Int_t fPacketSize
 ! Number of entries in one packet for parallel root
 
TVirtualPerfStatsfPerfStats
 ! pointer to the current perf stats object
 
TVirtualTreePlayerfPlayer
 ! Pointer to current Tree player
 
Long64_t fReadEntry
 ! Number of the entry being processed
 
Long64_t fSavedBytes
 Number of autosaved bytes.
 
Int_t fScanField
 Number of runs before prompting in Scan.
 
std::vector< TBranch * > fSeqBranches
 ! Branches to be processed sequentially when IMT is on
 
std::vector< std::pair< Long64_t, TBranch * > > fSortedBranches
 ! Branches to be processed in parallel when IMT is on, sorted by average task time
 
Float_t fTargetMemoryRatio {1.1f}
 ! Ratio for memory usage in uncompressed buffers versus actual occupancy.
 
Int_t fTimerInterval
 Timer interval in milliseconds.
 
std::atomic< Long64_tfTotalBuffers
 ! Total number of bytes in branch buffers
 
Long64_t fTotBytes
 Total number of bytes in all branches before compression.
 
TBufferfTransientBuffer
 ! Pointer to the current transient buffer.
 
TVirtualIndexfTreeIndex
 Pointer to the tree Index (if any)
 
Int_t fUpdate
 Update frequency for EntryLoop.
 
TListfUserInfo
 pointer to a list of user objects associated to this Tree
 
Double_t fWeight
 Tree weight (see TTree::SetWeight)
 
Long64_t fZipBytes
 Total number of bytes in all branches after compression.
 
- Protected Attributes inherited from TNamed
TString fName
 
TString fTitle
 
- Protected Attributes inherited from TAttLine
Color_t fLineColor
 Line color.
 
Style_t fLineStyle
 Line style.
 
Width_t fLineWidth
 Line width.
 
- Protected Attributes inherited from TAttFill
Color_t fFillColor
 Fill area color.
 
Style_t fFillStyle
 Fill area style.
 
- Protected Attributes inherited from TAttMarker
Color_t fMarkerColor
 Marker color.
 
Size_t fMarkerSize
 Marker size.
 
Style_t fMarkerStyle
 Marker style.
 

Private Member Functions

void AddAliases ()
 Aliases are added to the input list.
 
void FillDrawAttributes (TProof *p)
 Communicate the drawing attributes for this chain to the input list so that the draw selectors can use them, in case of need.
 

Additional Inherited Members

- Static Public Member Functions inherited from TTree
static Int_t GetBranchStyle ()
 Static function returning the current branch style.
 
static Long64_t GetMaxTreeSize ()
 Static function which returns the tree file size limit in bytes.
 
static TTreeMergeTrees (TList *list, Option_t *option="")
 Static function merging the trees in the TList into a new tree.
 
static void SetBranchStyle (Int_t style=1)
 Set the current branch style.
 
static void SetMaxTreeSize (Long64_t maxsize=100000000000LL)
 Set the maximum size in bytes of a Tree file (static function).
 
- Static Public Member Functions inherited from TObject
static Long_t GetDtorOnly ()
 Return destructor only flag.
 
static Bool_t GetObjectStat ()
 Get status of object stat flag.
 
static void SetDtorOnly (void *obj)
 Set destructor only flag.
 
static void SetObjectStat (Bool_t stat)
 Turn on/off tracking of objects in the TObjectTable.
 
- Static Public Member Functions inherited from TAttMarker
static Width_t GetMarkerLineWidth (Style_t style)
 Internal helper function that returns the line width of the given marker style (0 = filled marker)
 
static Style_t GetMarkerStyleBase (Style_t style)
 Internal helper function that returns the corresponding marker style with line width 1 for the given style.
 
- Static Public Attributes inherited from TChain
static constexpr auto kBigNumber = TTree::kMaxEntries
 
- Static Public Attributes inherited from TTree
static constexpr Long64_t kMaxEntries = TVirtualTreePlayer::kMaxEntries
 
- Protected Types inherited from TTree
enum  ELockStatusBits {
  kFindBranch = BIT(0) , kFindLeaf = BIT(1) , kGetAlias = BIT(2) , kGetBranch = BIT(3) ,
  kGetEntry = BIT(4) , kGetEntryWithIndex = BIT(5) , kGetFriend = BIT(6) , kGetFriendAlias = BIT(7) ,
  kGetLeaf = BIT(8) , kLoadTree = BIT(9) , kPrint = BIT(10) , kRemoveFriend = BIT(11) ,
  kSetBranchStatus = BIT(12)
}
 
- Protected Types inherited from TObject
enum  { kOnlyPrepStep = BIT(3) }
 
- Protected Member Functions inherited from TChain
void InvalidateCurrentTree ()
 Set the TTree to be reloaded as soon as possible.
 
void ReleaseChainProof ()
 
- Protected Member Functions inherited from TTree
virtual TBranchBranchImp (const char *branchname, const char *classname, TClass *ptrClass, void *addobj, Int_t bufsize, Int_t splitlevel)
 Same as TTree::Branch() with added check that addobj matches className.
 
virtual TBranchBranchImp (const char *branchname, TClass *ptrClass, void *addobj, Int_t bufsize, Int_t splitlevel)
 Same as TTree::Branch but automatic detection of the class name.
 
virtual TBranchBranchImpArr (const char *branchname, EDataType datatype, std::size_t N, void *addobj, Int_t bufsize, Int_t splitlevel)
 
virtual TBranchBranchImpRef (const char *branchname, const char *classname, TClass *ptrClass, void *addobj, Int_t bufsize, Int_t splitlevel)
 Same as TTree::Branch but automatic detection of the class name.
 
virtual TBranchBranchImpRef (const char *branchname, TClass *ptrClass, EDataType datatype, void *addobj, Int_t bufsize, Int_t splitlevel)
 Same as TTree::Branch but automatic detection of the class name.
 
virtual TBranchBronchExec (const char *name, const char *classname, void *addobj, Bool_t isptrptr, Int_t bufsize, Int_t splitlevel)
 Helper function implementing TTree::Bronch and TTree::Branch(const char *name, T &obj);.
 
virtual Int_t CheckBranchAddressType (TBranch *branch, TClass *ptrClass, EDataType datatype, Bool_t ptr)
 Check whether or not the address described by the last 3 parameters matches the content of the branch.
 
Long64_t GetCacheAutoSize (Bool_t withDefault=kFALSE)
 Used for automatic sizing of the cache.
 
virtual TLeafGetLeafImpl (const char *branchname, const char *leafname)
 Return pointer to the 1st Leaf named name in any Branch of this Tree or any branch in the list of friend trees.
 
char GetNewlineValue (std::istream &inputStream)
 Determine which newline this file is using.
 
void ImportClusterRanges (TTree *fromtree)
 Appends the cluster range information stored in 'fromtree' to this tree, including the value of fAutoFlush.
 
virtual void KeepCircular ()
 Keep a maximum of fMaxEntries in memory.
 
void MoveReadCache (TFile *src, TDirectory *dir)
 Move a cache from a file to the current file in dir.
 
Int_t SetBranchAddressImp (TBranch *branch, void *addr, TBranch **ptr)
 Change branch address, dealing with clone trees properly.
 
Int_t SetCacheSizeAux (Bool_t autocache=kTRUE, Long64_t cacheSize=0)
 Set the size of the file cache and create it if possible.
 
- Protected Member Functions inherited from TObject
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 Interface to ErrorHandler (protected).
 
void MakeZombie ()
 
- Static Protected Attributes inherited from TTree
static Int_t fgBranchStyle = 1
 Old/New branch style.
 
static Long64_t fgMaxTreeSize = 100000000000LL
 Maximum size of a file containing a Tree.
 

#include <TProofChain.h>

Inheritance diagram for TProofChain:
[legend]

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
kOwnsChain 

Definition at line 35 of file TProofChain.h.

Constructor & Destructor Documentation

◆ TProofChain() [1/3]

TProofChain::TProofChain ( )

Crates a new PROOF chain proxy.

Definition at line 35 of file TProofChain.cxx.

◆ TProofChain() [2/3]

TProofChain::TProofChain ( TChain chain,
Bool_t  gettreeheader 
)

Crates a new PROOF chain proxy containing the files from the chain.

Definition at line 47 of file TProofChain.cxx.

◆ TProofChain() [3/3]

TProofChain::TProofChain ( TDSet dset,
Bool_t  gettreeheader 
)

Creates a new PROOF chain proxy containing the files from the dset.

Definition at line 72 of file TProofChain.cxx.

◆ ~TProofChain()

TProofChain::~TProofChain ( )
virtual

Destructor.

Definition at line 109 of file TProofChain.cxx.

Member Function Documentation

◆ AddAliases()

void TProofChain::AddAliases ( )
private

Aliases are added to the input list.

The names are comma-separated in the TNamed 'PROOF_ListOfAliases'. For each name, there is an trey named 'alias:<name>'.

Definition at line 220 of file TProofChain.cxx.

◆ Browse()

void TProofChain::Browse ( TBrowser b)
virtual

Forwards the execution to the dummy tree header.

See TTree::Browse().

Reimplemented from TChain.

Definition at line 139 of file TProofChain.cxx.

◆ ConnectProof()

void TProofChain::ConnectProof ( )
virtual

Connects the proof "Progress" signal.

Definition at line 456 of file TProofChain.cxx.

◆ Debug()

Int_t TProofChain::Debug ( ) const
inline

Definition at line 52 of file TProofChain.h.

◆ Draw() [1/3]

Long64_t TProofChain::Draw ( const char *  varexp,
const char *  selection,
Option_t option = "",
Long64_t  nentries = TTree::kMaxEntries,
Long64_t  firstentry = 0 
)
virtual

Forwards the execution to the TDSet.

Returns -1 in case of error or number of selected events in case of success. See TDSet::Browse().

Reimplemented from TChain.

Definition at line 185 of file TProofChain.cxx.

◆ Draw() [2/3]

Long64_t TProofChain::Draw ( const char *  varexp,
const TCut selection,
Option_t option = "",
Long64_t  nentries = TTree::kMaxEntries,
Long64_t  firstentry = 0 
)
virtual

Forwards the execution to the TDSet.

Returns -1 in case of error or number of selected events in case of success. See TDSet::Browse().

Reimplemented from TChain.

Definition at line 149 of file TProofChain.cxx.

◆ Draw() [3/3]

virtual void TProofChain::Draw ( Option_t option)
inlinevirtual

Default Draw method for all objects.

Reimplemented from TChain.

Definition at line 57 of file TProofChain.h.

◆ FillDrawAttributes()

void TProofChain::FillDrawAttributes ( TProof p)
private

Communicate the drawing attributes for this chain to the input list so that the draw selectors can use them, in case of need.

The drawing attributes are:

LineColor Line color LineStyle Line style LineWidth Line width MarkerColor Marker color index MarkerSize Marker size MarkerStyle Marker style FillColor Area fill color FillStyle Area fill style

Definition at line 261 of file TProofChain.cxx.

◆ FindBranch()

TBranch * TProofChain::FindBranch ( const char *  branchname)
virtual

Forwards the execution to the dummy tree header.

See TTree::FindBranch().

Reimplemented from TChain.

Definition at line 299 of file TProofChain.cxx.

◆ FindLeaf()

TLeaf * TProofChain::FindLeaf ( const char *  searchname)
virtual

Forwards the execution to the dummy tree header.

See TTree::FindLeaf().

Reimplemented from TChain.

Definition at line 308 of file TProofChain.cxx.

◆ GetBranch()

TBranch * TProofChain::GetBranch ( const char *  name)
virtual

Forwards the execution to the dummy tree header.

See TTree::GetBranch().

Reimplemented from TChain.

Definition at line 317 of file TProofChain.cxx.

◆ GetBranchStatus()

Bool_t TProofChain::GetBranchStatus ( const char *  branchname) const
virtual

Forwards the execution to the dummy tree header.

See TTree::GetBranchStatus().

Reimplemented from TChain.

Definition at line 326 of file TProofChain.cxx.

◆ GetEntries() [1/2]

Long64_t TProofChain::GetEntries ( ) const
virtual

Returns the total number of entries in the TProofChain, which is the number of entries in the TDSet that it holds.

Reimplemented from TChain.

Definition at line 398 of file TProofChain.cxx.

◆ GetEntries() [2/2]

Long64_t TProofChain::GetEntries ( const char *  selection)
virtual

See TTree::GetEntries(const char *selection) Not implemented in TProofChain.

Shouldn't be used.

Reimplemented from TChain.

Definition at line 412 of file TProofChain.cxx.

◆ GetListOfAliases()

virtual TList * TProofChain::GetListOfAliases ( ) const
inlinevirtual

Reimplemented from TTree.

Definition at line 68 of file TProofChain.h.

◆ GetListOfBranches()

virtual TObjArray * TProofChain::GetListOfBranches ( )
inlinevirtual

Return a pointer to the list of branches of the current tree.

Warning: If there is no current TTree yet, this routine will open the first in the chain.

Returns 0 on failure.

Reimplemented from TChain.

Definition at line 65 of file TProofChain.h.

◆ GetListOfClones()

virtual TList * TProofChain::GetListOfClones ( )
inlinevirtual

Reimplemented from TTree.

Definition at line 64 of file TProofChain.h.

◆ GetListOfFriends()

virtual TList * TProofChain::GetListOfFriends ( ) const
inlinevirtual

Reimplemented from TTree.

Definition at line 67 of file TProofChain.h.

◆ GetListOfLeaves()

virtual TObjArray * TProofChain::GetListOfLeaves ( )
inlinevirtual

Return a pointer to the list of leaves of the current tree.

Warning: May set the current tree!

Reimplemented from TChain.

Definition at line 66 of file TProofChain.h.

◆ GetMakeClass()

Int_t TProofChain::GetMakeClass ( ) const
inline

Definition at line 72 of file TProofChain.h.

◆ GetPlayer()

TVirtualTreePlayer * TProofChain::GetPlayer ( )

Forwards the execution to the dummy tree header.

See TTree::GetPlayer().

Definition at line 335 of file TProofChain.cxx.

◆ GetReadEntry()

Long64_t TProofChain::GetReadEntry ( ) const
virtual

Returns the number of processed entries.

Reimplemented from TChain.

Definition at line 437 of file TProofChain.cxx.

◆ HasTreeHeader()

Bool_t TProofChain::HasTreeHeader ( ) const
inline

Definition at line 76 of file TProofChain.h.

◆ Process() [1/2]

Long64_t TProofChain::Process ( const char *  filename,
Option_t option = "",
Long64_t  nentries = TTree::kMaxEntries,
Long64_t  firstentry = 0 
)
virtual

Forwards the execution to the TDSet.

The return value is -1 in case of error and TSelector::GetStatus() in in case of success. See TDSet::Process().

Reimplemented from TChain.

Definition at line 346 of file TProofChain.cxx.

◆ Process() [2/2]

Long64_t TProofChain::Process ( TSelector selector,
Option_t option = "",
Long64_t  nentries = TTree::kMaxEntries,
Long64_t  firstentry = 0 
)
virtual

The return value is -1 in case of error and TSelector::GetStatus() in in case of success.

Reimplemented from TChain.

Definition at line 364 of file TProofChain.cxx.

◆ Progress()

void TProofChain::Progress ( Long64_t  total,
Long64_t  processed 
)
virtual

Changes the number of processed entries.

Definition at line 425 of file TProofChain.cxx.

◆ ReleaseProof()

void TProofChain::ReleaseProof ( )
virtual

Releases PROOF. Disconnect the "progress" signal.

Definition at line 445 of file TProofChain.cxx.

◆ SetDebug()

void TProofChain::SetDebug ( Int_t  level = 1,
Long64_t  min = 0,
Long64_t  max = 9999999 
)
virtual

See TTree::SetDebug.

Reimplemented from TTree.

Definition at line 381 of file TProofChain.cxx.

◆ SetEntryList()

virtual void TProofChain::SetEntryList ( TEntryList enlist,
const Option_t  
)
inlinevirtual

Definition at line 84 of file TProofChain.h.

◆ SetEventList()

virtual void TProofChain::SetEventList ( TEventList evlist)
inlinevirtual

This function transfroms the given TEventList into a TEntryList.

NOTE, that this function loads all tree headers, because the entry numbers in the TEventList are global and have to be recomputed, taking into account the number of entries in each tree.

The new TEntryList is owned by the TChain and gets deleted when the chain is deleted. This TEntryList is returned by GetEntryList() function, and after GetEntryList() function is called, the TEntryList is not owned by the chain any more and will not be deleted with it.

Reimplemented from TChain.

Definition at line 83 of file TProofChain.h.

◆ SetName()

void TProofChain::SetName ( const char *  name)
virtual

See TTree::GetName.

Reimplemented from TChain.

Definition at line 389 of file TProofChain.cxx.

Member Data Documentation

◆ fChain

TChain* TProofChain::fChain
protected

Definition at line 42 of file TProofChain.h.

◆ fSet

TDSet* TProofChain::fSet
protected

Definition at line 43 of file TProofChain.h.

Libraries for TProofChain:

The documentation for this class was generated from the following files: