![]() |
ATLAS Offline Software
|
TriggerElement is the basic ingreedient of the interface between HLT algorithms and the navigation It holds navigation links by itself but they are not exposed. More...
#include <TriggerElement.h>
Classes | |
| class | FeatureAccessHelper |
| the FeatureAccessHelper is a class used to keep track of features attached to this TE. More... | |
| class | ObjectIndex |
| Helper class for conversion from/to int stored in TE and pair of ints used in Navigation Object pointer in Navigation is pair of ints. More... | |
Public Types | |
| enum | Relation { sameRoIRelation , seedsRelation , seededByRelation } |
| possible relations enumeration (Note: uses no longer here) More... | |
| enum | States { activeState = 0x1 , ghostState = 0x2 , nofwdState = 0x4 , errorState = 0x8 } |
| typedef std::vector< FeatureAccessHelper > | FeatureVec |
Public Member Functions | |
| TriggerElement () | |
| TriggerElement (te_id_type id, bool ghost, bool nofwd=false) | |
| ~TriggerElement () | |
| te_id_type | getId () const |
| reset internals. | |
| bool | getActiveState () const |
| get state of the TriggerElement | |
| void | setActiveState (bool state) |
| set state of the TriggerElement | |
| bool | ghost () const |
| bool | getGhostState () const |
| void | setGhostState (bool t=true) |
| void | setTransient (bool t=true) |
| bool | transient () |
| void | setErrorState (bool state=true) |
| bool | getErrorState () const |
| const std::vector< TriggerElement * > & | getRelated (Relation rel) const |
| returns reference to the likns to other TriggerElements related by relation r | |
| void | relate (TriggerElement *te, Relation r) |
| reates given TE to other TE | |
| void | relate (const std::vector< TriggerElement * > &tes, Relation r) |
| relates this TE to vecor of other TEs | |
| void | serialize (std::vector< uint32_t > &output, const std::map< TriggerElement *, uint16_t > &keys, const TriggerElement *previous) const |
| serializes TE | |
| void | deserialize (std::vector< uint32_t >::const_iterator &inputIt, const std::map< uint16_t, TriggerElement * > &keys, const TriggerElement *previous) |
| deserialization | |
| const std::vector< FeatureAccessHelper > & | getFeatureAccessHelpers () const |
| returns all features which ara attached to this TE | |
| std::vector< FeatureAccessHelper > & | getFeatureAccessHelpers () |
| void | addFeature (class_id_type clid, const ObjectIndex &index, bool forget=false) |
| add helper for new feature | |
| void | addFeature (const FeatureAccessHelper &f) |
| const std::vector< FeatureAccessHelper > & | getPreviousFeatures () const |
| std::vector< FeatureAccessHelper > & | getPreviousFeatures () |
Static Public Member Functions | |
| static unsigned int | enquireId (std::vector< uint32_t >::const_iterator &inputIt) |
Public Attributes | |
| std::map< Relation, std::vector< TriggerElement * > > | m_relations |
| relations holder (features outside) | |
Private Attributes | |
| unsigned int | m_state |
| one word for all states, info in bits (saving space in serialized object) | |
| te_id_type | m_id |
| id | |
| bool | m_transient |
| marker that TE should not be serialized | |
| std::vector< FeatureAccessHelper > | m_uses |
| all features attached are in this storage | |
| std::vector< FeatureAccessHelper > | m_prev |
| all features attached are in this TE and seeding TEs | |
TriggerElement is the basic ingreedient of the interface between HLT algorithms and the navigation It holds navigation links by itself but they are not exposed.
The way to work with the navigation is only via the Navigation class.
Definition at line 27 of file TrigNavStructure/TrigNavStructure/TriggerElement.h.
| typedef std::vector< FeatureAccessHelper > HLT::TriggerElement::FeatureVec |
Definition at line 233 of file TrigNavStructure/TrigNavStructure/TriggerElement.h.
possible relations enumeration (Note: uses no longer here)
| Enumerator | |
|---|---|
| sameRoIRelation | equilateral relation of all TEs rooted in one RoI |
| seedsRelation | what TEs I am seeding |
| seededByRelation | what TEs are seeding me |
Definition at line 116 of file TrigNavStructure/TrigNavStructure/TriggerElement.h.
Definition at line 136 of file TrigNavStructure/TrigNavStructure/TriggerElement.h.
| TriggerElement::TriggerElement | ( | ) |
Definition at line 15 of file TrigNavStructure/Root/TriggerElement.cxx.
| TriggerElement::TriggerElement | ( | te_id_type | id, |
| bool | ghost, | ||
| bool | nofwd = false ) |
Definition at line 19 of file TrigNavStructure/Root/TriggerElement.cxx.
| TriggerElement::~TriggerElement | ( | ) |
Definition at line 27 of file TrigNavStructure/Root/TriggerElement.cxx.
| void TriggerElement::addFeature | ( | class_id_type | clid, |
| const ObjectIndex & | index, | ||
| bool | forget = false ) |
add helper for new feature
| clid | the CLID of the object attached |
| index | an integer used to retrieve it |
| forget | is the flag notifying that during serialization link to this objects should be lost |
Definition at line 37 of file TrigNavStructure/Root/TriggerElement.cxx.
| void TriggerElement::addFeature | ( | const FeatureAccessHelper & | f | ) |
Definition at line 41 of file TrigNavStructure/Root/TriggerElement.cxx.
| void TriggerElement::deserialize | ( | std::vector< uint32_t >::const_iterator & | inputIt, |
| const std::map< uint16_t, TriggerElement * > & | keys, | ||
| const TriggerElement * | previous ) |
deserialization
| inputIt | a point where we should start reading |
| keys | keys wich point to the TE related by seeds relation |
| previous | UNUSED parameter |
Definition at line 182 of file TrigNavStructure/Root/TriggerElement.cxx.
|
static |
Definition at line 111 of file TrigNavStructure/Root/TriggerElement.cxx.
|
inline |
get state of the TriggerElement
Definition at line 48 of file TrigNavStructure/TrigNavStructure/TriggerElement.h.
|
inline |
Definition at line 65 of file TrigNavStructure/TrigNavStructure/TriggerElement.h.
|
inline |
Definition at line 239 of file TrigNavStructure/TrigNavStructure/TriggerElement.h.
|
inline |
returns all features which ara attached to this TE
Definition at line 238 of file TrigNavStructure/TrigNavStructure/TriggerElement.h.
|
inline |
Definition at line 56 of file TrigNavStructure/TrigNavStructure/TriggerElement.h.
|
inline |
reset internals.
Needed because of TriggerStore (or TriggerFactory ...) can be used.
gets the id of this TriggerElement
Definition at line 43 of file TrigNavStructure/TrigNavStructure/TriggerElement.h.
|
inline |
Definition at line 252 of file TrigNavStructure/TrigNavStructure/TriggerElement.h.
|
inline |
Definition at line 251 of file TrigNavStructure/TrigNavStructure/TriggerElement.h.
|
inline |
returns reference to the likns to other TriggerElements related by relation r
| rel | relation name (one of HLT::Navigation::Relation) |
Definition at line 127 of file TrigNavStructure/TrigNavStructure/TriggerElement.h.
|
inline |
Definition at line 55 of file TrigNavStructure/TrigNavStructure/TriggerElement.h.
| void TriggerElement::relate | ( | const std::vector< TriggerElement * > & | tes, |
| Relation | r ) |
relates this TE to vecor of other TEs
| tes | vector of TriggerElement pointers |
| r | relation .. one of Relation enums |
Definition at line 95 of file TrigNavStructure/Root/TriggerElement.cxx.
| void TriggerElement::relate | ( | TriggerElement * | te, |
| Relation | r ) |
reates given TE to other TE
| te | TriggerElement pointer |
| r | relation .. one of Relation enums Nothe that the relation is usually reflexive ... |
Definition at line 86 of file TrigNavStructure/Root/TriggerElement.cxx.
| void TriggerElement::serialize | ( | std::vector< uint32_t > & | output, |
| const std::map< TriggerElement *, uint16_t > & | keys, | ||
| const TriggerElement * | previous ) const |
serializes TE
| output | is vector of raw integers where to put serialized TE |
| keys | is a map from pointers to ksys ... this keas go to serializized TE |
| previous | UNUSED parameter |
Definition at line 134 of file TrigNavStructure/Root/TriggerElement.cxx.
| void TriggerElement::setActiveState | ( | bool | state | ) |
set state of the TriggerElement
Definition at line 55 of file TrigNavStructure/Root/TriggerElement.cxx.
| void TriggerElement::setErrorState | ( | bool | state = true | ) |
Definition at line 78 of file TrigNavStructure/Root/TriggerElement.cxx.
| void TriggerElement::setGhostState | ( | bool | t = true | ) |
Definition at line 82 of file TrigNavStructure/Root/TriggerElement.cxx.
|
inline |
Definition at line 59 of file TrigNavStructure/TrigNavStructure/TriggerElement.h.
|
inline |
Definition at line 60 of file TrigNavStructure/TrigNavStructure/TriggerElement.h.
|
private |
id
Definition at line 257 of file TrigNavStructure/TrigNavStructure/TriggerElement.h.
|
private |
all features attached are in this TE and seeding TEs
Definition at line 260 of file TrigNavStructure/TrigNavStructure/TriggerElement.h.
| std::map<Relation, std::vector<TriggerElement*> > HLT::TriggerElement::m_relations |
relations holder (features outside)
Definition at line 143 of file TrigNavStructure/TrigNavStructure/TriggerElement.h.
|
private |
one word for all states, info in bits (saving space in serialized object)
Definition at line 256 of file TrigNavStructure/TrigNavStructure/TriggerElement.h.
|
private |
marker that TE should not be serialized
Definition at line 258 of file TrigNavStructure/TrigNavStructure/TriggerElement.h.
|
private |
all features attached are in this storage
Definition at line 259 of file TrigNavStructure/TrigNavStructure/TriggerElement.h.