12 extTopology ( theTopology )
55 std::vector<HcalZDCDetId> zdcIds;
59 for(
int ichannel = firstCell; ichannel <= lastCell; ++ichannel) {
70 edm::LogInfo(
"ZdcHardcodeGeometry") <<
"Number of ZDC DetIds made: " << section <<
" " << zdcIds.size();
74 for(std::vector<HcalZDCDetId>::const_iterator zdcIdItr = zdcIds.begin();
75 zdcIdItr != zdcIds.end(); ++zdcIdItr)
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)
void allocatePar(ParVec::size_type n, unsigned int m)
void makeCell(const HcalZDCDetId &detId, CaloSubdetectorGeometry *geom) const
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)
CaloCellGeometry::CCGFloat CCGFloat
static const CCGFloat * getParmPtr(const std::vector< CCGFloat > &vd, ParMgr *mgr, ParVecVec &pvv)
Section section() const
get the section
static const int SubdetectorId
CaloCellGeometry::CornersMgr * cornersMgr()
int channel() const
get the channel
int firstCell(HcalZDCDetId::Section section) const
void allocateCorners(CaloCellGeometry::CornersVec::size_type n)
ZdcHardcodeGeometryLoader()
const ZdcTopology * extTopology