Definition at line 144 of file HcalDDDGeometryLoader.cc.
References funct::abs(), funct::cos(), HcalCellType::depthMax(), HcalCellType::depthMin(), HcalCellType::depthType(), eta, HcalCellType::etaMax(), HcalCellType::etaMin(), create_public_lumi_plots::exp, CaloCellGeometry::getParmPtr(), HcalCellType::halfSize(), HcalBarrel, HcalForward, HcalOuter, AnalysisDataFormats_SUSYBSMObjects::hp, GeomDetEnumerators::isBarrel(), LogDebug, CaloSubdetectorGeometry::newCell(), CaloSubdetectorGeometry::parMgr(), CaloSubdetectorGeometry::parVecVec(), point, alignCSCRings::r, diffTwoXMLs::r1, diffTwoXMLs::r2, jetcorrextractor::sign(), funct::sin(), HcalDetId::subdet(), funct::tan(), theta(), x, y, z, and HcalDetId::zside().
Referenced by fill().
151 double eta1 = hcalCell.
etaMin();
152 double eta2 = hcalCell.
etaMax();
154 double eta = 0.5*(eta1+eta2) * detId.
zside();
155 double deta = (eta2-eta1);
162 double z,
r, thickness;
170 thickness = (hcalCell.
depthMax() -
r) * cosh(eta);
178 thickness = 2. * hcalCell.
halfSize();
182 r1 = z/sinh(
std::abs(eta)+0.5*deta);
183 r2 = z/sinh(
std::abs(eta)-0.5*deta);
187 LogDebug(
"HCalGeom") <<
"HcalDDDGeometryLoader::makeCell SubDet " << subdet
188 <<
" eta = " << eta <<
" theta = " << theta
189 <<
" r = " << r <<
" thickness = " << thickness
190 <<
" r0-r2 (" << r0 <<
":" << r1 <<
":" << r2 <<
")";
200 r1 = z/sinh(
std::abs(eta)+0.5*deta);
201 r2 = z/sinh(
std::abs(eta)-0.5*deta);
202 LogDebug(
"HCalGeom") <<
"HcalDDDGeometryLoader::makeCell SubDet " << subdet
203 <<
" eta = " << eta <<
" theta = " << theta
204 <<
" z = " << z <<
" r = " << r <<
" thickness = "
205 << thickness <<
" r0-r2 (" << r0 <<
":" << r1 <<
":"
215 LogDebug(
"HCalGeom") <<
"HcalDDDGeometryLoader::makeCell for " << detId
216 <<
" Point " <<
point <<
" deta = " << deta
217 <<
" dphi = " << dphi <<
" thickness = " << thickness
218 <<
" isBarrel = " << isBarrel <<
" " << rzType;
221 std::vector<CCGFloat>
hp ;
225 hp.push_back(deta/2.) ;
226 hp.push_back(dphi/2.) ;
227 hp.push_back(thickness/2.) ;
229 const double sign ( isBarrel ? 1 : -1 ) ;
230 hp.push_back(deta/2.) ;
231 hp.push_back(dphi/2.) ;
232 hp.push_back(
sign*thickness/2.) ;
HcalSubdetector subdet() const
get the subdetector
int zside() const
get the z-side of the cell (1/-1)
virtual void newCell(const GlobalPoint &f1, const GlobalPoint &f2, const GlobalPoint &f3, const CCGFloat *parm, const DetId &detId)=0
bool isBarrel(GeomDetEnumerators::SubDetector m)
Sin< T >::type sin(const T &t)
Geom::Theta< T > theta() const
Cos< T >::type cos(const T &t)
Tan< T >::type tan(const T &t)
Abs< T >::type abs(const T &t)
static const CCGFloat * getParmPtr(const std::vector< CCGFloat > &vd, ParMgr *mgr, ParVecVec &pvv)
double etaMax() const
cell edge, always positive & greater than etaMin
double etaMin() const
lower cell edge. Always positive
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point