![]() |
ATLAS Offline Software
|
#include <TrigNavStructure.h>
Public Member Functions | |
| virtual | ~TrigNavStructure () |
| virtual void | reset (bool inFinalize=false) |
| resets all the navigation, goes to the factory and asks to withdraw all produced objects | |
| TriggerElement * | getInitialNode () |
| gets initial node, if node is not there then it is created on fly | |
| const TriggerElement * | getInitialNode () const |
| TriggerElement * | addRoINode (TriggerElement *initial) |
| gets RoI node (attached to initial) | |
| TriggerElement * | addNode (TriggerElement *seed, unsigned int id) |
| adds nodes seeded form the one given as an argument, | |
| TriggerElement * | addNode (std::vector< TriggerElement * > &seeds, unsigned int id, bool ghost=false, bool nofwd=false) |
| adds node which is seeded from several other Needed by Topological algorithms | |
| void | printASCIIArt (std::string &str, const TriggerElement *te=0, int offset=0) const |
| pretty printing of the navigational structure (heavy) | |
| bool | serializeTEs (std::vector< uint32_t > &output) const |
| method serizlizes the navigation structure | |
| bool | deserializeTEs (std::vector< uint32_t >::const_iterator &start, unsigned int totalSize) |
| virtual bool | serialize (std::vector< uint32_t > &) const =0 |
| method serizlizes entire navigation | |
| virtual bool | deserialize (const std::vector< uint32_t > &)=0 |
| TriggerElement::FeatureAccessHelper | getFeature (const TriggerElement *te, class_id_type clid, const index_or_label_type &index_or_label) const |
| typeless feature access metod | |
| TriggerElement::FeatureAccessHelper | getFeatureRecursively (const TriggerElement *startTE, class_id_type clid, const index_or_label_type &index_or_label, const TriggerElement *&sourceTE) const |
| recursive search for features the function is similar to the above butif th features is not found at the startTE the search descends the structure of TEs until it is found. | |
| void | getAllRoIThresholdTEs (std::vector< TriggerElement * > &output) const |
| The query returns a vector of all TriggerElements that represent a LVL1 RoI threshold. | |
| void | getAll (std::vector< TriggerElement * > &output, const bool activeOnly=true) const |
| The query returning a collection of all TriggerElements. | |
| std::vector< TriggerElement * > & | getAllTEs () |
| access needed by slimming tools. | |
| const std::vector< TriggerElement * > & | getAllTEs () const |
| access needed by slimming tools. | |
| void | getAllOfType (const te_id_type id, std::vector< TriggerElement * > &output, const bool activeOnly=true) const |
| The query returning a collection of all TriggerElements if name is given. | |
| unsigned int | countAllOfType (const te_id_type id, const bool activeOnly=true) const |
| The query counting a collection of all TriggerElement of a given type. | |
| bool | propagateDeactivation (const TrigNavStructure *nav) |
| propagates deactivation of TE state This finction should be used after Trigger is rerurn on L2 and then the reruning on L2 is required. | |
| bool | combine (std::vector< unsigned int > &types, std::vector< std::vector< TriggerElement * > > &output, unsigned int maxResults=1000, bool onlyActive=true) |
| For Algorithms: return all the possible n-tuples of TE* objects (te0, te1..., ten) | |
| bool | overlaps (const TriggerElement *t1, const TriggerElement *t2) const |
| Check overlap between trigger elements (pointer equality or RoI overlap) | |
| bool | overlaps (const TriggerElement *t1, const std::vector< TriggerElement * > &teVec) const |
| Check overlap between a TE and a vector of TEs, using the method above. | |
| bool | getTopologicallySpannedBy (const TriggerElement *te, const std::vector< unsigned int > &types, std::vector< const TriggerElement * > &children, const bool activeOnly=true) const |
| gets the TEs whose predecessors were used to built a given topological TE | |
| unsigned int | copyAllFeatures (const TriggerElement *sourceTE, TriggerElement *destTE) |
| gets all features from the sourceTE and copies a reference (FeatureAccessHelper) to the destTE | |
| const BaseHolder * | getHolder (const TriggerElement::FeatureAccessHelper &fea) const |
| sub_index_type | subType (class_id_type clid, const index_or_label_type &sti_or_label) const |
| std::string | label (class_id_type clid, const index_or_label_type &sti_or_label) const |
| virtual bool | getFeatureAccessors (const TriggerElement *te, class_id_type clid, const index_or_label_type &index_or_label, bool only_single_feature, TriggerElement::FeatureVec &features, bool travel_backward_recursively, const TriggerElement *&source=m_unspecifiedTE, std::string &sourcelabel=m_unspecifiedLabel) const |
Static Public Member Functions | |
| static const std::vector< TriggerElement * > & | getRoINodes (const TriggerElement *somenode) |
| gets all RoI type nodes seeding indirectly this TriggerElement | |
| static const std::vector< TriggerElement * > & | getDirectPredecessors (const TriggerElement *te) |
| returns list of direct predecessors (nodes seeding me) | |
| static const std::vector< TriggerElement * > & | getDirectSuccessors (const TriggerElement *te) |
| returns list of direct predecessors (nodes I seed) | |
| static const TriggerElement * | getSuccessor (const TriggerElement *te, unsigned int id) |
| returns successor of given type beeing seeded from this TE | |
| static bool | isInitialNode (const TriggerElement *te) |
| queries if node is an initial one | |
| static bool | isRoINode (const TriggerElement *te) |
| queries if node is an RoI type one | |
| static bool | isTerminalNode (const TriggerElement *te) |
| queries if node is terminal (no more TriggerElement are seeded by it) | |
| static bool | haveCommonRoI (const TriggerElement *te1, const TriggerElement *te2) |
| does this 2 share RoI | |
| static bool | haveDistinctRoI (const TriggerElement *te1, const TriggerElement *te2) |
| inversion of haveCommonRoI | |
| static bool | haveAllCommonRoIs (const HLT::TriggerElement *te1, const HLT::TriggerElement *te2) |
| static bool | haveCommonSeed (const TriggerElement *te1, const TriggerElement *te2) |
| checks that there is any common predecessor of two TriggerElements | |
| static bool | haveDistinctSeed (const TriggerElement *te1, const TriggerElement *te2) |
| inversion of haveCommonSeed | |
| static bool | increasingOrderByTEId (const TriggerElement *te1, const TriggerElement *te2) |
| for sorting TriggerElements according to their id | |
| static bool | decreasingOrderByTEId (const TriggerElement *te1, const TriggerElement *te2) |
| static bool | hasIdFromTheSet (const TriggerElement *te, std::vector< unsigned int > ids) |
| simple helper | |
| static bool | isNotActive (const TriggerElement *te) |
| helper for the STL | |
| static bool | isTopological (const TriggerElement *te) |
| static bool | isCompatibleTree (const TriggerElement *te1, const TriggerElement *te2) |
| check compatibility of 2 navigation structures | |
Protected Member Functions | |
| virtual bool | getFeatureAccessorsSingleTE (const TriggerElement *te, class_id_type clid, const index_or_label_type &index_or_label, bool only_single_feature, TriggerElement::FeatureVec &features, const TriggerElement *&source, std::string &sourcelabel) const |
| bool | matchFeature (const TriggerElement::FeatureAccessHelper &fea, class_id_type clid, const index_or_label_type &index_or_label) const |
| void | fillSameRoIRelation (TriggerElement *roi, TriggerElement *te) |
| rebuilds the sameRoIRelation between trigger elements (used internally by deserialize) | |
| bool | addOneLevel (std::vector< std::vector< TriggerElement * > > ¤tCombs, std::vector< std::vector< std::pair< unsigned int, unsigned int > > > ¤tIdxs, unsigned int type, std::vector< std::vector< TriggerElement * > > &newCombs, std::vector< std::vector< std::pair< unsigned int, unsigned int > > > &newIdxs, unsigned int maxResults=1000, bool onlyActive=1) |
| Helper method for "combine": add one "level" of multiplicity to the results. | |
| TriggerElementFactory & | getFactory () |
| TrigHolderStructure & | getHolderStorage () |
| std::recursive_mutex & | getMutex () |
| const TriggerElementFactory & | getFactory () const |
| const TrigHolderStructure & | getHolderStorage () const |
| std::recursive_mutex & | getMutex () const |
Static Protected Attributes | |
| static const TriggerElement *m_unspecifiedTE | ATLAS_THREAD_SAFE |
| static std::string m_unspecifiedLabel | ATLAS_THREAD_SAFE |
Private Attributes | |
| SG::SlotSpecificObj< TriggerElementFactory > | m_factory |
| factory of trigger elements (one per processing slot) | |
| SG::SlotSpecificObj< TrigHolderStructure > | m_holderstorage |
| structure for feature holders (one per processing slot) | |
Static Private Attributes | |
| static std::recursive_mutex | s_rmutex |
Definition at line 40 of file TrigNavStructure.h.
|
virtual |
Definition at line 30 of file TrigNavStructure.cxx.
| TriggerElement * TrigNavStructure::addNode | ( | std::vector< TriggerElement * > & | seeds, |
| unsigned int | id, | ||
| bool | ghost = false, | ||
| bool | nofwd = false ) |
adds node which is seeded from several other Needed by Topological algorithms
| seeds | are all TriggerElements which seed newly created |
| id | the id to give for the created TriggerElement |
| ghost | flag is saying that this TE is a light weight one, no features attaching to it is allowed |
| nofwd | flag is saying that this TE will not be deactivated automatically in fwd deactivation process(rerunning) |
Definition at line 85 of file TrigNavStructure.cxx.
| TriggerElement * TrigNavStructure::addNode | ( | TriggerElement * | seed, |
| unsigned int | id ) |
adds nodes seeded form the one given as an argument,
| seed | a TriggerElement which direct predecessor of newly created |
| id | an id to give newly created TriggerElement |
Definition at line 79 of file TrigNavStructure.cxx.
|
protected |
Helper method for "combine": add one "level" of multiplicity to the results.
Definition at line 608 of file TrigNavStructure.cxx.
| TriggerElement * TrigNavStructure::addRoINode | ( | TriggerElement * | initial | ) |
gets RoI node (attached to initial)
Definition at line 58 of file TrigNavStructure.cxx.
| bool TrigNavStructure::combine | ( | std::vector< unsigned int > & | types, |
| std::vector< std::vector< TriggerElement * > > & | output, | ||
| unsigned int | maxResults = 1000, | ||
| bool | onlyActive = true ) |
For Algorithms: return all the possible n-tuples of TE* objects (te0, te1..., ten)
such that te0.id() == types[0], te1.id() == types[1]... In the case where ids appear multiple times, n-tuple permutations are counted only once. (so if te0.id() == te1.id(), (te0, te1) will appear but not (te1, te0)) "output" is populated with all the poClassID_traits<T>::ID();ssible combinations of this type. if "activeOnly" is true, only active trigger elements are used. The list is truncated at maxResults if maxResults > 0.
Definition at line 580 of file TrigNavStructure.cxx.
| unsigned int TrigNavStructure::copyAllFeatures | ( | const TriggerElement * | sourceTE, |
| TriggerElement * | destTE ) |
gets all features from the sourceTE and copies a reference (FeatureAccessHelper) to the destTE
| sourceTE | (source) TriggerElement holding features |
| destTE | (destiny) TriggerElement: copy feature references here |
Definition at line 734 of file TrigNavStructure.cxx.
| unsigned int TrigNavStructure::countAllOfType | ( | const te_id_type | id, |
| const bool | activeOnly = true ) const |
The query counting a collection of all TriggerElement of a given type.
Definition at line 388 of file TrigNavStructure.cxx.
|
static |
Definition at line 487 of file TrigNavStructure.cxx.
|
pure virtual |
Implemented in HLT::NavigationCore, and HLT::StandaloneNavigation.
| bool TrigNavStructure::deserializeTEs | ( | std::vector< uint32_t >::const_iterator & | start, |
| unsigned int | totalSize ) |
Definition at line 264 of file TrigNavStructure.cxx.
|
protected |
rebuilds the sameRoIRelation between trigger elements (used internally by deserialize)
Definition at line 307 of file TrigNavStructure.cxx.
| void TrigNavStructure::getAll | ( | std::vector< TriggerElement * > & | output, |
| const bool | activeOnly = true ) const |
The query returning a collection of all TriggerElements.
Definition at line 361 of file TrigNavStructure.cxx.
| void TrigNavStructure::getAllOfType | ( | const te_id_type | id, |
| std::vector< TriggerElement * > & | output, | ||
| const bool | activeOnly = true ) const |
The query returning a collection of all TriggerElements if name is given.
| id | name of TE, if "" given all TEs are returned |
Definition at line 342 of file TrigNavStructure.cxx.
| void TrigNavStructure::getAllRoIThresholdTEs | ( | std::vector< TriggerElement * > & | output | ) | const |
The query returns a vector of all TriggerElements that represent a LVL1 RoI threshold.
Definition at line 328 of file TrigNavStructure.cxx.
| std::vector< TriggerElement * > & TrigNavStructure::getAllTEs | ( | ) |
access needed by slimming tools.
Definition at line 374 of file TrigNavStructure.cxx.
| const std::vector< TriggerElement * > & TrigNavStructure::getAllTEs | ( | ) | const |
access needed by slimming tools.
Definition at line 381 of file TrigNavStructure.cxx.
|
static |
returns list of direct predecessors (nodes seeding me)
| te | TriggerElement to query |
Definition at line 120 of file TrigNavStructure.cxx.
|
static |
returns list of direct predecessors (nodes I seed)
| te | TriggerElement to query |
Definition at line 124 of file TrigNavStructure.cxx.
|
inlineprotected |
Definition at line 369 of file TrigNavStructure.h.
|
inlineprotected |
Definition at line 373 of file TrigNavStructure.h.
| TriggerElement::FeatureAccessHelper TrigNavStructure::getFeature | ( | const TriggerElement * | te, |
| class_id_type | clid, | ||
| const index_or_label_type & | index_or_label ) const |
typeless feature access metod
| te | the TE from which the search should be done |
| clid | the class ID of searched type |
| sub | feature sub index ( |
Definition at line 781 of file TrigNavStructure.cxx.
|
virtual |
Reimplemented in HLT::NavigationCore.
Definition at line 840 of file TrigNavStructure.cxx.
|
protectedvirtual |
Reimplemented in HLT::NavigationCore.
Definition at line 808 of file TrigNavStructure.cxx.
| TriggerElement::FeatureAccessHelper TrigNavStructure::getFeatureRecursively | ( | const TriggerElement * | startTE, |
| class_id_type | clid, | ||
| const index_or_label_type & | index_or_label, | ||
| const TriggerElement *& | sourceTE ) const |
recursive search for features the function is similar to the above butif th features is not found at the startTE the search descends the structure of TEs until it is found.
It stops on RoI nodes.
| sourceTE | is the TE where the feature was found |
Definition at line 795 of file TrigNavStructure.cxx.
| const BaseHolder * TrigNavStructure::getHolder | ( | const TriggerElement::FeatureAccessHelper & | fea | ) | const |
Definition at line 921 of file TrigNavStructure.cxx.
|
inlineprotected |
Definition at line 370 of file TrigNavStructure.h.
|
inlineprotected |
Definition at line 374 of file TrigNavStructure.h.
| TriggerElement * TrigNavStructure::getInitialNode | ( | ) |
gets initial node, if node is not there then it is created on fly
Definition at line 39 of file TrigNavStructure.cxx.
| const TriggerElement * TrigNavStructure::getInitialNode | ( | ) | const |
Definition at line 48 of file TrigNavStructure.cxx.
|
inlineprotected |
Definition at line 371 of file TrigNavStructure.h.
|
inlineprotected |
Definition at line 375 of file TrigNavStructure.h.
|
static |
gets all RoI type nodes seeding indirectly this TriggerElement
For getting all RoI nodes one can call getDirectrSuccessors(getIntialNode()
Definition at line 73 of file TrigNavStructure.cxx.
|
static |
returns successor of given type beeing seeded from this TE
| te | TriggerElement to query |
| id | the id of the successor TreiggerElement to find |
Definition at line 129 of file TrigNavStructure.cxx.
| bool TrigNavStructure::getTopologicallySpannedBy | ( | const TriggerElement * | te, |
| const std::vector< unsigned int > & | types, | ||
| std::vector< const TriggerElement * > & | children, | ||
| const bool | activeOnly = true ) const |
gets the TEs whose predecessors were used to built a given topological TE
| te | topological TE from which to start |
| types | vector of types to search for |
| childs | vector of retrieved TEs; empty in case some of the required TEs cannot be found or are not active (see the activeOnly parameter) |
| activeOnly | optional parameter specifying whether inactive TEs should be discarded from the search; true by default |
Definition at line 712 of file TrigNavStructure.cxx.
|
static |
simple helper
Definition at line 491 of file TrigNavStructure.cxx.
|
static |
Definition at line 447 of file TrigNavStructure.cxx.
|
static |
does this 2 share RoI
RoI node itself can be passed, then it will tell if a given TriggerElement is originating in this RoI for simple TriggerElement it is a bit overkill since it assumed that the number of RoIs can be any
Definition at line 414 of file TrigNavStructure.cxx.
|
static |
checks that there is any common predecessor of two TriggerElements
Definition at line 459 of file TrigNavStructure.cxx.
|
static |
inversion of haveCommonRoI
But notice it is more suitable for SLT sort etc. since for comparison 2 identical objects it returns false. However the transitivity can't be guaranteed.
Definition at line 442 of file TrigNavStructure.cxx.
|
static |
inversion of haveCommonSeed
Definition at line 479 of file TrigNavStructure.cxx.
|
static |
for sorting TriggerElements according to their id
Note that this methods are not complementary. (It is required to be usable for STL algorithms.)
Definition at line 483 of file TrigNavStructure.cxx.
|
static |
check compatibility of 2 navigation structures
This what is checked is only the id of trigger elements whether they are having the same place in the navigation structure; have identical subtrees (check is recursive)
Definition at line 524 of file TrigNavStructure.cxx.
|
static |
queries if node is an initial one
| te | node to be queried |
Definition at line 499 of file TrigNavStructure.cxx.
|
inlinestatic |
helper for the STL
Definition at line 257 of file TrigNavStructure.h.
|
static |
queries if node is an RoI type one
| te | node to be queried |
Definition at line 505 of file TrigNavStructure.cxx.
|
static |
queries if node is terminal (no more TriggerElement are seeded by it)
| te | node to be queried |
Definition at line 515 of file TrigNavStructure.cxx.
|
inlinestatic |
Definition at line 259 of file TrigNavStructure.h.
| std::string TrigNavStructure::label | ( | class_id_type | clid, |
| const index_or_label_type & | sti_or_label ) const |
Definition at line 773 of file TrigNavStructure.cxx.
|
protected |
Definition at line 896 of file TrigNavStructure.cxx.
| bool TrigNavStructure::overlaps | ( | const TriggerElement * | t1, |
| const std::vector< TriggerElement * > & | teVec ) const |
Check overlap between a TE and a vector of TEs, using the method above.
Definition at line 698 of file TrigNavStructure.cxx.
| bool TrigNavStructure::overlaps | ( | const TriggerElement * | t1, |
| const TriggerElement * | t2 ) const |
Check overlap between trigger elements (pointer equality or RoI overlap)
Definition at line 705 of file TrigNavStructure.cxx.
| void TrigNavStructure::printASCIIArt | ( | std::string & | str, |
| const TriggerElement * | te = 0, | ||
| int | offset = 0 ) const |
pretty printing of the navigational structure (heavy)
Definition at line 152 of file TrigNavStructure.cxx.
| bool TrigNavStructure::propagateDeactivation | ( | const TrigNavStructure * | nav | ) |
propagates deactivation of TE state This finction should be used after Trigger is rerurn on L2 and then the reruning on L2 is required.
The deactivated lines must be propagated ahead.
| nav | is navigation which was reprocessed (additional branches deactivated) |
Definition at line 555 of file TrigNavStructure.cxx.
|
virtual |
resets all the navigation, goes to the factory and asks to withdraw all produced objects
Reimplemented in HLT::NavigationCore.
Definition at line 754 of file TrigNavStructure.cxx.
|
pure virtual |
method serizlizes entire navigation
| output | vector to place the result |
Implemented in HLT::NavigationCore, and HLT::StandaloneNavigation.
| bool TrigNavStructure::serializeTEs | ( | std::vector< uint32_t > & | output | ) | const |
method serizlizes the navigation structure
| output | vector to place the result |
Definition at line 217 of file TrigNavStructure.cxx.
| sub_index_type TrigNavStructure::subType | ( | class_id_type | clid, |
| const index_or_label_type & | sti_or_label ) const |
Definition at line 766 of file TrigNavStructure.cxx.
|
staticprotected |
Definition at line 377 of file TrigNavStructure.h.
|
staticprotected |
Definition at line 378 of file TrigNavStructure.h.
|
private |
factory of trigger elements (one per processing slot)
Definition at line 382 of file TrigNavStructure.h.
|
private |
structure for feature holders (one per processing slot)
Definition at line 383 of file TrigNavStructure.h.
|
staticprivate |
Definition at line 385 of file TrigNavStructure.h.