Definition at line 84 of file ZdcHardcodeGeometryLoader.cc.
References HcalZDCDetId::channel(), funct::cos(), cuy::dh, PVValHelper::dx, PVValHelper::dy, PVValHelper::dz, HcalZDCDetId::EM, benchmark_cfg::fc, CaloCellGeometry::getParmPtr(), HcalZDCDetId::HAD, ZdcGeometry::k_NumberOfParametersPerShape, HcalZDCDetId::LUM, CaloSubdetectorGeometry::newCell(), CaloSubdetectorGeometry::parMgr(), CaloSubdetectorGeometry::parVecVec(), HcalZDCDetId::RPD, HcalZDCDetId::section(), trackingPlots::section, x, y, z, HcalZDCDetId::zside(), ecaldqm::zside(), and geometryCSVtoXML::zz.
Referenced by fill(), and ~ZdcHardcodeGeometryLoader().
91 const int channel ( detId.
channel() ) ;
96 static const double x0 ( 0 ) ;
97 static const double y0 ( 0 ) ;
98 static const double z0 ( 14000 ) ;
100 static const double angEM ( 0 ) ;
101 static const double angLUM ( 0 ) ;
102 static const double angRPD ( 0 ) ;
103 static const double angHAD ( atan( 1. ) ) ;
107 static const double dxHAD ( 4.8 ) ;
108 static const double dxEM ( dxHAD/5. ) ;
109 static const double dxLUM ( 4.8 ) ;
110 static const double dxRPD ( 4.8 ) ;
112 static const double dhEM ( 6.25 ) ;
113 static const double dhLUM ( 6.25 ) ;
114 static const double dhHAD ( 6.25 ) ;
115 static const double dhRPD ( 6.25 ) ;
117 static const double dzEM ( 33.*0.15 ) ;
118 static const double dzLUM ( 23.5 ) ;
119 static const double dzHAD ( 0.82*6./
cos(angHAD) ) ;
120 static const double dzRPD ( 23.5 ) ;
125 static const double xOffEM ( -4.*dxEM ) ;
126 static const double xOffLUM ( 0 ) ;
127 static const double xOffHAD ( 0 ) ;
128 static const double xOffRPD ( 0 ) ;
130 static const double yOffEM ( 0 ) ;
131 static const double yOffLUM ( 0 ) ;
132 static const double yOffHAD ( 0 ) ;
133 static const double yOffRPD ( 0 ) ;
135 static const double zOffEM ( -49.85 - 0.15 ) ;
136 static const double zOffLUM ( -39.555 ) ;
137 static const double zOffHAD ( -29.00 ) ;
138 static const double zOffRPD ( -39.555 ) ;
149 x =
zside*( x0 + xOffEM + ( channel - 1.0 )*dxEM*2. ) ;
151 z =
zside*( z0 + zOffEM ) ;
157 x =
zside*( x0 + xOffLUM ) ;
159 z =
zside*( z0 + zOffLUM + ( channel - 1.0 )*dzLUM*2. ) ;
165 x =
zside*( x0 + xOffRPD ) ;
167 z =
zside*( z0 + zOffRPD + ( channel - 1.0 )*dzRPD*2. ) ;
174 x =
zside*( x0 + xOffHAD ) ;
176 z =
zside*( z0 + zOffHAD + ( channel - 1.0 )*dzHAD*2. ) ;
181 const double dy (
dh*
cos( an ) ) ;
183 std::vector<CCGFloat>
zz ;
185 zz.emplace_back( an ) ;
186 zz.emplace_back(
dx ) ;
187 zz.emplace_back(
dy ) ;
188 zz.emplace_back(
dz ) ;
virtual void newCell(const GlobalPoint &f1, const GlobalPoint &f2, const GlobalPoint &f3, const CCGFloat *parm, const DetId &detId)=0
int zside() const
get the z-side of the cell (1/-1)
Cos< T >::type cos(const T &t)
static const CCGFloat * getParmPtr(const std::vector< CCGFloat > &vd, ParMgr *mgr, ParVecVec &pvv)
int channel() const
get the channel
Section section() const
get the section