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 
14 
15 #include <unordered_map>
16 #include <vector>
17 
18 class TotemGeometry;
19 class TH2D;
20 
22 public:
23  explicit TotemT2Segmentation(const TotemGeometry&, size_t, size_t);
24 
25  void fill(TH2D*, const TotemT2DetId&, double value = 1.);
26 
27 private:
28  std::vector<std::pair<short, short> > computeBins(const TotemT2DetId& detid) const;
29 
31  const size_t nbinsx_;
32  const size_t nbinsy_;
33 
34  std::unordered_map<TotemT2DetId, std::vector<std::pair<short, short> > > bins_map_;
35 };
36 
37 #endif
Detector ID class for Totem T2 detectors. Bits [19:31] : Base CTPPSDetId class attributes Bits [16:18...
Definition: TotemT2DetId.h:25
const TotemGeometry geom_
void fill(TH2D *, const TotemT2DetId &, double value=1.)
TotemT2Segmentation(const TotemGeometry &, size_t, size_t)
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