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 
63  CaloSubdetectorGeometry::IVec& dins) const override;
64 
65 protected:
66  unsigned int indexFor(const DetId& id) const override { return HcalZDCDetId(id).denseIndex(); }
67 
68  // Modify the RawPtr class
69  const CaloCellGeometry* getGeometryRawPtr(uint32_t index) const override;
70 
71 private:
74  mutable int lastReqSubdet_;
76 
78 };
79 
80 #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:72
static unsigned int alignmentTransformIndexLocal(const DetId &id)
Definition: ZdcGeometry.cc:59
static void localCorners(Pt3DVec &lc, const CCGFloat *pv, unsigned int i, Pt3D &ref)
Definition: ZdcGeometry.cc:68
CaloCellGeometry::CCGFloat CCGFloat
Definition: ZdcGeometry.h:16
CellVec m_cellVec
Definition: ZdcGeometry.h:77
std::vector< CCGFloat > DimVec
const CaloCellGeometry * getGeometryRawPtr(uint32_t index) const override
Definition: ZdcGeometry.cc:90
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:66
constexpr uint32_t denseIndex() const
Definition: HcalZDCDetId.h:134
std::vector< unsigned int > IVec
std::vector< CCGFloat > TrVec
void getSummary(CaloSubdetectorGeometry::TrVec &tVec, CaloSubdetectorGeometry::IVec &iVec, CaloSubdetectorGeometry::DimVec &dVec, CaloSubdetectorGeometry::IVec &dins) const override
Definition: ZdcGeometry.cc:98
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:75
CaloCellGeometry::CCGFloat CCGFloat
DetId::Detector lastReqDet_
Definition: ZdcGeometry.h:73
const ZdcTopology * theTopology
Definition: ZdcGeometry.h:72
~ZdcGeometry() override
Definition: ZdcGeometry.cc:36
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:74
ZDCGeometryRecord AlignedRecord
Definition: ZdcGeometry.h:22
unsigned int indexFor(const DetId &id) const override
Definition: ZdcGeometry.h:66
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