ATLAS Offline Software
TrigCompositeUtils/TrigCompositeUtils/TrigCompositeUtils.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TrigCompositeUtils_TrigCompositeUtils_h
6 #define TrigCompositeUtils_TrigCompositeUtils_h
7 
8 #include <set>
9 #include <memory>
10 #include <functional>
11 #include <iostream>
12 
13 #include "AthLinks/ElementLink.h"
20 #include "AsgMessaging/MsgStream.h"
22 
23 
24 #ifdef XAOD_STANDALONE
25 #include "AsgTools/SgTEvent.h"
26 #endif
27 
31 
33 
34 #include "HLTIdentifier.h"
35 #include "NavGraph.h"
40 #include "CxxUtils/sgkey_t.h"
41 
42 #define TRIGCOMPUTILS_ENABLE_EARLY_EXIT 1
43 
44 namespace TrigCompositeUtils {
46 
47  // cppcheck-suppress unknownMacro
48  ANA_MSG_HEADER (msgRejected)
49 
50 
51  typedef SG::WriteHandle<DecisionContainer> DecisionWriteHandle;
52 
59  template<class CONT>
60  SG::WriteHandle<CONT> createAndStoreNoAux( const SG::WriteHandleKey<CONT>& key, const EventContext& ctx = Gaudi::Hive::currentContext());
61 
68  template<class CONT, class AUX>
69  SG::WriteHandle<CONT> createAndStoreWithAux( const SG::WriteHandleKey<CONT>& key, const EventContext& ctx = Gaudi::Hive::currentContext());
70 
76  SG::WriteHandle<DecisionContainer> createAndStore( const SG::WriteHandleKey<DecisionContainer>& key, const EventContext& ctx = Gaudi::Hive::currentContext() );
77 
81  void createAndStore( SG::WriteHandle<DecisionContainer>& handle );
82 
94  Decision* newDecisionIn ( DecisionContainer* dc, const std::string& name = "" );
95 
103  Decision* newDecisionIn( DecisionContainer* dc, const Decision* dOld, const std::string& name = "", const EventContext& ctx = Gaudi::Hive::currentContext() );
104 
110  void addDecisionID( DecisionID id, Decision* d);
111 
118 
124 
131 
132 
137 
144 
151 
152 
156  bool allFailed( const Decision* d );
157 
162  template<typename T>
164 
169 
174 
178  ElementLink<DecisionContainer> decisionToElementLink(const Decision* d, const EventContext& ctx = Gaudi::Hive::currentContext());
179 
183  void linkToPrevious(Decision* d, const std::string& previousCollectionKey, size_t previousIndex);
184 
188  void linkToPrevious(Decision* d, const Decision* dOld, const EventContext& ctx = Gaudi::Hive::currentContext());
189 
194 
199 
206 
213  HLT::Identifier createLegName(const HLT::Identifier& chainIdentifier, size_t counter);
214 
220  HLT::Identifier getIDFromLeg(const HLT::Identifier& legIdentifier);
221 
227  int32_t getIndexFromLeg(const HLT::Identifier& legIdentifier);
228 
234  int32_t getIndexFromLeg(const std::string& name);
235 
241  bool isLegId(const HLT::Identifier& legIdentifier);
242 
248  bool isLegId(const std::string& name);
249 
255  bool isChainId(const HLT::Identifier& chainIdentifier);
256 
262  bool isChainId(const std::string& name);
263 
268  const Decision* find(const Decision*, const std::function<bool(const Decision*)>& filter);
269 
273  class HasObject {
274  public:
278  HasObject(const std::string& name): m_name(name) {}
283  bool operator()(const Decision* ) const;
284  private:
285  std::string m_name;
286  };
287 
292  public:
296  HasObjectCollection(const std::string& name): m_name(name) {}
301  bool operator()(const Decision* ) const;
302  private:
303  std::string m_name;
304  };
305 
306 
312  const Decision* getTerminusNode(const DecisionContainer& container);
313  const Decision* getTerminusNode(SG::ReadHandle<DecisionContainer>& container); // older signature
314 
315 
321  const Decision* getExpressTerminusNode(const DecisionContainer& container);
322 
323 
330  const Decision* getNodeByName(const DecisionContainer& container, const std::string& nodeName);
331 
332 
341  std::vector<const Decision*> getRejectedDecisionNodes(const asg::EventStoreType* eventStore,
342  const std::string& summaryCollectionKey,
343  const DecisionIDContainer& ids = {},
344  const std::set<std::string>& keysToIgnore = std::set<std::string>());
345 
346 
356  void recursiveGetDecisions(const Decision* node,
357  NavGraph& navGraph,
358  const DecisionIDContainer& ids = {},
359  const bool enforceDecisionOnStartNode = true);
360 
361 
369  const Decision* comingFrom,
370  NavGraph& navGraph,
371  std::set<const Decision*>& fullyExploredFrom,
372  const DecisionIDContainer& ids,
373  const bool enforceDecisionOnNode);
374 
375 
383  void recursiveFlagForThinning(NavGraph& node,
384  const bool keepOnlyFinalFeatures,
385  const bool removeEmptySteps,
386  const std::vector<std::string>& nodesToDrop);
387 
388 
394  void recursiveFlagForThinningInternal(NavGraphNode* node,
395  bool modeKeep,
396  std::set<NavGraphNode*>& fullyExploredFrom,
397  const bool keepOnlyFinalFeatures,
398  const bool removeEmptySteps,
399  const std::vector<std::string>& nodesToDrop);
400 
401 
402 
405  const std::string& initialRoIString();
406  const std::string& initialRecRoIString();
407  const std::string& roiString();
408  const std::string& viewString();
409  const std::string& featureString();
410  const std::string& seedString();
411 
412  const std::string& hltSeedingNodeName();
413  const std::string& filterNodeName();
414  const std::string& inputMakerNodeName();
415  const std::string& hypoAlgNodeName();
416  const std::string& comboHypoAlgNodeName();
417  const std::string& summaryFilterNodeName();
418  const std::string& summaryPassNodeName();
419  const std::string& summaryPassExpressNodeName();
420  const std::string& summaryPrescaledNodeName();
422 
428  template<class CONTAINER>
429  void filterLinkVectorByContainerKey(const std::string& containerSGKey, std::vector<ElementLink<CONTAINER>>& vector);
430 
439  template<class CONTAINER>
440  const std::vector< LinkInfo<CONTAINER> > recursiveGetFeaturesOfType(
441  const NavGraph& navGraph,
442  const std::string& containerSGKey = "",
443  const bool lastFeatureOfType = true,
444  const std::string& navElementLinkKey = featureString(),
445  const DecisionIDContainer& chainIDs = DecisionIDContainer());
446 
454  template<class CONTAINER>
456  std::vector< LinkInfo<CONTAINER> >& features,
457  std::set<const NavGraphNode*>& fullyExploredFrom,
458  const NavGraphNode* navGraphNode,
459  const std::string& containerSGKey,
460  const bool lastFeatureOfType,
461  const std::string& navElementLinkKey,
462  const DecisionIDContainer& chainIDs);
463 
472  template<typename T>
475  const std::string& linkName,
476  const bool suppressMultipleLinksWarning = false);
477 
489  template<typename T>
490  void
492  const std::string& linkName,
493  std::vector<LinkInfo<T>>& links,
494  unsigned int behaviour = TrigDefs::allFeaturesOfType,
495  std::set<const xAOD::TrigComposite*>* fullyExploredFrom = nullptr);
496 
507  template<typename T>
508  std::vector<LinkInfo<T>>
510  const std::string& linkName,
511  unsigned int behaviour = TrigDefs::allFeaturesOfType);
512 
526  bool typelessFindLink(const Decision* start,
527  const std::string& linkName,
528  sgkey_t& key,
529  uint32_t& clid,
531  const Decision*& source,
532  const bool suppressMultipleLinksWarning = false);
533 
538  bool typelessFindLink(const NavGraph& subGraph,
539  const std::string& linkName,
540  sgkey_t& key,
541  uint32_t& clid,
543  const Decision*& source,
544  const bool suppressMultipleLinksWarning = false);
545 
561  bool typelessFindLinks(const Decision* start,
562  const std::string& linkName,
563  std::vector<sgkey_t>& keyVec,
564  std::vector<uint32_t>& clidVec,
565  std::vector<Decision::index_type>& indexVec,
566  std::vector<const Decision*>& sourceVec,
567  const unsigned int behaviour = TrigDefs::allFeaturesOfType,
568  std::set<const Decision*>* fullyExploredFrom = nullptr);
569 
573  bool typelessFindLinks(const NavGraphNode* start,
574  const std::string& linkName,
575  std::vector<sgkey_t>& key,
576  std::vector<uint32_t>& clid,
577  std::vector<Decision::index_type>& index,
578  std::vector<const Decision*>& sourceVec,
579  const unsigned int behaviour = TrigDefs::allFeaturesOfType,
580  std::set<const Decision*>* fullyExploredFrom = nullptr);
581 
587  const std::string& linkName,
588  std::vector<sgkey_t>& keyVec,
589  std::vector<uint32_t>& clidVec,
590  std::vector<Decision::index_type>& indexVec,
591  std::vector<const Decision*>& sourceVec);
592 
607  const std::string& chainName,
608  const std::vector<LinkInfo<xAOD::IParticleContainer>>& features,
609  const std::vector<std::size_t>& legMultiplicities,
610  const std::function<bool(const std::vector<LinkInfo<xAOD::IParticleContainer>>&)>& filter);
611 
626  const std::string& chainName,
627  const std::vector<LinkInfo<xAOD::IParticleContainer>>& features,
628  const std::vector<std::size_t>& legMultiplicities,
630 
647  const std::string& chainName,
648  const std::vector<LinkInfo<xAOD::IParticleContainer>>& features,
649  const TrigConf::HLTChain *chainInfo,
650  const std::function<bool(const std::vector<LinkInfo<xAOD::IParticleContainer>>&)>& filter);
651 
668  const std::string& chainName,
669  const std::vector<LinkInfo<xAOD::IParticleContainer>>& features,
670  const TrigConf::HLTChain *chainInfo,
672 
677  std::string dump( const Decision* tc, const std::function< std::string( const Decision* )>& printerFnc );
678 
679 }
680 
682 
683 #endif // TrigCompositeUtils_TrigCompositeUtils_h
WriteHandle.h
Handle class for recording to StoreGate.
TrigCompositeUtils::summaryPrescaledNodeName
const std::string & summaryPrescaledNodeName()
Definition: TrigCompositeUtilsRoot.cxx:924
TrigCompositeUtils::buildCombinations
Combinations buildCombinations(const std::string &chainName, const std::vector< LinkInfo< xAOD::IParticleContainer >> &features, const std::vector< std::size_t > &legMultiplicities, const std::function< bool(const std::vector< LinkInfo< xAOD::IParticleContainer >> &)> &filter)
Produce the combinations for a set of features.
Definition: TrigCompositeUtilsRoot.cxx:800
TrigCompositeUtils::summaryFilterNodeName
const std::string & summaryFilterNodeName()
Definition: TrigCompositeUtilsRoot.cxx:912
TrigCompositeUtils::find
const Decision * find(const Decision *start, const std::function< bool(const Decision *)> &filter)
traverses Decision object links for another Decision object fulfilling the prerequisite specified by ...
Definition: TrigCompositeUtilsRoot.cxx:221
TrigCompositeUtils::HasObjectCollection
Prerequisite object usable with.
Definition: TrigCompositeUtils/TrigCompositeUtils/TrigCompositeUtils.h:291
TrigCompositeUtils::DecisionID
unsigned int DecisionID
Definition: TrigComposite_v1.h:27
SG
Forward declaration.
Definition: CaloCellPacker_400_500.h:32
TrigCompositeUtils::passed
bool passed(DecisionID id, const DecisionIDContainer &idSet)
checks if required decision ID is in the set of IDs in the container
Definition: TrigCompositeUtilsRoot.cxx:117
TrigCompositeUtils::recursiveGetDecisions
void recursiveGetDecisions(const Decision *start, NavGraph &navGraph, const DecisionIDContainer &ids, const bool enforceDecisionOnStartNode)
Search back in time from "node" and locate all paths back through Decision objects for a given chain.
Definition: TrigCompositeUtilsRoot.cxx:422
TrigCompositeUtils::summaryPassExpressNodeName
const std::string & summaryPassExpressNodeName()
Definition: TrigCompositeUtilsRoot.cxx:920
TrigCompositeUtils::recursiveGetFeaturesOfType
const std::vector< LinkInfo< CONTAINER > > recursiveGetFeaturesOfType(const NavGraph &navGraph, const std::string &containerSGKey="", const bool lastFeatureOfType=true, const std::string &navElementLinkKey=featureString(), const DecisionIDContainer &chainIDs=DecisionIDContainer())
Extract features from the supplied linkVector (obtained through recursiveGetDecisions).
TrigCompositeUtils::hltSeedingNodeName
const std::string & hltSeedingNodeName()
Definition: TrigCompositeUtilsRoot.cxx:892
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
TrigCompositeUtils::HasObjectCollection::operator()
bool operator()(const Decision *) const
checks if the arg Decision object has link collection of name specified at construction
Definition: TrigCompositeUtilsRoot.cxx:239
WriteCellNoiseToCool.src
src
Definition: WriteCellNoiseToCool.py:513
IPartCombItr.h
TrigCompositeUtils::newDecisionIn
Decision * newDecisionIn(DecisionContainer *dc, const std::string &name)
Helper method to create a Decision object, place it in the container and return a pointer to it.
Definition: TrigCompositeUtilsRoot.cxx:46
CurrentContext.h
EventStoreType.h
SG::ReadHandle
Definition: StoreGate/StoreGate/ReadHandle.h:70
index
Definition: index.py:1
hist_file_dump.d
d
Definition: hist_file_dump.py:137
TrigCompositeUtils::FilterType::UniqueObjects
@ UniqueObjects
Do not allow any repeated objects.
TrigCompositeUtils::hypoAlgNodeName
const std::string & hypoAlgNodeName()
Definition: TrigCompositeUtilsRoot.cxx:904
TrigCompositeUtils::addDecisionID
void addDecisionID(DecisionID id, Decision *d)
Appends the decision (given as ID) to the decision object.
Definition: TrigCompositeUtilsRoot.cxx:61
mergePhysValFiles.start
start
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:14
HLTChain.h
TrigCompositeUtils::HasObject::HasObject
HasObject(const std::string &name)
constructor specifying the link name
Definition: TrigCompositeUtils/TrigCompositeUtils/TrigCompositeUtils.h:278
taskman.template
dictionary template
Definition: taskman.py:317
TrigCompositeUtils::typelessFindLinksCommonLinkCollection
bool typelessFindLinksCommonLinkCollection(const Decision *start, const std::string &linkName, std::vector< sgkey_t > &keyVec, std::vector< uint32_t > &clidVec, std::vector< Decision::index_type > &indexVec, std::vector< const Decision * > &sourceVec)
Common functionality shared by both typelessFindLinks interfaces Returns true if at least one link wa...
Definition: TrigCompositeUtilsRoot.cxx:673
TrigCompositeUtils::insertDecisionIDs
void insertDecisionIDs(const Decision *src, Decision *dest)
Appends the decision IDs of src to the dest decision object.
Definition: TrigCompositeUtilsRoot.cxx:80
TrigCompositeUtils::passedDecisionIDs
DecisionIDContainer passedDecisionIDs(const Decision *d, const T &required)
return DecisionIDs in Decision object that match the required ones
TrigCompositeUtils::findLinks
void findLinks(const Decision *start, const std::string &linkName, std::vector< LinkInfo< T >> &links, unsigned int behaviour=TrigDefs::allFeaturesOfType, std::set< const xAOD::TrigComposite * > *fullyExploredFrom=nullptr)
search back the TC links for the object of type T linked to the one of TC (recursively) Populates pro...
TrigCompositeUtils::comboHypoAlgNodeName
const std::string & comboHypoAlgNodeName()
Definition: TrigCompositeUtilsRoot.cxx:908
TrigCompositeUtils::createAndStore
SG::WriteHandle< DecisionContainer > createAndStore(const SG::WriteHandleKey< DecisionContainer > &key, const EventContext &ctx)
Creates and right away records the DecisionContainer with the key.
Definition: TrigCompositeUtilsRoot.cxx:30
TrigCompositeUtils::initialRecRoIString
const std::string & initialRecRoIString()
Definition: TrigCompositeUtilsRoot.cxx:872
perfmonmt-printer.dest
dest
Definition: perfmonmt-printer.py:189
TrigCompositeUtils::recursiveFlagForThinningInternal
void recursiveFlagForThinningInternal(NavGraphNode *node, bool modeKeep, std::set< NavGraphNode * > &fullyExploredFrom, const bool keepOnlyFinalFeatures, const bool removeEmptySteps, const std::vector< std::string > &nodesToDrop)
Used by recursiveFlagForThinning.
Definition: TrigCompositeUtilsRoot.cxx:447
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
TrigConf::HLTChain
HLT chain configuration information.
Definition: TrigConfHLTData/TrigConfHLTData/HLTChain.h:35
Conditions.h
TrigCompositeUtils::HasObject::m_name
std::string m_name
Definition: TrigCompositeUtils/TrigCompositeUtils/TrigCompositeUtils.h:285
TrigCompositeUtils::filterLinkVectorByContainerKey
void filterLinkVectorByContainerKey(const std::string &containerSGKey, std::vector< ElementLink< CONTAINER >> &vector)
Removes ElementLinks from the supplied vector if they do not come from the specified collection (sub-...
TrigCompositeUtils::HasObjectCollection::m_name
std::string m_name
Definition: TrigCompositeUtils/TrigCompositeUtils/TrigCompositeUtils.h:303
covarianceTool.filter
filter
Definition: covarianceTool.py:514
ANA_MSG_HEADER
#define ANA_MSG_HEADER(NAME)
for standalone code this creates a new message category
Definition: Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:113
TrigCompositeUtils::FilterType
FilterType
Definition: IPartCombItr.h:22
TrigCompositeUtils::getTerminusNode
const Decision * getTerminusNode(SG::ReadHandle< DecisionContainer > &container)
Definition: TrigCompositeUtilsRoot.cxx:243
TrigCompositeUtils::HasObject
Prerequisite object usable with.
Definition: TrigCompositeUtils/TrigCompositeUtils/TrigCompositeUtils.h:273
StoreGateSvc
The Athena Transient Store API.
Definition: StoreGateSvc.h:125
HLT
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
Definition: HLTResultReader.h:26
TrigCompositeUtils::getRejectedDecisionNodes
std::vector< const Decision * > getRejectedDecisionNodes(const asg::EventStoreType *eventStore, const std::string &summaryCollectionKey, const DecisionIDContainer &ids, const std::set< std::string > &keysToIgnore)
Query all DecisionCollections in the event store, locate all Decision nodes in the graph where an obj...
Definition: TrigCompositeUtilsRoot.cxx:261
TrigCompositeUtils::initialRoIString
const std::string & initialRoIString()
Definition: TrigCompositeUtilsRoot.cxx:868
TrigCompositeUtils::getLinkToPrevious
const std::vector< ElementLink< DecisionContainer > > getLinkToPrevious(const Decision *d)
returns links to previous decision object 'seed'
Definition: TrigCompositeUtilsRoot.cxx:156
TrigCompositeUtils::typelessFindLinks
bool typelessFindLinks(const Decision *start, const std::string &linkName, std::vector< sgkey_t > &keyVec, std::vector< uint32_t > &clidVec, std::vector< Decision::index_type > &indexVec, std::vector< const Decision * > &sourceVec, const unsigned int behaviour, std::set< const Decision * > *fullyExploredFrom)
search back the TC links for the object of type T linked to the one of TC (recursively) Returns the l...
Definition: TrigCompositeUtilsRoot.cxx:579
TrigCompositeUtils::getExpressTerminusNode
const Decision * getExpressTerminusNode(const DecisionContainer &container)
Returns the express-accept navigation node from a collection or nullptr if missing.
Definition: TrigCompositeUtilsRoot.cxx:251
vector
Definition: MultiHisto.h:13
DMTest::links
links
Definition: CLinks_v1.cxx:22
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
MessageCheck.h
macros for messaging and checking status codes
TrigCompositeUtils::copyLinks
bool copyLinks(const Decision *src, Decision *dest)
copy all links from src to dest TC objects
Definition: TrigCompositeUtilsRoot.cxx:161
TrigCompositeUtils::decisionToElementLink
ElementLink< DecisionContainer > decisionToElementLink(const Decision *d, const EventContext &ctx)
Takes a raw pointer to a Decision and returns an ElementLink to the Decision.
Definition: TrigCompositeUtilsRoot.cxx:122
TrigCompositeUtils::NavGraph
Structure to hold a transient Directed Acyclic Graph (DAG) structure. NavGraph is populated from,...
Definition: NavGraph.h:111
TrigCompositeUtils::Combinations
Definition: Combinations.h:18
WriteHandleKey.h
Property holding a SG store/key/clid from which a WriteHandle is made.
TrigCompositeUtils::createAndStoreNoAux
SG::WriteHandle< CONT > createAndStoreNoAux(const SG::WriteHandleKey< CONT > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
Creates and right away records the Container CONT with the key.
xAOD::TrigComposite_v1
Class used to describe composite objects in the HLT.
Definition: TrigComposite_v1.h:52
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
TrigCompositeAuxContainer.h
TrigCompositeContainer.h
perfmonmt-printer.required
required
Definition: perfmonmt-printer.py:184
TrigCompositeUtils::featureString
const std::string & featureString()
Definition: TrigCompositeUtilsRoot.cxx:884
TrigCompositeUtils::isChainId
bool isChainId(const HLT::Identifier &chainIdentifier)
Recognise whether the HLT identifier corresponds to a whole chain.
Definition: TrigCompositeUtilsRoot.cxx:212
TrigCompositeUtils.icc
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
python.subdetectors.mmg.ids
ids
Definition: mmg.py:8
ReadHandle.h
Handle class for reading from StoreGate.
TrigCompositeUtils::Decision
xAOD::TrigComposite Decision
Definition: Event/xAOD/xAODTrigger/xAODTrigger/TrigComposite.h:20
LinkInfo.h
xAOD::TrigComposite_v1::index_type
uint32_t index_type
Definition: TrigComposite_v1.h:56
TrigCompositeUtils::summaryPassNodeName
const std::string & summaryPassNodeName()
Definition: TrigCompositeUtilsRoot.cxx:916
SG::sgkey_t
uint32_t sgkey_t
Type used for hashed StoreGate key+CLID pairs.
Definition: CxxUtils/CxxUtils/sgkey_t.h:32
python.Dumpers.typename
def typename(t)
Definition: Dumpers.py:194
TrigCompositeUtils::createLegName
HLT::Identifier createLegName(const HLT::Identifier &chainIdentifier, size_t counter)
Generate the HLT::Identifier which corresponds to a specific leg of a given chain.
Definition: TrigCompositeUtilsRoot.cxx:166
TrigCompositeUtils::HasObjectCollection::HasObjectCollection
HasObjectCollection(const std::string &name)
constructor specifying the link name
Definition: TrigCompositeUtils/TrigCompositeUtils/TrigCompositeUtils.h:296
TrigCompositeUtils::hasLinkToPrevious
bool hasLinkToPrevious(const Decision *d)
checks if there is at least one 'seed' link to previous object
Definition: TrigCompositeUtilsRoot.cxx:152
TrigCompositeUtils::filterNodeName
const std::string & filterNodeName()
Definition: TrigCompositeUtilsRoot.cxx:896
SG::WriteHandle
Definition: StoreGate/StoreGate/WriteHandle.h:76
TrigCompositeUtils::linkToPrevious
void linkToPrevious(Decision *d, const std::string &previousCollectionKey, size_t previousIndex)
Links to the previous object, location of previous 'seed' decision supplied by hand.
Definition: TrigCompositeUtilsRoot.cxx:139
TrigCompositeUtils::seedString
const std::string & seedString()
Definition: TrigCompositeUtilsRoot.cxx:888
TrigCompositeUtils::isLegId
bool isLegId(const HLT::Identifier &legIdentifier)
Recognise whether the chain ID is a leg ID.
Definition: TrigCompositeUtilsRoot.cxx:204
TrigCompositeUtils::LinkInfo
Helper to keep a Decision object, ElementLink and ActiveState (with respect to some requested ChainGr...
Definition: LinkInfo.h:28
sgkey_t.h
Define the type used for hashed StoreGate key+CLID pairs.
TrigCompositeUtils::getIndexFromLeg
int32_t getIndexFromLeg(const HLT::Identifier &legIdentifier)
Extract the numeric index of a leg identifier.
Definition: TrigCompositeUtilsRoot.cxx:191
TrigCompositeUtils::DecisionIDContainer
std::set< DecisionID > DecisionIDContainer
Definition: TrigComposite_v1.h:28
TrigCompositeUtils::sgkey_t
SG::sgkey_t sgkey_t
Definition: TrigCompositeUtils/TrigCompositeUtils/TrigCompositeUtils.h:45
TrigCompositeUtils::NavGraphNode
Transient utility class to represent a node in a graph (m_decisionObject), and a vector of edges (m_f...
Definition: NavGraph.h:20
TrigCompositeUtils::findLink
LinkInfo< T > findLink(const Decision *start, const std::string &linkName, const bool suppressMultipleLinksWarning=false)
Perform a recursive search for ElementLinks of type T and name 'linkName', starting from Decision obj...
python.TriggerAPI.TriggerAPISession.chainName
chainName
Definition: TriggerAPISession.py:426
HLTIdentifier.h
TrigCompositeUtils::allFailed
bool allFailed(const Decision *d)
return true if there is no positive decision stored
Definition: TrigCompositeUtilsRoot.cxx:103
TrigCompositeUtils::decisionIDs
void decisionIDs(const Decision *d, DecisionIDContainer &destination)
Extracts DecisionIDs stored in the Decision object.
Definition: TrigCompositeUtilsRoot.cxx:67
TrigCompositeUtils::recursiveGetFeaturesOfTypeInternal
void recursiveGetFeaturesOfTypeInternal(std::vector< LinkInfo< CONTAINER > > &features, std::set< const NavGraphNode * > &fullyExploredFrom, const NavGraphNode *navGraphNode, const std::string &containerSGKey, const bool lastFeatureOfType, const std::string &navElementLinkKey, const DecisionIDContainer &chainIDs)
Internal implimentation called by recursiveGetFeaturesOfType, and by itself.
TrigCompositeUtils::recursiveFlagForThinning
void recursiveFlagForThinning(NavGraph &graph, const bool keepOnlyFinalFeatures, const bool removeEmptySteps, const std::vector< std::string > &nodesToDrop)
Used by trigger navigation thinning.
Definition: TrigCompositeUtilsRoot.cxx:435
Gaudi
=============================================================================
Definition: CaloGPUClusterAndCellDataMonitorOptions.h:273
TrigCompositeUtils::dump
std::string dump(const Decision *tc, const std::function< std::string(const Decision *)> &printerFnc)
Prints the Decision object including the linked seeds @warnign expensive call.
Definition: TrigCompositeUtilsRoot.cxx:855
TrigCompositeUtils
Definition: Event/xAOD/xAODTrigger/xAODTrigger/TrigComposite.h:19
NavGraph.h
TrigCompositeUtils::roiString
const std::string & roiString()
Definition: TrigCompositeUtilsRoot.cxx:876
copySelective.source
string source
Definition: copySelective.py:32
TrigCompositeUtils::getNodeByName
const Decision * getNodeByName(const DecisionContainer &container, const std::string &nodeName)
Returns the navigation node with a given name from a collection or nullptr if missing.
Definition: TrigCompositeUtilsRoot.cxx:255
TrigCompositeUtils::createAndStoreWithAux
SG::WriteHandle< CONT > createAndStoreWithAux(const SG::WriteHandleKey< CONT > &key, const EventContext &ctx=Gaudi::Hive::currentContext())
Creates and right away records the Container CONT with the key.
TrigCompositeUtils::getIDFromLeg
HLT::Identifier getIDFromLeg(const HLT::Identifier &legIdentifier)
Generate the HLT::Identifier which corresponds to the chain name from the leg name.
Definition: TrigCompositeUtilsRoot.cxx:180
TrigCompositeUtils::uniqueDecisionIDs
void uniqueDecisionIDs(Decision *dest)
Make unique list of decision IDs of dest Decision object.
Definition: TrigCompositeUtilsRoot.cxx:97
test_pyathena.counter
counter
Definition: test_pyathena.py:15
TrigCompositeUtils::isAnyIDPassing
bool isAnyIDPassing(const Decision *d, const DecisionIDContainer &required)
Checks if any of the DecisionIDs passed in arg required is availble in Decision object.
Definition: TrigCompositeUtilsRoot.cxx:108
TrigCompositeUtils::viewString
const std::string & viewString()
Definition: TrigCompositeUtilsRoot.cxx:880
Combinations.h
node
Definition: memory_hooks-stdcmalloc.h:74
AuxElement.h
Base class for elements of a container that can have aux data.
TrigCompositeUtils::inputMakerNodeName
const std::string & inputMakerNodeName()
Definition: TrigCompositeUtilsRoot.cxx:900
TrigCompositeUtils::recursiveGetDecisionsInternal
void recursiveGetDecisionsInternal(const Decision *node, const Decision *comingFrom, NavGraph &navGraph, std::set< const Decision * > &fullyExploredFrom, const DecisionIDContainer &ids, const bool enforceDecisionOnNode)
Used by recursiveGetDecisions.
Definition: TrigCompositeUtilsRoot.cxx:383
SgTEvent.h
MsgStream.h
mapkey::key
key
Definition: TElectronEfficiencyCorrectionTool.cxx:37
TrigCompositeUtils::typelessFindLink
bool typelessFindLink(const Decision *start, const std::string &linkName, sgkey_t &key, uint32_t &clid, Decision::index_type &index, const Decision *&source, const bool suppressMultipleLinksWarning)
Perform a recursive search for ElementLinks of any time and name 'linkName', starting from Decision o...
Definition: TrigCompositeUtilsRoot.cxx:723
Identifier
Definition: IdentifierFieldParser.cxx:14