CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalBarrelGeometry.h
Go to the documentation of this file.
1 #ifndef EcalBarrelGeometry_h
2 #define EcalBarrelGeometry_h
3 
15 #include <vector>
16 
17 class EcalBarrelGeometry GCC11_FINAL : public CaloSubdetectorGeometry
18 {
19  public:
20 
21  typedef std::vector<TruncatedPyramid> CellVec ;
22 
26 
31 
32  typedef EZArrayFL<EEDetId> OrderedListOfEEDetId ; // like an stl vector: begin(), end(), [i]
33 
34  typedef std::vector<OrderedListOfEEDetId*> VecOrdListEEDetIdPtr ;
35 
37 
38  typedef EBDetId DetIdType ;
39 
40  enum { k_NumberOfCellsForCorners = EBDetId::kSizeForDenseIndexing } ;
41 
42  enum { k_NumberOfShapes = 17 } ;
43 
44  enum { k_NumberOfParametersPerShape = 11 } ;
45 
46  static std::string dbString() { return "PEcalBarrelRcd" ; }
47 
48  virtual unsigned int numberOfShapes() const { return k_NumberOfShapes ; }
49  virtual unsigned int numberOfParametersPerShape() const { return k_NumberOfParametersPerShape ; }
50 
51  EcalBarrelGeometry() ;
52 
53  virtual ~EcalBarrelGeometry();
54 
55  int getNumXtalsPhiDirection() const { return _nnxtalPhi ; }
56 
57  int getNumXtalsEtaDirection() const { return _nnxtalEta ; }
58 
59  const std::vector<int>& getEtaBaskets() const { return _EtaBaskets ; }
60 
61  int getBasketSizeInPhi() const { return _PhiBaskets ; }
62 
63  void setNumXtalsPhiDirection( const int& nnxtalPhi ) { _nnxtalPhi=nnxtalPhi ; }
64 
65  void setNumXtalsEtaDirection( const int& nnxtalEta ) { _nnxtalEta=nnxtalEta ; }
66 
67  void setEtaBaskets( const std::vector<int>& EtaBaskets ) { _EtaBaskets=EtaBaskets ; }
68 
69  void setBasketSizeInPhi( const int& PhiBaskets ) { _PhiBaskets=PhiBaskets ; }
70 
71  const OrderedListOfEEDetId* getClosestEndcapCells( EBDetId id ) const ;
72 
73  // Get closest cell, etc...
74  virtual DetId getClosestCell( const GlobalPoint& r ) const ;
75 
77  double dR ) const ;
78 
79  CCGFloat avgRadiusXYFrontFaceCenter() const ;
80 
81  static std::string hitString() { return "EcalHitsEB" ; }
82 
83  static std::string producerTag() { return "EcalBarrel" ; }
84 
85  static unsigned int numberOfAlignments() { return 36 ; }
86 
87  static unsigned int alignmentTransformIndexLocal( const DetId& id ) ;
88 
89  static unsigned int alignmentTransformIndexGlobal( const DetId& id ) ;
90 
91  static DetId detIdFromLocalAlignmentIndex( unsigned int iLoc ) ;
92 
93  static void localCorners( Pt3DVec& lc ,
94  const CCGFloat* pv ,
95  unsigned int i ,
96  Pt3D& ref ) ;
97 
98  virtual void newCell( const GlobalPoint& f1 ,
99  const GlobalPoint& f2 ,
100  const GlobalPoint& f3 ,
101  const CCGFloat* parm ,
102  const DetId& detId ) ;
103  protected:
104 
105  virtual const CaloCellGeometry* cellGeomPtr( uint32_t index ) const ;
106 
107  private:
108 
111 
114 
119  std::vector<int> _EtaBaskets;
120 
123 
125 
127 
128  mutable CCGFloat m_radius ;
129 
131 };
132 
133 
134 #endif
static std::string producerTag()
std::vector< OrderedListOfEEDetId * > VecOrdListEEDetIdPtr
int i
Definition: DBlmapReader.cc:9
void setEtaBaskets(const std::vector< int > &EtaBaskets)
int getNumXtalsEtaDirection() const
virtual void newCell(const GlobalPoint &f1, const GlobalPoint &f2, const GlobalPoint &f3, const CCGFloat *parm, const DetId &detId)=0
int getNumXtalsPhiDirection() const
static unsigned int numberOfAlignments()
std::vector< Pt3D > Pt3DVec
CaloCellGeometry::CCGFloat CCGFloat
void setBasketSizeInPhi(const int &PhiBaskets)
virtual unsigned int numberOfShapes() const
virtual DetIdSet getCells(const GlobalPoint &r, double dR) const
Get a list of all cells within a dR of the given cell.
EcalBarrelNumberingScheme NumberingScheme
VecOrdListEEDetIdPtr * m_borderPtrVec
EBAlignmentRcd AlignmentRecord
CaloCellGeometry::CCGFloat CCGFloat
std::vector< int > _EtaBaskets
void setNumXtalsEtaDirection(const int &nnxtalEta)
virtual const CaloCellGeometry * cellGeomPtr(uint32_t index) const =0
EZArrayFL< EEDetId > OrderedListOfEEDetId
virtual DetId getClosestCell(const GlobalPoint &r) const
CaloCellGeometry::Pt3D Pt3D
virtual unsigned int numberOfParametersPerShape() const
Definition: DetId.h:20
CaloCellGeometry::Pt3DVec Pt3DVec
PEcalBarrelRcd PGeometryRecord
void setNumXtalsPhiDirection(const int &nnxtalPhi)
std::vector< TruncatedPyramid > CellVec
CaloCellGeometry::Pt3DVec Pt3DVec
EcalBarrelGeometryRecord AlignedRecord
HepGeom::Point3D< CCGFloat > Pt3D
IdealGeometryRecord IdealRecord
static std::string dbString()
EZMgrFL< EEDetId > * m_borderMgr
CaloCellGeometry::Pt3D Pt3D
const std::vector< int > & getEtaBaskets() const
int getBasketSizeInPhi() const
static std::string hitString()
Unlimited (trivial) bounds.