CMS 3D CMS Logo

HGCSiliconDetIdToROC.h
Go to the documentation of this file.
1 #ifndef DataFormats_ForwardDetId_HGCSiliconDetIdToROC_H
2 #define DataFormats_ForwardDetId_HGCSiliconDetIdToROC_H 1
3 
8 #include <iostream>
9 #include <map>
10 #include <utility>
11 #include <vector>
12 #include <functional>
13 
15 public:
18 
19  int getROCNumber(HGCalTriggerDetId const& id) const {
20  return getROCNumber(id.triggerCellU(), id.triggerCellV(), id.type());
21  }
22  int getROCNumber(HGCSiliconDetId const& id) const {
23  return getROCNumber(id.triggerCellU(), id.triggerCellV(), id.type());
24  }
25  int getROCNumber(HFNoseDetId const& id) const {
26  return getROCNumber(id.triggerCellU(), id.triggerCellV(), id.type());
27  }
28  int getROCNumber(HFNoseTriggerDetId const& id) const {
29  return getROCNumber(id.triggerCellU(), id.triggerCellV(), id.type());
30  }
31  int getROCNumber(int triggerCellU, int triggerCellV, int type) const;
32  std::vector<std::pair<int, int> > getTriggerId(int roc, int type) const;
33  void print() const;
34 
35 private:
36  std::map<std::pair<int, int>, int> triggerIdToROC_;
37  std::map<int, std::vector<std::pair<int, int> > > triggerIdFromROC_;
38 };
39 #endif
int getROCNumber(HFNoseTriggerDetId const &id) const
int getROCNumber(HFNoseDetId const &id) const
std::map< std::pair< int, int >, int > triggerIdToROC_
int getROCNumber(HGCalTriggerDetId const &id) const
int getROCNumber(HGCSiliconDetId const &id) const
std::map< int, std::vector< std::pair< int, int > > > triggerIdFromROC_
std::vector< std::pair< int, int > > getTriggerId(int roc, int type) const