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>
|
| TriggerElement () |
|
| TriggerElement (te_id_type id, bool ghost, bool nofwd=false) |
|
| ~TriggerElement () |
|
te_id_type | getId () const |
| reset internals. More...
|
|
bool | getActiveState () const |
| get state of the TriggerElement More...
|
|
void | setActiveState (bool state) |
| set state of the TriggerElement More...
|
|
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 More...
|
|
void | relate (TriggerElement *te, Relation r) |
| reates given TE to other TE More...
|
|
void | relate (const std::vector< TriggerElement * > &tes, Relation r) |
| relates this TE to vecor of other TEs More...
|
|
void | serialize (std::vector< uint32_t > &output, const std::map< TriggerElement *, uint16_t > &keys, const TriggerElement *previous) const |
| serializes TE More...
|
|
void | deserialize (std::vector< uint32_t >::const_iterator &inputIt, const std::map< uint16_t, TriggerElement * > &keys, const TriggerElement *previous) |
| deserialization More...
|
|
const std::vector< FeatureAccessHelper > & | getFeatureAccessHelpers () const |
| returns all features which ara attached to this TE More...
|
|
std::vector< FeatureAccessHelper > & | getFeatureAccessHelpers () |
|
void | addFeature (class_id_type clid, const ObjectIndex &index, bool forget=false) |
| add helper for new feature More...
|
|
void | addFeature (const FeatureAccessHelper &f) |
|
const std::vector< FeatureAccessHelper > & | getPreviousFeatures () const |
|
std::vector< FeatureAccessHelper > & | getPreviousFeatures () |
|
|
static unsigned int | enquireId (std::vector< uint32_t >::const_iterator &inputIt) |
|
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.
- Author
- Tomasz Bold Tomas.nosp@m.z.Bo.nosp@m.ld@ce.nosp@m.rn.c.nosp@m.h - U. of California - Irvine
Definition at line 27 of file TrigNavStructure/TrigNavStructure/TriggerElement.h.
◆ FeatureVec
◆ Relation
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.
◆ States
Enumerator |
---|
activeState | this bit is keeping active/inactive state of TE
|
ghostState | this TE is of type ghost/evaporating/one can't attach features to this TE
|
nofwdState | this TE is of type which stops fwd deactivation
|
errorState | somewhere in the algorithms dealing with this TE there was an error
|
Definition at line 136 of file TrigNavStructure/TrigNavStructure/TriggerElement.h.
◆ TriggerElement() [1/2]
TriggerElement::TriggerElement |
( |
| ) |
|
◆ TriggerElement() [2/2]
TriggerElement::TriggerElement |
( |
te_id_type |
id, |
|
|
bool |
ghost, |
|
|
bool |
nofwd = false |
|
) |
| |
◆ ~TriggerElement()
TriggerElement::~TriggerElement |
( |
| ) |
|
◆ addFeature() [1/2]
add helper for new feature
- Parameters
-
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.
◆ addFeature() [2/2]
Definition at line 41 of file TrigNavStructure/Root/TriggerElement.cxx.
42 const static size_t max_features_per_te = 0xfff;
43 if (
m_uses.size() == max_features_per_te-1 ) {
44 std::cout <<
"ERROR - count of features per TE exceeds the limitation, further attach operations are ignored" << std::endl;
46 if (
m_uses.size() == max_features_per_te ) {
◆ deserialize()
deserialization
- Parameters
-
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.
186 uint32_t seedingUsesStateWord = *inputIt++;
187 m_state = seedingUsesStateWord & 0xf;
188 unsigned int size = (seedingUsesStateWord & 0xfff00000) >> 20;
189 unsigned int featuresAttached = (seedingUsesStateWord & 0x000fff00) >> 8;
194 std::map<uint16_t, TriggerElement*>::const_iterator
id;
195 unsigned relationsCount = 0;
197 for (
unsigned int i = 0 ;
i <
size; ++
i ) {
202 if (
id !=
keys.end() ) {
211 if ( relationsCount %2 == 1 ) inputIt++;
216 for (
unsigned int i = 0 ;
i < featuresAttached; ++
i ) {
217 unsigned int clid = *inputIt++;
◆ enquireId()
unsigned int TriggerElement::enquireId |
( |
std::vector< uint32_t >::const_iterator & |
inputIt | ) |
|
|
static |
◆ getActiveState()
bool HLT::TriggerElement::getActiveState |
( |
| ) |
const |
|
inline |
◆ getErrorState()
bool HLT::TriggerElement::getErrorState |
( |
| ) |
const |
|
inline |
◆ getFeatureAccessHelpers() [1/2]
◆ getFeatureAccessHelpers() [2/2]
◆ getGhostState()
bool HLT::TriggerElement::getGhostState |
( |
| ) |
const |
|
inline |
◆ getId()
◆ getPreviousFeatures() [1/2]
◆ getPreviousFeatures() [2/2]
◆ getRelated()
returns reference to the likns to other TriggerElements related by relation r
- Parameters
-
rel | relation name (one of HLT::Navigation::Relation) |
@return is reference ot the vector of related TEs
Definition at line 127 of file TrigNavStructure/TrigNavStructure/TriggerElement.h.
132 static const std::vector<TriggerElement*> dumvec;
◆ ghost()
bool HLT::TriggerElement::ghost |
( |
| ) |
const |
|
inline |
◆ relate() [1/2]
◆ relate() [2/2]
◆ serialize()
serializes TE
- Parameters
-
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.
138 unsigned summaryIndex =
output.size();
142 std::vector<TriggerElement*> dumvec;
143 const std::vector<TriggerElement*>& relvec =
146 std::vector<TriggerElement*>::const_iterator teIt;
147 unsigned relationsCount = 0;
149 for ( teIt = relvec.begin(); teIt != relvec.end(); ++teIt ) {
150 std::map<TriggerElement*, uint16_t>::const_iterator
key =
keys.find(*teIt);
161 std::vector< FeatureAccessHelper >::const_iterator featuresIt;
162 unsigned featuresCount = 0;
164 for ( featuresIt =
m_uses.begin(); featuresIt !=
m_uses.end(); ++featuresIt ) {
165 if ( ! featuresIt->forget() ) {
166 output.push_back ( featuresIt->getCLID() );
167 featuresIt->getIndex().serialize(
output);
171 uint32_t seedingUsesStateWord = ((relvec.size() << 20)) | (featuresCount << 8) | (
m_state & 0xf);
172 output[summaryIndex] = seedingUsesStateWord;
◆ setActiveState()
void TriggerElement::setActiveState |
( |
bool |
state | ) |
|
◆ setErrorState()
void TriggerElement::setErrorState |
( |
bool |
state = true | ) |
|
◆ setGhostState()
void TriggerElement::setGhostState |
( |
bool |
t = true | ) |
|
◆ setTransient()
void HLT::TriggerElement::setTransient |
( |
bool |
t = true | ) |
|
|
inline |
◆ transient()
bool HLT::TriggerElement::transient |
( |
| ) |
|
|
inline |
◆ m_id
◆ m_prev
◆ m_relations
◆ m_state
unsigned int HLT::TriggerElement::m_state |
|
private |
◆ m_transient
bool HLT::TriggerElement::m_transient |
|
private |
◆ m_uses
The documentation for this class was generated from the following files: