PandaTree
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | List of all members
panda::EventBase Class Reference
Inheritance diagram for panda::EventBase:
panda::TreeEntry panda::ReaderObject panda::Object panda::Event panda::EventMonophoton panda::EventSV panda::EventTP panda::EventAnalysis panda::EventTP2E panda::EventTP2M panda::EventTPEG panda::EventTPEM panda::EventTPME panda::EventTPMG panda::EventTPEEG panda::EventTPMMG

Public Member Functions

 EventBase (EventBase const &)
 
EventBaseoperator= (EventBase 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.
 
virtual GenParticleBaseCollection const * genParticleCollection () const
 
virtual GenParticleBaseCollectiongenParticleCollection ()
 
void setReadRunTree (Bool_t s)
 Turn run synch feature on/off (default on)
 
UInt_t registerTrigger (char const *path)
 Use to declare a trigger path to be used in the analysis. Returns a token for the path. More...
 
Bool_t triggerFired (UInt_t token) const
 Trigger decision of the event. More...
 
void registerTriggerObjects (char const *filter)
 Use to declare a trigger filter name (key in the triggerObjects map) to be used in the analysis. More...
 
- 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

HLTBits triggers = HLTBits("triggers")
 
PartonCollection partons = PartonCollection("partons", 8)
 
Vertex genVertex = Vertex("genVertex")
 
UInt_t runNumber {}
 
UInt_t lumiNumber {}
 
ULong64_t eventNumber {}
 
Bool_t isData {}
 
Float_t weight {}
 
UShort_t npv {}
 
UShort_t npvTrue {}
 
Run run
 Current run object.
 
HLTObjectStore triggerObjects = HLTObjectStore("triggerObjects")
 Trigger object collection with additional features.
 
RRNG rng {0,0,nullptr}
 Repeatable random number generator, initialized to be empty.
 

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

§ registerTrigger()

UInt_t panda::EventBase::registerTrigger ( char const *  path)
inline

Use to declare a trigger path to be used in the analysis. Returns a token for the path.

Call this function before the event loop for each trigger you will be using. The return value is an integer unique to the path, and can be passed to triggerFired() in the event loop to retrieve the trigger decision of the event.

Parameters
pathHLT path

§ registerTriggerObjects()

void panda::EventBase::registerTriggerObjects ( char const *  filter)
inline

Use to declare a trigger filter name (key in the triggerObjects map) to be used in the analysis.

By default, all trigger objects are loaded into the triggerObjects map at each call to getEntry. Once a call to this function is made, only the objects for the registered filter will be loaded.

§ triggerFired()

Bool_t panda::EventBase::triggerFired ( UInt_t  token) const

Trigger decision of the event.

Pass the trigger token returned by registerTrigger().

Parameters
tokenToken returned by registerTrigger()

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