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 
5 #include <iostream>
6 #include <map>
7 #include <utility>
8 #include <vector>
9 #include <functional>
10 
12 
13 public:
14 
17 
18  int getROCNumber(HGCalTriggerDetId const& id) const {
19  return getROCNumber(id.triggerCellU(),id.triggerCellV(),id.type());
20  }
21  int getROCNumber(int triggerCellU, int triggerCellV, int type) const;
22  std::vector<std::pair<int,int> > getTriggerId(int roc, int type) const;
23  void print() const;
24 
25 private:
26 
27  std::map<std::pair<int,int>,int> triggerIdToROC_;
28  std::map<int,std::vector<std::pair<int,int> > > triggerIdFromROC_;
29 };
30 #endif
type
Definition: HCALResponse.h:21
std::vector< std::pair< int, int > > getTriggerId(int roc, int type) const
std::map< int, std::vector< std::pair< int, int > > > triggerIdFromROC_
std::map< std::pair< int, int >, int > triggerIdToROC_
int getROCNumber(HGCalTriggerDetId const &id) const