- Date:
- 2011/06/04 19:04:50
- Revision:
- 1.5
- Author
- E. Garcia - UIC
Definition at line 19 of file ZdcHardcodeGeometryLoader.h.
Definition at line 82 of file ZdcHardcodeGeometryLoader.cc.
References HcalZDCDetId::channel(), funct::cos(), cuy::dh, HcalZDCDetId::EM, benchmark_cfg::fc, CaloCellGeometry::getParmPtr(), HcalZDCDetId::HAD, ZdcGeometry::k_NumberOfParametersPerShape, HcalZDCDetId::LUM, CaloSubdetectorGeometry::newCell(), CaloSubdetectorGeometry::parMgr(), CaloSubdetectorGeometry::parVecVec(), HcalZDCDetId::section(), x, detailsBasic3DVector::y, detailsBasic3DVector::z, and HcalZDCDetId::zside().
Referenced by fill().
85 double zside ( detId.
zside() ) ;
89 const int channel ( detId.
channel() ) ;
94 static const double x0 ( 0 ) ;
95 static const double y0 ( 0 ) ;
96 static const double z0 ( 14000 ) ;
98 static const double angEM ( 0 ) ;
99 static const double angLUM ( 0 ) ;
100 static const double angHAD ( atan( 1. ) ) ;
104 static const double dxHAD ( 4.8 ) ;
105 static const double dxEM ( dxHAD/5. ) ;
106 static const double dxLUM ( 4.8 ) ;
108 static const double dhEM ( 6.25 ) ;
109 static const double dhLUM ( 6.25 ) ;
110 static const double dhHAD ( 6.25 ) ;
112 static const double dzEM ( 33.*0.15 ) ;
113 static const double dzLUM ( 23.5 ) ;
114 static const double dzHAD ( 0.82*6./
cos(angHAD) ) ;
119 static const double xOffEM ( -4.*dxEM ) ;
120 static const double xOffLUM ( 0 ) ;
121 static const double xOffHAD ( 0 ) ;
123 static const double yOffEM ( 0 ) ;
124 static const double yOffLUM ( 0 ) ;
125 static const double yOffHAD ( 0 ) ;
127 static const double zOffEM ( -49.85 - 0.15 ) ;
128 static const double zOffLUM ( -39.555 ) ;
129 static const double zOffHAD ( -29.00 ) ;
133 double dx,
dh, dz,
x,
y,
z, an ;
141 x = zside*( x0 + xOffEM + ( channel - 1.0 )*dxEM*2. ) ;
143 z = zside*( z0 + zOffEM ) ;
153 x = zside*( x0 + xOffLUM ) ;
155 z = zside*( z0 + zOffLUM + ( channel - 1.0 )*dzLUM*2. ) ;
164 x = zside*( x0 + xOffHAD ) ;
166 z = zside*( z0 + zOffHAD + ( channel - 1.0 )*dzHAD*2. ) ;
172 const double dy (
dh*
cos( an ) ) ;
174 std::vector<CCGFloat> zz ;
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)
Section section() const
get the section
int channel() const
get the channel