ATLAS Offline Software
ThresholdMap.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TRIGT1CTP_THRESHOLDMAP_H
6 #define TRIGT1CTP_THRESHOLDMAP_H
7 
9 
10 #include "TrigConfData/L1Menu.h"
11 
13 #include "TrigConfL1Data/PIT.h"
14 #include "TrigConfL1Data/TIP.h"
15 
16 #include <vector>
17 #include <map>
18 
19 namespace LVL1CTP {
20 
25  class ThresholdMap {
26  public:
27  ThresholdMap() = delete;
28 
29  // construct map from L1Menu (Run 3)
31 
32  // construct map from thresholds using default PIT mapping (Run 1)
33  ThresholdMap( const std::vector< TrigConf::TriggerThreshold* >& threshold_vector);
34 
35  // construct map from thresholds using given PIT mapping (Run 1)
36  ThresholdMap( const std::vector< TrigConf::TriggerThreshold* >& threshold_vector, const std::vector< TrigConf::PIT* >& pit_vector);
37 
38  // construct map from thresholds using default TIP mapping (Run 2)
39  ThresholdMap( const std::vector< TrigConf::TriggerThreshold* >& threshold_vector, const std::vector< TrigConf::TIP* >& pit_vector );
40 
42  ~ThresholdMap();
43 
44  // Function returning the threshold names
45  std::vector<std::string> getThresholdNames() const;
46 
47  // Function returning the CTPTriggerThreshold object belonging to the given TriggerThreshold object
48  const CTPTriggerThreshold & getCTPThreshold( const std::string & thrName ) const;
49 
50  private:
51 
53  std::map< std::string, const CTPTriggerThreshold* > m_mapByName;
54 
55  };
56 
57 }
58 
59 #endif
LVL1CTP::ThresholdMap
Access to TrigConf::CTPTriggerThreshold by name.
Definition: ThresholdMap.h:25
LVL1CTP::ThresholdMap::ThresholdMap
ThresholdMap()=delete
TrigConf::L1Menu
L1 menu configuration.
Definition: L1Menu.h:28
LVL1CTP::ThresholdMap::~ThresholdMap
~ThresholdMap()
default destructor
Definition: ThresholdMap.cxx:83
TriggerThreshold.h
LVL1CTP::ThresholdMap::m_mapByName
std::map< std::string, const CTPTriggerThreshold * > m_mapByName
map storing the accosiation between threshold name and CTPTriggerThreshold
Definition: ThresholdMap.h:53
TIP.h
LVL1CTP::ThresholdMap::getCTPThreshold
const CTPTriggerThreshold & getCTPThreshold(const std::string &thrName) const
Definition: ThresholdMap.cxx:100
LVL1CTP::CTPTriggerThreshold
Helper class holding trigger threshold multiplicity.
Definition: CTPTriggerThreshold.h:17
PIT.h
python.XMLReader.l1menu
l1menu
Definition: XMLReader.py:73
LVL1CTP
Definition: Lvl1ResultAccessTool.h:20
L1Menu.h
LVL1CTP::ThresholdMap::getThresholdNames
std::vector< std::string > getThresholdNames() const
Definition: ThresholdMap.cxx:90
CTPTriggerThreshold.h