CMS 3D CMS Logo

ZdcGeometry.h
Go to the documentation of this file.
1 #ifndef Geometry_ForwardGeometry_ZdcGeometry_h
2 #define Geometry_ForwardGeometry_ZdcGeometry_h
3 
11 
13 public:
14  typedef std::vector<IdealZDCTrapezoid> CellVec;
15 
20 
25 
27 
28  enum { k_NumberOfShapes = 3 };
29 
31 
32  static std::string dbString() { return "PZdcRcd"; }
33 
34  unsigned int numberOfShapes() const override { return k_NumberOfShapes; }
35  unsigned int numberOfParametersPerShape() const override { return k_NumberOfParametersPerShape; }
36 
37  ZdcGeometry();
38 
39  explicit ZdcGeometry(const ZdcTopology* topology);
40  ~ZdcGeometry() override;
41 
42  // virtual DetId getClosestCell(const GlobalPoint& r) const ;
43 
44  static std::string producerTag() { return "ZDC"; }
45 
46  static unsigned int numberOfAlignments() { return 2; }
47 
48  static unsigned int alignmentTransformIndexLocal(const DetId& id);
49 
50  static unsigned int alignmentTransformIndexGlobal(const DetId& id);
51 
52  static void localCorners(Pt3DVec& lc, const CCGFloat* pv, unsigned int i, Pt3D& ref);
53 
54  void newCell(const GlobalPoint& f1,
55  const GlobalPoint& f2,
56  const GlobalPoint& f3,
57  const CCGFloat* parm,
58  const DetId& detId) override;
59 
60 protected:
61  // Modify the RawPtr class
62  const CaloCellGeometry* getGeometryRawPtr(uint32_t index) const override;
63 
64 private:
67  mutable int lastReqSubdet_;
69 
71 };
72 
73 #endif // Geometry_ForwardGeometry_ZdcGeometry_h
void newCell(const GlobalPoint &f1, const GlobalPoint &f2, const GlobalPoint &f3, const CCGFloat *parm, const DetId &detId) override
Definition: ZdcGeometry.cc:63
static unsigned int alignmentTransformIndexLocal(const DetId &id)
Definition: ZdcGeometry.cc:49
static void localCorners(Pt3DVec &lc, const CCGFloat *pv, unsigned int i, Pt3D &ref)
Definition: ZdcGeometry.cc:59
CaloCellGeometry::CCGFloat CCGFloat
Definition: ZdcGeometry.h:16
CellVec m_cellVec
Definition: ZdcGeometry.h:70
const CaloCellGeometry * getGeometryRawPtr(uint32_t index) const override
Definition: ZdcGeometry.cc:78
std::vector< IdealZDCTrapezoid > CellVec
Definition: ZdcGeometry.h:14
CaloCellGeometry::Pt3D Pt3D
Definition: ZdcGeometry.h:17
static std::string producerTag()
Definition: ZdcGeometry.h:44
static unsigned int alignmentTransformIndexGlobal(const DetId &id)
Definition: ZdcGeometry.cc:57
HepGeom::Transform3D Tr3D
CaloCellGeometry::Pt3DVec Pt3DVec
Definition: ZdcGeometry.h:18
static unsigned int numberOfAlignments()
Definition: ZdcGeometry.h:46
std::vector< Pt3D > Pt3DVec
PZdcRcd PGeometryRecord
Definition: ZdcGeometry.h:23
CaloCellGeometry::Tr3D Tr3D
Definition: ZdcGeometry.h:19
bool m_ownsTopology
Definition: ZdcGeometry.h:68
def pv(vc)
Definition: MetAnalyzer.py:7
CaloCellGeometry::CCGFloat CCGFloat
DetId::Detector lastReqDet_
Definition: ZdcGeometry.h:66
const ZdcTopology * theTopology
Definition: ZdcGeometry.h:65
~ZdcGeometry() override
Definition: ZdcGeometry.cc:26
CaloCellGeometry::Pt3D Pt3D
ZDCAlignmentRcd AlignmentRecord
Definition: ZdcGeometry.h:21
Definition: DetId.h:17
Detector
Definition: DetId.h:24
CaloCellGeometry::Pt3DVec Pt3DVec
HepGeom::Point3D< CCGFloat > Pt3D
int lastReqSubdet_
Definition: ZdcGeometry.h:67
ZDCGeometryRecord AlignedRecord
Definition: ZdcGeometry.h:22
HcalZDCDetId DetIdType
Definition: ZdcGeometry.h:24
Definition: PZdcRcd.h:5
static std::string dbString()
Definition: ZdcGeometry.h:32
unsigned int numberOfParametersPerShape() const override
Definition: ZdcGeometry.h:35
unsigned int numberOfShapes() const override
Definition: ZdcGeometry.h:34