24 if (ieta==0)
continue;
25 for (
int iphi=1; iphi<=72; iphi++) {
37 if (ieta==0)
continue;
38 for (
int iphi=1; iphi<=72; iphi++) {
45 edm::LogInfo(
"Geometry") <<
"CaloTowersHardcodeGeometry made " << n <<
" towers.";
46 return std::auto_ptr<CaloSubdetectorGeometry>(
geom);
53 const double EBradius = 143.0;
54 const double HOradius = 406.0+1.0;
55 const double EEz = 320.0;
56 const double HEz = 568.0;
57 const double HFz = 1100.0;
58 const double HFthick = 165;
61 int etaRing=
abs(ieta);
62 int sign=(ieta>0)?(1):(-1);
71 double eta = 0.5*(eta1+eta2);
72 double deta = (eta2-eta1);
78 double phi_low = dphi_nominal*(iphi-1);
79 double phi = phi_low+dphi_half;
81 double x,
y,
z,thickness;
88 thickness=HFthick/tanh(eta);
89 }
else if (etaRing>17) {
94 thickness=(HEz-EEz)/tanh(eta);
96 x=EBradius *
cos(phi);
97 y=EBradius *
sin(phi);
99 z=EBradius * sinh(eta);
100 thickness=(HOradius-EBradius) * cosh(eta);
106 const double mysign ( !alongZ ? 1 : -1 ) ;
107 std::vector<CCGFloat> hh ;
109 hh.push_back( deta/2 ) ;
110 hh.push_back( dphi_half ) ;
111 hh.push_back( mysign*thickness/2. ) ;
113 hh.push_back( fabs( eta ) ) ;
114 hh.push_back( fabs( z ) ) ;
116 geom->
newCell( point, point, point,
void makeCell(int ieta, int iphi, CaloSubdetectorGeometry *geom) const
const HcalTopology * m_limits
virtual void newCell(const GlobalPoint &f1, const GlobalPoint &f2, const GlobalPoint &f3, const CCGFloat *parm, const DetId &detId)=0
Sin< T >::type sin(const T &t)
int nPhiBins(int etaRing) const
how many phi segments in this ring
void allocatePar(ParVec::size_type n, unsigned int m)
std::auto_ptr< CaloSubdetectorGeometry > load(const HcalTopology *limits)
Cos< T >::type cos(const T &t)
Abs< T >::type abs(const T &t)
CaloCellGeometry::CCGFloat CCGFloat
static const CCGFloat * getParmPtr(const std::vector< CCGFloat > &vd, ParMgr *mgr, ParVecVec &pvv)
int firstHEDoublePhiRing() const
static const double theHFEtaBounds[]
CaloCellGeometry::CornersMgr * cornersMgr()
int firstHFQuadPhiRing() const
void allocateCorners(CaloCellGeometry::CornersVec::size_type n)
static const double theHBHEEtaBounds[]
*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