31 uint32_t numberOfShapes =
34 edm::LogVerbatim(
"HGCalGeom") <<
"Number of Cells " << numberOfCells <<
":" << numberExpected <<
" for sub-detector " 55 unsigned int kount(0);
56 edm::LogVerbatim(
"HGCalGeom") <<
"HGCalGeometryLoader:: Z:Layer " << zside <<
":" << layer <<
" z " << mytr.
h3v.z();
68 double xx = (zside > 0) ?
w.first : -
w.first;
69 CLHEP::Hep3Vector h3v(xx,
w.second, mytr.
h3v.z());
70 const HepGeom::Transform3D ht3d(mytr.
hr, h3v);
72 edm::LogVerbatim(
"HGCalGeom") <<
"HGCalGeometryLoader:: Wafer:Type " << wafer <<
":" << type <<
" DetId " 74 <<
" transf " << ht3d.getTranslation() <<
" and " << ht3d.getRotation();
99 double xx = (zside > 0) ?
w.first : -
w.first;
100 CLHEP::Hep3Vector h3v(xx,
w.second, mytr.
h3v.z());
101 const HepGeom::Transform3D ht3d(mytr.
hr, h3v);
103 edm::LogVerbatim(
"HGCalGeom") <<
"HGCalGeometryLoader::rad:phi:type " << irad * zside <<
":" <<
iphi <<
":" 105 << detId.
rawId() <<
std::dec <<
" transf " << ht3d.getTranslation() <<
" and " 106 << ht3d.getRotation();
136 double xx = (zside > 0) ?
w.first : -
w.first;
137 CLHEP::Hep3Vector h3v(xx,
w.second, mytr.
h3v.z());
138 const HepGeom::Transform3D ht3d(mytr.
hr, h3v);
141 edm::LogVerbatim(
"HGCalGeom") <<
"HGCalGeometryLoader::Wafer:Type " << wafer <<
":" << type <<
" DetId " 143 <<
" trans " << ht3d.getTranslation() <<
" and " << ht3d.getRotation();
145 edm::LogVerbatim(
"HGCalGeom") <<
"HGCalGeometryLoader::Wafer:Type " << wafer <<
":" << type <<
" DetId " 147 <<
" trans " << ht3d.getTranslation() <<
" and " << ht3d.getRotation();
169 if (counter != numberExpected) {
170 edm::LogError(
"HGCalGeom") <<
"Inconsistent # of cells: expected " << numberExpected <<
":" << numberOfCells
172 assert(counter == numberExpected);
191 GlobalPoint front(0.25 * (corners[0].
x() + corners[1].
x() + corners[2].
x() + corners[3].
x()),
192 0.25 * (corners[0].
y() + corners[1].
y() + corners[2].
y() + corners[3].
y()),
193 0.25 * (corners[0].
z() + corners[1].
z() + corners[2].
z() + corners[3].
z()));
195 GlobalPoint back(0.25 * (corners[4].
x() + corners[5].
x() + corners[6].
x() + corners[7].
x()),
196 0.25 * (corners[4].
y() + corners[5].
y() + corners[6].
y() + corners[7].
y()),
197 0.25 * (corners[4].
z() + corners[5].
z() + corners[6].
z() + corners[7].
z()));
203 geom->
newCell(front, back, corners[0], parmPtr, detId);
213 (corners[0].
x() + corners[1].
x() + corners[2].
x() + corners[3].
x() + corners[4].
x() + corners[5].
x()),
215 (corners[0].
y() + corners[1].
y() + corners[2].
y() + corners[3].
y() + corners[4].
y() + corners[5].
y()),
217 (corners[0].
z() + corners[1].
z() + corners[2].
z() + corners[3].
z() + corners[4].
z() + corners[5].
z()));
221 (corners[6].
x() + corners[7].
x() + corners[8].
x() + corners[9].
x() + corners[10].
x() + corners[11].
x()),
223 (corners[6].
y() + corners[7].
y() + corners[8].
y() + corners[9].
y() + corners[10].
y() + corners[11].
y()),
225 (corners[6].
z() + corners[7].
z() + corners[8].
z() + corners[9].
z() + corners[10].
z() + corners[11].
z()));
232 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.
static constexpr unsigned int ncornerBy2_
unsigned int allGeomModules() const
int scintType(const int layer) 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
static constexpr uint32_t k_Theta
void newCell(const GlobalPoint &f1, const GlobalPoint &f2, const GlobalPoint &f3, const CCGFloat *parm, const DetId &detId) override
static constexpr uint32_t k_Cell
static constexpr uint32_t k_dY1
void allocatePar(ParVec::size_type n, unsigned int m)
CaloCellGeometry::CCGFloat CCGFloat
int layerIndex(int lay, bool reco) const
static constexpr unsigned int ncorner_
unsigned int totalGeomModules() const
static constexpr unsigned int ncorner_
std::vector< int > firstModule_
static unsigned int k_NumberOfShapes
static constexpr uint32_t k_R
unsigned int getTrFormN() const
static unsigned int k_NumberOfParametersPerHex
static constexpr uint32_t k_r
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
static constexpr uint32_t k_dX1
std::pair< float, float > locateCellTrap(int lay, int ieta, int iphi, bool reco) const
static unsigned int k_NumberOfShapesTrd
int scintCells(const int layer) const
static constexpr uint32_t k_dY2
static int32_t waferU(const int32_t index)
static const CCGFloat * getParmPtr(const std::vector< CCGFloat > &vd, ParMgr *mgr, ParVecVec &pvv)
static constexpr uint32_t k_dX4
static unsigned int k_NumberOfParametersPerTrd
static constexpr unsigned int ncornerBy2_
std::vector< int > lastModule_
static constexpr uint32_t k_dZ
const HGCalDDDConstants & dddConstants() const
static constexpr uint32_t k_Phi
ForwardSubdetector subDetector() const
std::vector< int > iradMinBH_
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_
static constexpr uint32_t k_dZ
std::pair< double, double > waferPosition(int wafer, bool reco) const
void allocateCorners(CaloCellGeometry::CornersVec::size_type n)
std::vector< float > ParmVec
static constexpr uint32_t k_Alp1
std::vector< float > ParmVec
CaloCellGeometry::CCGFloat CCGFloat
static constexpr uint32_t k_dX3
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 uint32_t k_dX2
static constexpr double oneBySix_
bool waferInLayer(int wafer, int lay, bool reco) const
static constexpr uint32_t k_Alp2
unsigned int volumes() const