20 unsigned int numberOfCells =
topology.totalGeomModules();
21 unsigned int numberExpected =
topology.allGeomModules();
25 edm::LogVerbatim(
"HGCalGeom") <<
"Number of Cells " << numberOfCells <<
":" << numberExpected <<
" for sub-detector " 28 geom->allocateCorners(numberOfCells);
36 <<
"transformation matrices " <<
topology.dddConstants().getTrFormN() <<
" and " 37 <<
topology.dddConstants().volumes() <<
":" <<
topology.dddConstants().sectors()
40 for (
unsigned itr = 0; itr <
topology.dddConstants().getTrFormN(); ++itr) {
45 unsigned int kount(0);
50 for (
int wafer = 0; wafer <
topology.dddConstants().sectors(); ++wafer) {
52 if (
topology.dddConstants().waferInLayer(wafer,
layer,
true)) {
57 const auto&
w =
topology.dddConstants().waferPosition(wafer,
true);
58 double xx = (
zside > 0) ?
w.first : -
w.first;
59 CLHEP::Hep3Vector h3v(
xx,
w.second, mytr.
h3v.z());
60 const HepGeom::Transform3D ht3d(mytr.
hr, h3v);
62 edm::LogVerbatim(
"HGCalGeom") <<
"HGCalTBGeometryLoader:: Wafer:Type " << wafer <<
":" <<
type <<
" DetId " 64 << ht3d.getTranslation() <<
" and " << ht3d.getRotation();
85 if (
counter != numberExpected) {
86 edm::LogError(
"HGCalGeom") <<
"Inconsistent # of cells: expected " << numberExpected <<
":" << numberOfCells
Log< level::Info, true > LogVerbatim
static constexpr unsigned int k_NumberOfParametersPerHex
Log< level::Error, false > LogError
void buildGeom(const ParmVec &, const HepGeom::Transform3D &, const DetId &, HGCalTBGeometry *)
static constexpr uint32_t k_R
static constexpr uint32_t k_r
std::vector< float > ParmVec
static constexpr uint32_t k_dZ
static std::atomic< unsigned int > counter
static constexpr unsigned int k_NumberOfShapes