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 
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 
41 
42  enum { k_NumberOfShapes = 17 } ;
43 
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 
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 
72 
73  // Get closest cell, etc...
74  virtual DetId getClosestCell( const GlobalPoint& r ) const ;
75 
77  double dR ) const ;
78 
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 unsigned int alignmentTransformIndexGlobal(const DetId &id)
int i
Definition: DBlmapReader.cc:9
const OrderedListOfEEDetId * getClosestEndcapCells(EBDetId id) const
virtual CaloSubdetectorGeometry::DetIdSet getCells(const GlobalPoint &r, double dR) const
Get a list of all cells within a dR of the given cell.
EBAlignmentRcd AlignmentRecord
void setNumXtalsEtaDirection(const int &nnxtalEta)
int getNumXtalsPhiDirection() const
virtual DetId getClosestCell(const GlobalPoint &r) const
CaloCellGeometry::Pt3DVec Pt3DVec
CaloCellGeometry::CCGFloat CCGFloat
EcalBarrelGeometryRecord AlignedRecord
void setBasketSizeInPhi(const int &PhiBaskets)
std::vector< int > _EtaBaskets
std::vector< Pt3D > Pt3DVec
EZArrayFL< EEDetId > OrderedListOfEEDetId
CaloCellGeometry::CCGFloat CCGFloat
void setEtaBaskets(const std::vector< int > &EtaBaskets)
static unsigned int numberOfAlignments()
int getNumXtalsEtaDirection() const
void setNumXtalsPhiDirection(const int &nnxtalPhi)
static DetId detIdFromLocalAlignmentIndex(unsigned int iLoc)
VecOrdListEEDetIdPtr * m_borderPtrVec
EcalBarrelNumberingScheme NumberingScheme
CaloCellGeometry::CCGFloat CCGFloat
virtual unsigned int numberOfParametersPerShape() const
std::vector< TruncatedPyramid > CellVec
CCGFloat avgRadiusXYFrontFaceCenter() const
CaloCellGeometry::Pt3D Pt3D
static std::string producerTag()
virtual unsigned int numberOfShapes() const
Definition: DetId.h:20
virtual const CaloCellGeometry * cellGeomPtr(uint32_t index) const
const std::vector< int > & getEtaBaskets() const
int getBasketSizeInPhi() const
EZMgrFL< EEDetId > * m_borderMgr
CaloCellGeometry::Pt3DVec Pt3DVec
HepGeom::Point3D< CCGFloat > Pt3D
virtual void newCell(const GlobalPoint &f1, const GlobalPoint &f2, const GlobalPoint &f3, const CCGFloat *parm, const DetId &detId)
std::vector< OrderedListOfEEDetId * > VecOrdListEEDetIdPtr
IdealGeometryRecord IdealRecord
static std::string dbString()
static std::string hitString()
static unsigned int alignmentTransformIndexLocal(const DetId &id)
CaloCellGeometry::Pt3D Pt3D
PEcalBarrelRcd PGeometryRecord
static void localCorners(Pt3DVec &lc, const CCGFloat *pv, unsigned int i, Pt3D &ref)