PandaTree
Public Types | Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
panda::HLTObjectStore Class Reference
Inheritance diagram for panda::HLTObjectStore:
panda::Collection< E >

Public Types

typedef std::vector< HLTObject const * > HLTObjectVector
 
- Public Types inherited from panda::Collection< E >
typedef Collection< E > self_type
 
typedef E::base_type::collection_type base_type
 
typedef E value_type
 
typedef value_type::datastore data_type
 
typedef value_type & reference
 
typedef value_type const & const_reference
 
typedef value_type * pointer
 
typedef value_type const * const_pointer
 
typedef utils::Iterator< self_type, false > iterator
 
typedef utils::Iterator< self_type, true > const_iterator
 

Public Member Functions

 HLTObjectStore (char const *name="", UInt_t initialMax=512)
 
 HLTObjectStore (HLTObjectStore const &)
 
HLTObjectStoreoperator= (HLTObjectStore const &)
 
void setFilterObjectKeys (std::vector< TString > const &filters)
 Reset the filterObjects map for each run. Not to be called by users.
 
void makeMap ()
 Fill the filterObjects map for each event. Not to be called by users.
 
void registerFilter (char const *filter)
 Use to declare a trigger filter name (key in the triggerObjects map) to be used in the analysis. More...
 
void setIgnoreMissing (Bool_t b)
 If set to true, return an empty vector when non-existent filter is asked for.
 
HLTObjectVector const & filterObjects (char const *filter) const
 filterObjects_.at() with warnings. To be called by users.
 
- Public Member Functions inherited from panda::Collection< E >
 Collection (char const *name="", UInt_t initialMax=64)
 
 Collection (self_type const &src)
 
self_typeoperator= (self_type const &rhs)
 
reference at (UInt_t idx)
 Element accessor with range check.
 
const_reference at (UInt_t idx) const
 Element accessor with range check.
 
reference operator[] (UInt_t idx)
 Element accessor with no range check.
 
const_reference operator[] (UInt_t idx) const
 Element accessor with no range check.
 
iterator begin ()
 Return an iterator pointing to the first element.
 
const_iterator begin () const
 Return an iterator pointing to the first element.
 
iterator end ()
 Return an iterator pointing to the end of the array (invalid address)
 
const_iterator end () const
 Return an iterator pointing to the end of the array (invalid address)
 
reference front ()
 Reference to the first element.
 
const_reference front () const
 Reference to the first element.
 
reference back ()
 Reference to the last element.
 
const_reference back () const
 Reference to the last element.
 
void copy (self_type const &)
 Copy the array contents. More...
 
void push_back (const_reference)
 Append an element to the back and resize by 1. More...
 
reference create_back ()
 Create an element at the end of the collection and return a reference. More...
 
Element::datastoregetData () override
 
Element::datastore const & getData () const override
 
ElementelemAt (UInt_t idx) override
 
Element const & elemAt (UInt_t idx) const override
 
std::vector< UInt_t > sort (ContainerBase::Comparison const &) override
 
void print (std::ostream &=std::cout, UInt_t level=1) const override
 
void dump (std::ostream &=std::cout) const override
 

Protected Attributes

Bool_t ignoreMissing_ {false}
 
std::set< TString > registeredFilters_ {}
 List of trigger object filter names to use.
 
std::map< TString, UInt_t > nameToSlot_ {}
 Map from filter name to the outer index of objectVectors.
 
std::vector< Int_t > indexToSlot_ {}
 Map from filter index to objectVectors slot.
 
std::vector< HLTObjectVector > objectVectors_ {}
 Vector of vector of pointers to the objects. Outer index for filters.
 

Static Protected Attributes

static HLTObjectVector const emptyVector_ {}
 Empty vector as a return value to filterObjects when ignoreMissing is true.
 

Additional Inherited Members

- Public Attributes inherited from panda::Collection< E >
data_type data {}
 
- Protected Member Functions inherited from panda::Collection< E >
 Collection (char const *name, UInt_t unitSize, Bool_t dummy)
 
void reallocate_ (UInt_t) override
 

Member Function Documentation

§ registerFilter()

void panda::HLTObjectStore::registerFilter ( 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.


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