CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CaloTowerGeometry.h
Go to the documentation of this file.
1 #ifndef GEOMETRY_HCALTOWERALGO_CALOTOWERGEOMETRY_H
2 #define GEOMETRY_HCALTOWERALGO_CALOTOWERGEOMETRY_H 1
3 
9 
17 public:
18  typedef std::vector<IdealObliquePrism> CellVec;
19 
23 
28 
30 
31  static std::string dbString() { return "PCaloTowerRcd"; }
32 
33  unsigned int numberOfShapes() const override { return k_NumberOfShapes; }
34  unsigned int numberOfParametersPerShape() const override { return k_NumberOfParametersPerShape; }
35  virtual unsigned int numberOfCellsForCorners() const { return k_NumberOfCellsForCorners; }
36 
37  CaloTowerGeometry(const CaloTowerTopology* cttopo);
38  ~CaloTowerGeometry() override;
39 
40  static std::string producerTag() { return "TOWER"; }
41 
42  static unsigned int numberOfAlignments() { return 0; }
43  unsigned int alignmentTransformIndexLocal(const DetId& id);
44  unsigned int alignmentTransformIndexGlobal(const DetId& id);
45 
46  static void localCorners(Pt3DVec& lc, const CCGFloat* pv, unsigned int i, Pt3D& ref);
47 
48  void newCell(const GlobalPoint& f1,
49  const GlobalPoint& f2,
50  const GlobalPoint& f3,
51  const CCGFloat* parm,
52  const DetId& detId) override;
53 
54  std::shared_ptr<const CaloCellGeometry> getGeometry(const DetId& id) const override {
55  return cellGeomPtr(m_cttopo->denseIndex(id));
56  }
57 
61  CaloSubdetectorGeometry::IVec& dinsVector) const override;
62 
63 protected:
64  unsigned int indexFor(const DetId& id) const override { return m_cttopo->denseIndex(id); }
65  unsigned int sizeForDenseIndex(const DetId& id) const override { return m_cttopo->sizeForDenseIndexing(); }
66 
67  // Modify the RawPtr class
68  const CaloCellGeometry* getGeometryRawPtr(uint32_t index) const override;
69 
70 private:
76 };
77 
78 #endif
const CaloTowerTopology * m_cttopo
CaloTowerDetId DetIdType
unsigned int sizeForDenseIndex(const DetId &id) const override
std::vector< CCGFloat > DimVec
CaloTowerGeometryRecord AlignedRecord
CaloTowerAlignmentRcd AlignmentRecord
unsigned int numberOfShapes() const override
virtual unsigned int numberOfCellsForCorners() const
std::vector< unsigned int > IVec
unsigned int numberOfParametersPerShape() const override
std::vector< CCGFloat > TrVec
std::vector< Pt3D > Pt3DVec
unsigned int alignmentTransformIndexLocal(const DetId &id)
~CaloTowerGeometry() override
static std::string producerTag()
const CaloCellGeometry * getGeometryRawPtr(uint32_t index) const override
virtual std::shared_ptr< const CaloCellGeometry > cellGeomPtr(uint32_t index) const
void newCell(const GlobalPoint &f1, const GlobalPoint &f2, const GlobalPoint &f3, const CCGFloat *parm, const DetId &detId) override
CaloCellGeometry::CCGFloat CCGFloat
CaloCellGeometry::Pt3D Pt3D
static std::string dbString()
CaloCellGeometry::CCGFloat CCGFloat
unsigned int indexFor(const DetId &id) const override
void getSummary(CaloSubdetectorGeometry::TrVec &trVector, CaloSubdetectorGeometry::IVec &iVector, CaloSubdetectorGeometry::DimVec &dimVector, CaloSubdetectorGeometry::IVec &dinsVector) const override
CaloSubdetectorGeometry::IVec m_dins
unsigned int alignmentTransformIndexGlobal(const DetId &id)
CaloCellGeometry::Pt3D Pt3D
uint32_t denseIndex(const DetId &id) const
static void localCorners(Pt3DVec &lc, const CCGFloat *pv, unsigned int i, Pt3D &ref)
Definition: DetId.h:17
CaloCellGeometry::Pt3DVec Pt3DVec
HepGeom::Point3D< CCGFloat > Pt3D
std::vector< IdealObliquePrism > CellVec
CaloTowerGeometry(const CaloTowerTopology *cttopo)
CaloCellGeometry::Pt3DVec Pt3DVec
std::shared_ptr< const CaloCellGeometry > getGeometry(const DetId &id) const override
Get the cell geometry of a given detector id. Should return false if not found.
PCaloTowerRcd PGeometryRecord
uint32_t sizeForDenseIndexing() const
static unsigned int numberOfAlignments()