CMS 3D CMS Logo

TotemGeometry.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 Geometry_ForwardGeometry_TotemGeometry_h
10 #define Geometry_ForwardGeometry_TotemGeometry_h
11 
14 
16 
18 public:
19  TotemGeometry(const DetGeomDesc*);
20 
21  bool addT2Plane(const TotemT2DetId&, const DetGeomDesc*&);
22  bool addT2Tile(const TotemT2DetId&, const DetGeomDesc*&);
23 
24  const DetGeomDesc* plane(const TotemT2DetId&) const;
25  const TotemT2Tile& tile(const TotemT2DetId&) const;
26 
27 private:
28  void browse(const DetGeomDesc*, bool in_t2);
29  void browseT2(const DetGeomDesc*&);
30 
31  std::map<TotemT2DetId, const DetGeomDesc*> nt2_planes_;
32  std::map<TotemT2DetId, TotemT2Tile> nt2_tiles_;
33 };
34 
35 #endif
Detector ID class for Totem T2 detectors. Bits [19:31] : Base CTPPSDetId class attributes Bits [16:18...
Definition: TotemT2DetId.h:25
std::map< TotemT2DetId, const DetGeomDesc * > nt2_planes_
Definition: TotemGeometry.h:31
bool addT2Plane(const TotemT2DetId &, const DetGeomDesc *&)
void browseT2(const DetGeomDesc *&)
const DetGeomDesc * plane(const TotemT2DetId &) const
std::map< TotemT2DetId, TotemT2Tile > nt2_tiles_
Definition: TotemGeometry.h:32
const TotemT2Tile & tile(const TotemT2DetId &) const
TotemGeometry(const DetGeomDesc *)
void browse(const DetGeomDesc *, bool in_t2)
bool addT2Tile(const TotemT2DetId &, const DetGeomDesc *&)