ATLAS Offline Software
Loading...
Searching...
No Matches
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.

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}
std::vector< TriggerElement * > & getAllTEs()
access needed by slimming tools.
TriggerElement * getInitialNode()
gets initial node, if node is not there then it is created on fly
static std::string getLabel(const HLT::NavigationCore &navigation, const HLT::TriggerElement::FeatureAccessHelper &fah)
Definition getLabel.cxx:23