ATLAS Offline Software
Loading...
Searching...
No Matches
getFeatureOccurrences.cxx
Go to the documentation of this file.
1
9
10
13#include "getLabel.h"
14
15
16namespace HLT {
17namespace TrigNavTools {
18
19
21std::map<std::string, int>
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}
37
38
39}} // namespace HLT::TrigNavTools
The NavigationCore class, adds on top of the TrigNavStructure the EDM read-only handling.
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
Return number of occurrences of each feature.
Helper function to get a label for a feature.
std::map< std::string, int > getFeatureOccurrences(const HLT::NavigationCore *navigation)
Return number of occurrences of each feature.
It used to be useful piece of code for replacing actual SG with other store of similar functionality ...
static std::string getLabel(const HLT::NavigationCore &navigation, const HLT::TriggerElement::FeatureAccessHelper &fah)
Definition getLabel.cxx:23