PandaTree
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | List of all members
panda::Run Class Reference
Inheritance diagram for panda::Run:
panda::TreeEntry panda::ReaderObject panda::Object

Classes

struct  HLTTreeEntry
 

Public Member Functions

 Run (Run const &)
 
Runoperator= (Run const &)
 
void print (std::ostream &=std::cout, UInt_t level=1) const override
 Print the object content.
 
void dump (std::ostream &=std::cout) const override
 Dump the object content.
 
void setLoadTrigger (Bool_t l=kTRUE)
 Set the trigger loading switch.
 
Bool_t getLoadTrigger () const
 Get the trigger loading switch.
 
UInt_t registerTrigger (char const *path)
 See description on Event::registerTrigger.
 
char const * getRegisteredPath (UInt_t token) const
 Get the registered path name for the token. More...
 
UInt_t getTriggerIndex (UInt_t token) const
 Get the trigger index for the given token.
 
char const * triggerMenu () const
 Current trigger menu name. More...
 
std::vector< TString > const & triggerPaths () const
 Get the full trigger path list. More...
 
UInt_t triggerSize () const
 Size of current trigger menu. More...
 
bool findEntry (TTree &runTree, UInt_t runNumber)
 Check for updates.
 
void resetCache ()
 Reset inputTree_, inputTreeNumber_, and hltMenuCache_.
 
- Public Member Functions inherited from panda::TreeEntry
 TreeEntry (TreeEntry const &src)
 
TreeEntryoperator= (TreeEntry const &)
 
void setStatus (TTree &, utils::BranchList const &blist) final
 Set status of branches to true (matching branch) or false (vetoed branch) More...
 
utils::BranchList getStatus (TTree &) const final
 Get status of branches in the tree.
 
utils::BranchList getBranchNames (Bool_t=kTRUE, Bool_t direct=kFALSE) const final
 Get the full list of branch names. More...
 
UInt_t setAddress (TTree &, utils::BranchList const &blist={"*"}, Bool_t setStatus=kTRUE) final
 Bind the tree branches to the elements of this object. More...
 
void book (TTree &, utils::BranchList const &blist={"*"}) final
 Book new branches bound to this object on the tree. More...
 
Int_t getEntry (UInt_t, Long64_t entry, Bool_t localEntry=kFALSE) final
 Read an entry from an input tree. More...
 
Int_t fill (TTree &) final
 Fill a tree. More...
 
void init () final
 Reset the object state.
 
char const * getName () const final
 Name of this object.
 
void setName (char const *) final
 Set object name.
 
void unlink (TTree &) final
 Unlink from a tree.
 
- Public Member Functions inherited from panda::ReaderObject
 ReaderObject (ReaderObject const &src)
 
ReaderObjectoperator= (ReaderObject const &)
 
Int_t getEntry (TTree &tree, Long64_t entry, Bool_t localEntry=kFALSE) final
 Read an entry from an input tree. More...
 
void updateBranchArray (TTree &)
 
- Public Member Functions inherited from panda::Object
 Object (Object const &)
 
Objectoperator= (Object const &)
 

Static Public Member Functions

static utils::BranchList getListOfBranches (Bool_t direct=kFALSE)
 

Public Attributes

UInt_t runNumber {}
 
UInt_t hltMenu {}
 
UShort_t hltSize {}
 transient
 
struct panda::Run::HLTTreeEntry hlt
 

Protected Member Functions

void doSetStatus_ (TTree &, utils::BranchList const &) override
 
utils::BranchList doGetStatus_ (TTree &) const override
 
utils::BranchList doGetBranchNames_ () const override
 
void doSetAddress_ (TTree &, utils::BranchList const &, Bool_t setStatus) override
 
void doBook_ (TTree &, utils::BranchList const &) override
 
void doGetEntry_ (TTree &) override
 
void doInit_ () override
 
void doUnlink_ (TTree &) override
 
- Protected Member Functions inherited from panda::ReaderObject
UInt_t registerInput_ (TTree &)
 

Additional Inherited Members

- Protected Types inherited from panda::ReaderObject
typedef std::vector< TBranch * > BranchArray
 
typedef std::pair< TTree *, BranchArray > BranchMapping
 List of branches linked with this object in the tree.
 
- Protected Attributes inherited from panda::TreeEntry
std::vector< Object * > objects_ {}
 list of object branches (containers and singlets)
 
std::vector< CollectionBase * > collections_ {}
 list of collections (overlaps with objects_)
 
- Protected Attributes inherited from panda::ReaderObject
std::vector< BranchMappinginputBranches_
 List of list of input branches. More...
 

Member Function Documentation

§ getRegisteredPath()

char const * panda::Run::getRegisteredPath ( UInt_t  token) const

Get the registered path name for the token.

Returns an empty string for an invalid token.

§ triggerMenu()

char const * panda::Run::triggerMenu ( ) const

Current trigger menu name.

Throws an exception if trigger menu is not set.

§ triggerPaths()

std::vector< TString > const & panda::Run::triggerPaths ( ) const

Get the full trigger path list.

Throws an exception if trigger menu is not set.

§ triggerSize()

UInt_t panda::Run::triggerSize ( ) const
inline

Size of current trigger menu.

Throws an exception if trigger menu is not set.


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