38 << numberExpected <<
" for sub-detector " 51 <<
"transformation matrices " 62 unsigned int kount(0);
64 <<
":" << layer <<
" z " << mytr.
h3v.z();
73 if (type != 1) type = 0;
76 double xx = (zside > 0) ?
w.first : -
w.first;
77 CLHEP::Hep3Vector h3v(xx,
w.second,mytr.
h3v.z());
78 const HepGeom::Transform3D ht3d (mytr.
hr, h3v);
81 << wafer <<
":" << type <<
" DetId " 84 <<
" transf " << ht3d.getTranslation()
85 <<
" and " << ht3d.getRotation();
106 for (
int iphi=1; iphi<=nphi; ++iphi) {
109 double xx = (zside > 0) ?
w.first : -
w.first;
110 CLHEP::Hep3Vector h3v(xx,
w.second,mytr.
h3v.z());
111 const HepGeom::Transform3D ht3d (mytr.
hr, h3v);
114 << ieta*zside <<
":" << iphi <<
":" 117 << std::hex << detId.
rawId()
119 << ht3d.getTranslation() <<
" and " 120 << ht3d.getRotation();
124 params[1] = params[2] = 0;
125 params[3] = params[7] = vol.
h;
126 params[4] = params[8] = vol.
bl;
127 params[5] = params[9] = vol.
tl;
128 params[6] = params[10]= 0;
149 double xx = (zside > 0) ?
w.first : -
w.first;
150 CLHEP::Hep3Vector h3v(xx,
w.second,mytr.
h3v.z());
151 const HepGeom::Transform3D ht3d (mytr.
hr, h3v);
154 << wafer <<
":" << type <<
" DetId " 157 <<
" transf " << ht3d.getTranslation()
158 <<
" and " << ht3d.getRotation();
175 << layer <<
" Z " <<
zside;
181 if (counter != numberExpected) {
182 edm::LogError(
"HGCalGeom") <<
"Inconsistent # of cells: expected " 183 << numberExpected <<
":" << numberOfCells
185 assert( counter == numberExpected ) ;
192 const HepGeom::Transform3D& ht3d,
213 0.25 * ( corners[0].
y() +
217 0.25 * ( corners[0].
z() +
226 0.25 * ( corners[4].
y() +
230 0.25 * ( corners[4].
z() +
240 geom->
newCell(front, back, corners[0], parmPtr, detId) ;
286 corners[11].
z() ) ) ;
293 geom->
newCell(front, back, corners[0], parmPtr, detId) ;
static void createCorners(const std::vector< CCGFloat > &pv, const Tr3D &tr, std::vector< GlobalPoint > &co)
HGCalGeometryMode::GeometryMode geomMode() const
Geometry mode.
std::vector< int > iEtaMinBH_
int getTypeTrap(int layer) const
static constexpr unsigned int ncornerBy2_
unsigned int allGeomModules() const
CaloTopology const * topology(0)
double cellSizeHex(int type) const
HGCalParameters::hgtrform getTrForm(unsigned int k) const
static int32_t waferV(const int32_t index)
const HGCalParameters * getParameter() const
HGCalGeometry * build(const HGCalTopology &)
constexpr uint32_t rawId() const
get the raw id
int getTypeHex(int layer, int waferU, int waferV) const
void newCell(const GlobalPoint &f1, const GlobalPoint &f2, const GlobalPoint &f3, const CCGFloat *parm, const DetId &detId) override
void allocatePar(ParVec::size_type n, unsigned int m)
CaloCellGeometry::CCGFloat CCGFloat
int layerIndex(int lay, bool reco) const
std::vector< int > nPhiBinBH_
static constexpr unsigned int ncorner_
unsigned int totalGeomModules() const
static constexpr unsigned int ncorner_
std::vector< int > firstModule_
static unsigned int k_NumberOfShapes
unsigned int getTrFormN() const
static unsigned int k_NumberOfParametersPerHex
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
std::pair< float, float > locateCellTrap(int lay, int ieta, int iphi, bool reco) const
static unsigned int k_NumberOfShapesTrd
static int32_t waferU(const int32_t index)
static const CCGFloat * getParmPtr(const std::vector< CCGFloat > &vd, ParMgr *mgr, ParVecVec &pvv)
static unsigned int k_NumberOfParametersPerTrd
static constexpr unsigned int ncornerBy2_
std::vector< int > lastModule_
const HGCalDDDConstants & dddConstants() const
ForwardSubdetector subDetector() const
static void createCorners(const std::vector< CCGFloat > &pv, const Tr3D &tr, std::vector< GlobalPoint > &co)
static std::atomic< unsigned int > counter
std::vector< int > waferCopy_
std::pair< double, double > waferPosition(int wafer, bool reco) const
void allocateCorners(CaloCellGeometry::CornersVec::size_type n)
std::vector< float > ParmVec
std::vector< float > ParmVec
CaloCellGeometry::CCGFloat CCGFloat
DetId::Detector detector() const
HGCalParameters::hgtrap getModule(unsigned int k, bool hexType, bool reco) const
void buildGeom(const ParmVec &, const HepGeom::Transform3D &, const DetId &, HGCalGeometry *, int mode)
int waferTypeT(int wafer) const
static constexpr double oneBySix_
bool waferInLayer(int wafer, int lay, bool reco) const
unsigned int volumes() const