26 std::cout <<
"CaloTowerHardcodeGeometryLoader: theHBHEEtaBounds = ";
28 std::cout << std::endl;
30 std::cout <<
"CaloTowerHardcodeGeometryLoader: lastHBRing = " <<
m_limits->
lastHBRing()
32 std::cout <<
"CaloTowerHardcodeGeometryLoader: HcalTopology: firstHBRing = " << hcaltopo->
firstHBRing()
35 <<
", lastHFRing = " << hcaltopo->
lastHFRing() << std::endl;
42 if (
nullptr == geom->
parMgr())
50 return std::unique_ptr<CaloSubdetectorGeometry>(
geom);
54 const double EBradius = 143.0;
55 const double HOradius = 406.0 + 1.0;
56 const double EEz = 320.0;
57 const double HEz = 568.0;
58 const double HFz = 1100.0;
59 const double HFthick = 165;
69 int sign = (ieta > 0) ? (1) : (-1);
73 std::cout <<
"CaloTowerHardcodeGeometryLoader: ieta = " << ieta <<
", iphi = " << iphi <<
", etaRing = " << etaRing
84 double eta = 0.5 * (eta1 +
eta2);
85 double deta = (eta2 -
eta1);
91 double phi_low = dphi_nominal * (iphi - 1);
92 double phi = phi_low + dphi_half;
95 std::cout <<
"CaloTowerHardcodeGeometryLoader: eta1 = " << eta1 <<
", eta2 = " << eta2 <<
", eta = " << eta
96 <<
", phi = " << phi << std::endl;
103 double r = z / sinh(eta);
106 thickness = HFthick / tanh(eta);
109 double r = z / sinh(eta);
112 thickness = (HEz - EEz) / tanh(eta);
114 x = EBradius *
cos(phi);
115 y = EBradius *
sin(phi);
117 z = EBradius * sinh(eta);
118 thickness = (HOradius - EBradius) * cosh(eta);
124 const double mysign(!alongZ ? 1 : -1);
125 std::vector<CCGFloat>
hh;
127 hh.emplace_back(deta / 2);
128 hh.emplace_back(dphi_half);
129 hh.emplace_back(mysign * thickness / 2.);
131 hh.emplace_back(fabs(eta));
132 hh.emplace_back(fabs(z));
135 std::cout <<
"CaloTowerHardcodeGeometryLoader: x = " << x <<
", y = " << y <<
", z = " << z
136 <<
", thickness = " << thickness << std::endl;
const CaloTowerTopology * m_limits
unsigned int numberOfShapes() const override
virtual unsigned int numberOfCellsForCorners() const
virtual void newCell(const GlobalPoint &f1, const GlobalPoint &f2, const GlobalPoint &f3, const CCGFloat *parm, const DetId &detId)=0
std::unique_ptr< CaloSubdetectorGeometry > load(const CaloTowerTopology *limits, const HcalTopology *hcaltopo, const HcalDDDRecConstants *hcons)
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
unsigned int numberOfParametersPerShape() const override
void allocatePar(ParVec::size_type n, unsigned int m)
CaloTowerDetId detIdFromDenseIndex(uint32_t din) const
const HcalTopology * m_hcaltopo
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
Log< level::Info, false > LogInfo
CaloCellGeometry::CornersMgr * cornersMgr()
const std::vector< double > & getEtaTable() 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