ATLAS Offline Software
Classes | Functions
HLT::TrigNavTools Namespace Reference

Classes

struct  SlimmingHelper
 

Functions

std::map< std::string, int > getFeatureOccurrences (const HLT::NavigationCore *navigation)
 Return number of occurrences of each feature. More...
 

Function Documentation

◆ getFeatureOccurrences()

std::map< std::string, int > HLT::TrigNavTools::getFeatureOccurrences ( const HLT::NavigationCore navigation)

Return number of occurrences of each feature.

Definition at line 22 of file getFeatureOccurrences.cxx.

23 {
24  std::map<std::string, int> featureOccurrences;
25 
26  if (navigation && navigation->getInitialNode()) {
27 
28  for ( auto te : navigation->getAllTEs() ) {
29  for ( const auto& fea: te->getFeatureAccessHelpers() ) {
30  featureOccurrences[SlimmingHelper::getLabel(*navigation, fea)] += 1;
31  }
32  }
33  }
34 
35  return featureOccurrences;
36 }
HLT::TrigNavStructure::getInitialNode
TriggerElement * getInitialNode()
gets initial node, if node is not there then it is created on fly
Definition: TrigNavStructure.cxx:39
ConfigUtils.getLabel
def getLabel(flags, key)
Definition: ConfigUtils.py:243
HLT::TrigNavStructure::getAllTEs
std::vector< TriggerElement * > & getAllTEs()
access needed by slimming tools.
Definition: TrigNavStructure.cxx:376