CMS 3D CMS Logo

TotemT2Segmentation.h
Go to the documentation of this file.
1 /****************************************************************************
2  *
3  * This is a part of TOTEM offline software.
4  * Author:
5  * Laurent Forthomme
6  *
7  ****************************************************************************/
8 
9 #ifndef DQM_CTPPS_TotemT2Segmentation_h
10 #define DQM_CTPPS_TotemT2Segmentation_h
11 
13 
14 #include <unordered_map>
15 #include <vector>
16 
17 class TH2D;
18 
20 public:
21  explicit TotemT2Segmentation(size_t, size_t);
22 
23  void fill(TH2D*, const TotemT2DetId&, double value = 1.);
24 
25 private:
26  std::vector<std::pair<short, short> > computeBins(const TotemT2DetId& detid) const;
27 
28  const size_t nbinsx_;
29  const size_t nbinsy_;
30 
31  std::unordered_map<TotemT2DetId, std::vector<std::pair<short, short> > > bins_map_;
32 };
33 
34 #endif
TotemT2Segmentation(size_t, size_t)
Detector ID class for Totem T2 detectors. Bits [19:31] : Base CTPPSDetId class attributes Bits [16:18...
Definition: TotemT2DetId.h:25
void fill(TH2D *, const TotemT2DetId &, double value=1.)
Definition: value.py:1
std::unordered_map< TotemT2DetId, std::vector< std::pair< short, short > > > bins_map_
std::vector< std::pair< short, short > > computeBins(const TotemT2DetId &detid) const