Diana Software
Public Member Functions | Private Member Functions | Private Attributes | List of all members
QChain Class Reference

TChain used in diana. More...

Inheritance diagram for QChain:

Public Member Functions

 QChain ()
 constructor More...
 
 QChain (const char *treeName)
 constructor with treeName More...
 
virtual ~QChain ()
 destructor More...
 
Int_t Add (const char *filename, Long64_t nentries=kBigNumber)
 
const std::string & GetSoftwareRevision () const
 
const std::string & GetVersionTag () const
 
void ResetLists ()
 
TObjArray * GetListOfAllLeaves ()
 
TObjArray * GetListOfAllBranches ()
 
TList * GetListOfAllAliases ()
 
std::vector< QChain * > GetFriends ()
 

Private Member Functions

 ClassDef (QChain, 4)
 

Private Attributes

std::string fSoftwareRevision
 software version of first qtree More...
 
std::string fVersionTag
 
std::vector< QChain * > fFriends
 friend QChains More...
 
TObjArray * fAllLeaves
 list of all leaves More...
 
TObjArray * fAllBranches
 list of all branches More...
 
TList * fAllAliases
 list of all aliases More...
 

Detailed Description

TChain used in diana.

Author
Marco Vignati

This class behaves exactly as a TChain and must be used in place of TChain in diana I/O. It handles QTrees named "qtree". It overloads the Add() method that handles file lists (.list files) and automatically create friend QChains of friend trees found in input files. Use this class also to load a single QTree from a file, so that its friend are loaded too.

Examples
ScanEvents.C.

Definition at line 22 of file QChain.hh.

Constructor & Destructor Documentation

◆ QChain() [1/2]

QChain::QChain ( )

constructor

Referenced by Add().

◆ QChain() [2/2]

QChain::QChain ( const char *  treeName)

constructor with treeName

Definition at line 23 of file QChain.cc.

References fAllAliases, fAllBranches, fAllLeaves, fSoftwareRevision, and fVersionTag.

◆ ~QChain()

QChain::~QChain ( )
virtual

destructor

Definition at line 32 of file QChain.cc.

References fFriends, and ResetLists().

Member Function Documentation

◆ Add()

Int_t QChain::Add ( const char *  filename,
Long64_t  nentries = kBigNumber 
)

◆ ClassDef()

QChain::ClassDef ( QChain  ,
 
)
private

◆ GetFriends()

std::vector<QChain*> QChain::GetFriends ( )
inline

Definition at line 55 of file QChain.hh.

References fFriends.

◆ GetListOfAllAliases()

TList * QChain::GetListOfAllAliases ( )

Definition at line 148 of file QChain.cc.

References fAllAliases, and fFriends.

Referenced by QGFileHandler::GetSetOfAliases(), and QGFileHandler::SetLowestStartTimeUnix().

◆ GetListOfAllBranches()

TObjArray * QChain::GetListOfAllBranches ( )

Definition at line 178 of file QChain.cc.

References fAllBranches, and fFriends.

Referenced by QRootFileReaderBase::GetBranches().

◆ GetListOfAllLeaves()

TObjArray * QChain::GetListOfAllLeaves ( )

Definition at line 122 of file QChain.cc.

References fAllLeaves, and fFriends.

Referenced by QGFileHandler::GetSetOfLeaves(), and QGFileHandler::GetSetOfQVectorLeaves().

◆ GetSoftwareRevision()

const std::string& QChain::GetSoftwareRevision ( ) const
inline

Definition at line 39 of file QChain.hh.

References fSoftwareRevision.

◆ GetVersionTag()

const std::string& QChain::GetVersionTag ( ) const
inline

Definition at line 42 of file QChain.hh.

References fVersionTag.

◆ ResetLists()

void QChain::ResetLists ( )

Definition at line 40 of file QChain.cc.

References fAllAliases, fAllBranches, and fAllLeaves.

Referenced by Add(), QRootFileReaderBase::GetBranches(), and ~QChain().

Member Data Documentation

◆ fAllAliases

TList* QChain::fAllAliases
private

list of all aliases

Definition at line 72 of file QChain.hh.

Referenced by GetListOfAllAliases(), QChain(), and ResetLists().

◆ fAllBranches

TObjArray* QChain::fAllBranches
private

list of all branches

Definition at line 69 of file QChain.hh.

Referenced by GetListOfAllBranches(), QChain(), and ResetLists().

◆ fAllLeaves

TObjArray* QChain::fAllLeaves
private

list of all leaves

Definition at line 66 of file QChain.hh.

Referenced by GetListOfAllLeaves(), QChain(), and ResetLists().

◆ fFriends

std::vector<QChain*> QChain::fFriends
private

friend QChains

Definition at line 63 of file QChain.hh.

Referenced by Add(), GetFriends(), GetListOfAllAliases(), GetListOfAllBranches(), GetListOfAllLeaves(), and ~QChain().

◆ fSoftwareRevision

std::string QChain::fSoftwareRevision
private

software version of first qtree

Definition at line 59 of file QChain.hh.

Referenced by Add(), GetSoftwareRevision(), and QChain().

◆ fVersionTag

std::string QChain::fVersionTag
private

Definition at line 60 of file QChain.hh.

Referenced by Add(), GetVersionTag(), and QChain().


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