17 : hcalConstants_(hcons)
81 std::cout <<
"HcalDDDGeometryLoader::fill gets " << hcalCells.size()
82 <<
" cells for subdetector " << subdet << std::endl;
86 std::vector<HcalDetId> hcalIds;
87 for (
auto & hcalCell : hcalCells) {
88 int etaRing = hcalCell.etaBin();
89 int iside = hcalCell.zside();
90 int depthBin = hcalCell.depthSegment();
91 double dphi = hcalCell.phiBinWidth();
92 std::vector<std::pair<int,double> > phis = hcalCell.phis();
94 std::cout <<
"HcalDDDGeometryLoader: Subdet " << subdet <<
" side " 95 << iside <<
" eta " << etaRing <<
" depth " << depthBin
96 <<
" with " << phis.size() <<
"modules:" << std::endl;
99 for (
auto &
phi : phis) {
101 std::cout <<
"HcalDDDGeometryLoader::fill Cell " <<
i <<
" eta " 102 << iside*etaRing <<
" phi " << phis[
k].first <<
"(" 103 << phis[
k].second/CLHEP::deg <<
", " << dphi/CLHEP::deg
104 <<
") depth " << depthBin << std::endl;
107 hcalIds.emplace_back(
id);
112 edm::LogInfo(
"HCalGeom") <<
"Number of HCAL DetIds made for " << subdet
113 <<
" is " << hcalIds.size();
118 double phi,
double dphi,
122 double eta1 = hcalCell.
etaMin();
123 double eta2 = hcalCell.
etaMax();
125 double eta = 0.5*(eta1+eta2) * detId.
zside();
126 double deta = (eta2-eta1);
133 double z,
r, thickness;
141 thickness = (hcalCell.
depthMax() -
r) * cosh(eta);
149 thickness = 2. * hcalCell.
halfSize();
153 r1 = z/sinh(
std::abs(eta)+0.5*deta);
154 r2 = z/sinh(
std::abs(eta)-0.5*deta);
158 std::cout <<
"HcalDDDGeometryLoader::makeCell SubDet " << subdet
159 <<
" eta = " << eta <<
" theta = " << theta <<
" r = " << r
160 <<
" thickness = " << thickness <<
" r0-r2 (" << r0 <<
":" 161 << r1 <<
":" << r2 <<
")" << std::endl;
166 if (
isBH_) z += (0.5*thickness);
172 r1 = z/sinh(
std::abs(eta)+0.5*deta);
173 r2 = z/sinh(
std::abs(eta)-0.5*deta);
174 std::cout <<
"HcalDDDGeometryLoader::makeCell SubDet " << subdet
175 <<
" eta = " << eta <<
" theta = " << theta <<
" z = " << z
176 <<
" r = " << r <<
" thickness = " << thickness <<
" r0-r2 (" 177 << r0 <<
":" << r1 <<
":" << r2 <<
")" << std::endl;
181 double x = r *
cos(phi);
182 double y = r *
sin(phi);
186 std::cout <<
"HcalDDDGeometryLoader::makeCell for " << detId <<
" Point " 187 << point <<
" deta = " << deta <<
" dphi = " << dphi
188 <<
" thickness = " << thickness <<
" isBarrel = " << isBarrel
189 <<
" " << rzType << std::endl;
192 std::vector<CCGFloat>
hp ;
196 hp.emplace_back(deta/2.) ;
197 hp.emplace_back(dphi/2.) ;
198 hp.emplace_back(thickness/2.) ;
200 const double sign ( isBarrel ? 1 : -1 ) ;
201 hp.emplace_back(deta/2.) ;
202 hp.emplace_back(dphi/2.) ;
203 hp.emplace_back(sign*thickness/2.) ;
HcalSubdetector subdet() const
get the subdetector
int zside() const
get the z-side of the cell (1/-1)
Sin< T >::type sin(const T &t)
Geom::Theta< T > theta() const
CaloCellGeometry::CCGFloat CCGFloat
void allocatePar(ParVec::size_type n, unsigned int m)
void fill(HcalSubdetector, HcalDDDGeometry *)
HcalDDDGeometryLoader()=delete
void newCellFast(const GlobalPoint &f1, const GlobalPoint &f2, const GlobalPoint &f3, const CCGFloat *parm, const DetId &detId)
unsigned int numberOfCells(HcalSubdetector) const
int insertCell(std::vector< HcalCellType > const &)
void increaseReserve(unsigned int extra)
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)
ReturnType load(const HcalTopology &topo, DetId::Detector, int)
std::vector< HcalCellType > HcalCellTypes(HcalSubdetector) const
const HcalDDDRecConstants * hcalConstants_
void makeCell(const HcalDetId &, const HcalCellType &, double, double, HcalDDDGeometry *geom) const
double etaMax() const
cell edge, always positive & greater than etaMin
CaloCellGeometry::CornersMgr * cornersMgr()
double etaMin() const
lower cell edge. Always positive
virtual ~HcalDDDGeometryLoader()
void allocateCorners(CaloCellGeometry::CornersVec::size_type n)
*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