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