32 return std::auto_ptr<CaloSubdetectorGeometry>(
geom);
38 const double EBradius = 143.0;
39 const double HOradius = 406.0+1.0;
40 const double EEz = 320.0;
41 const double HEz = 568.0;
42 const double HFz = 1100.0;
43 const double HFthick = 165;
53 int sign=(ieta>0)?(1):(-1);
62 double eta = 0.5*(eta1+eta2);
63 double deta = (eta2-eta1);
69 double phi_low = dphi_nominal*(iphi-1);
70 double phi = phi_low+dphi_half;
72 double x,
y,
z,thickness;
79 thickness=HFthick/tanh(eta);
85 thickness=(HEz-EEz)/tanh(eta);
87 x=EBradius *
cos(phi);
88 y=EBradius *
sin(phi);
90 z=EBradius * sinh(eta);
91 thickness=(HOradius-EBradius) * cosh(eta);
97 const double mysign ( !alongZ ? 1 : -1 ) ;
98 std::vector<CCGFloat> hh ;
100 hh.push_back( deta/2 ) ;
101 hh.push_back( dphi_half ) ;
102 hh.push_back( mysign*thickness/2. ) ;
104 hh.push_back( fabs( eta ) ) ;
105 hh.push_back( fabs( z ) ) ;
107 geom->
newCell( point, point, point,
const CaloTowerTopology * m_limits
virtual unsigned int numberOfCellsForCorners() const
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)
const std::vector< double > & getEtaTableHF() const
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 CaloTowerTopology *limits, const HcalTopology *hcaltopo, const HcalDDDRecConstants *hcons)
CaloTowerDetId detIdFromDenseIndex(uint32_t din) const
const HcalTopology * m_hcaltopo
virtual unsigned int numberOfParametersPerShape() const
Cos< T >::type cos(const T &t)
std::vector< double > theHBHEEtaBounds
Abs< T >::type abs(const T &t)
CaloCellGeometry::CCGFloat CCGFloat
static const CCGFloat * getParmPtr(const std::vector< CCGFloat > &vd, ParMgr *mgr, ParVecVec &pvv)
std::vector< double > theHFEtaBounds
CaloCellGeometry::CornersMgr * cornersMgr()
const std::vector< double > & getEtaTable() const
virtual unsigned int numberOfShapes() const
void makeCell(uint32_t din, CaloSubdetectorGeometry *geom) const
int convertCTtoHcal(int ct_ieta) const
void allocateCorners(CaloCellGeometry::CornersVec::size_type n)
int ieta() const
get the tower ieta
const HcalDDDRecConstants * m_hcons
uint32_t sizeForDenseIndexing() const
*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