CMS 3D CMS Logo

HostLut.h
Go to the documentation of this file.
1 #ifndef L1Trigger_L1TMuonEndCapPhase2_HostLut_h
2 #define L1Trigger_L1TMuonEndCapPhase2_HostLut_h
3 
4 #include <map>
5 #include <tuple>
6 
9 
10 namespace emtf::phase2::data {
11 
12  class HostLut {
13  // Static
14  public:
15  static const int kInvalid;
16 
17  // Member
18  public:
19  HostLut();
20 
21  ~HostLut();
22 
23  void update(const edm::Event&, const edm::EventSetup&);
24 
25  const int& lookup(const std::tuple<int, int, int>&) const;
26 
27  private:
28  // Key: Subsystem, Station, Ring
29  // Value: Host
30  std::map<std::tuple<int, int, int>, int> lut_;
31  };
32 
33 } // namespace emtf::phase2::data
34 
35 #endif // L1Trigger_L1TMuonEndCapPhase2_HostLut_h
std::map< std::tuple< int, int, int >, int > lut_
Definition: HostLut.h:30
static const int kInvalid
Definition: HostLut.h:15
void update(const edm::Event &, const edm::EventSetup &)
Definition: HostLut.cc:41
const int & lookup(const std::tuple< int, int, int > &) const
Definition: HostLut.cc:45