10 extTopology ( theTopology )
53 std::vector<HcalZDCDetId> zdcIds;
57 for(
int ichannel = firstCell; ichannel <= lastCell; ++ichannel) {
68 edm::LogInfo(
"ZdcHardcodeGeometry") <<
"Number of ZDC DetIds made: " << section <<
" " << zdcIds.size();
72 for(std::vector<HcalZDCDetId>::const_iterator zdcIdItr = zdcIds.begin();
73 zdcIdItr != zdcIds.end(); ++zdcIdItr)
83 double zside ( detId.
zside() ) ;
87 const int channel ( detId.
channel() ) ;
92 static const double x0 ( 0 ) ;
93 static const double y0 ( 0 ) ;
94 static const double z0 ( 14000 ) ;
96 static const double angEM ( 0 ) ;
97 static const double angLUM ( 0 ) ;
98 static const double angHAD ( atan( 1. ) ) ;
102 static const double dxHAD ( 4.8 ) ;
103 static const double dxEM ( dxHAD/5. ) ;
104 static const double dxLUM ( 4.8 ) ;
106 static const double dhEM ( 6.25 ) ;
107 static const double dhLUM ( 6.25 ) ;
108 static const double dhHAD ( 6.25 ) ;
110 static const double dzEM ( 33.*0.15 ) ;
111 static const double dzLUM ( 23.5 ) ;
112 static const double dzHAD ( 0.82*6./
cos(angHAD) ) ;
117 static const double xOffEM ( -4.*dxEM ) ;
118 static const double xOffLUM ( 0 ) ;
119 static const double xOffHAD ( 0 ) ;
121 static const double yOffEM ( 0 ) ;
122 static const double yOffLUM ( 0 ) ;
123 static const double yOffHAD ( 0 ) ;
125 static const double zOffEM ( -49.85 - 0.15 ) ;
126 static const double zOffLUM ( -39.555 ) ;
127 static const double zOffHAD ( -29.00 ) ;
131 double dx, dh, dz,
x,
y,
z, an ;
139 x = zside*( x0 + xOffEM + ( channel - 1.0 )*dxEM*2. ) ;
141 z = zside*( z0 + zOffEM ) ;
151 x = zside*( x0 + xOffLUM ) ;
153 z = zside*( z0 + zOffLUM + ( channel - 1.0 )*dzLUM*2. ) ;
162 x = zside*( x0 + xOffHAD ) ;
164 z = zside*( z0 + zOffHAD + ( channel - 1.0 )*dzHAD*2. ) ;
170 const double dy ( dh*
cos( an ) ) ;
172 std::vector<double> zz ;
int zside() const
get the z-side of the cell (1/-1)
void allocatePar(ParVec::size_type n, unsigned int m)
void addCell(const DetId &id, CaloCellGeometry *ccg)
Add a cell to the geometry.
virtual bool valid(const HcalZDCDetId &id) const
int lastCell(HcalZDCDetId::Section section) const
Cos< T >::type cos(const T &t)
void fill(HcalZDCDetId::Section section, CaloSubdetectorGeometry *cg)
Section section() const
get the section
CaloCellGeometry * makeCell(const HcalZDCDetId &detId, CaloSubdetectorGeometry *geom) const
static const int SubdetectorId
CaloCellGeometry::CornersMgr * cornersMgr()
static const double * getParmPtr(const std::vector< double > &vd, ParMgr *mgr, ParVecVec &pvv)
int channel() const
get the channel
int firstCell(HcalZDCDetId::Section section) const
void allocateCorners(CaloCellGeometry::CornersVec::size_type n)
ZdcHardcodeGeometryLoader()
const ZdcTopology * extTopology