28 uint32_t numberOfShapes =
33 edm::LogVerbatim(
"HGCalGeom") <<
"Number of Cells " << numberOfCells <<
":" << numberExpected <<
" for sub-detector " 37 geom->allocateCorners(numberOfCells);
54 unsigned int kount(0);
67 double xx = (
zside > 0) ?
w.first : -
w.first;
68 CLHEP::Hep3Vector h3v(
xx,
w.second, mytr.
h3v.z());
69 const HepGeom::Transform3D ht3d(mytr.
hr, h3v);
71 edm::LogVerbatim(
"HGCalGeom") <<
"HGCalGeometryLoader:: Wafer:Type " << wafer <<
":" <<
type <<
" DetId " 73 <<
" transf " << ht3d.getTranslation() <<
" and " << ht3d.getRotation();
98 if (typm.first >= 0) {
99 id.setType(typm.first);
100 id.setSiPM(typm.second);
106 << typm.second <<
" Test " <<
test <<
":" <<
ok <<
" ID " <<
id;
111 double xx = (
zside > 0) ?
w.first : -
w.first;
112 CLHEP::Hep3Vector h3v(
xx,
w.second, mytr.
h3v.z());
113 const HepGeom::Transform3D ht3d(mytr.
hr, h3v);
116 <<
"HGCalGeometryLoader::rad:phi:type " <<
ring *
zside <<
":" <<
iphi <<
":" <<
type <<
" DetId " 118 << ht3d.getTranslation() <<
" R " << ht3d.getTranslation().perp() <<
" and " << ht3d.getRotation();
150 double xx = (
zside > 0) ?
w.first : -
w.first;
151 CLHEP::Hep3Vector h3v(
xx,
w.second, mytr.
h3v.z());
152 const HepGeom::Transform3D ht3d(mytr.
hr, h3v);
155 edm::LogVerbatim(
"HGCalGeom") <<
"HGCalGeometryLoader::Wafer:Type " << wafer <<
":" <<
type <<
" DetId " 157 <<
" trans " << ht3d.getTranslation() <<
" and " << ht3d.getRotation();
159 edm::LogVerbatim(
"HGCalGeom") <<
"HGCalGeometryLoader::Wafer:Type " << wafer <<
":" <<
type <<
" DetId " 161 <<
" trans " << ht3d.getTranslation() <<
" and " << ht3d.getRotation();
183 if (
counter != numberExpected) {
185 edm::LogVerbatim(
"HGCalGeom") <<
"Inconsistent # of cells: expected " << numberExpected <<
":" << numberOfCells
188 edm::LogError(
"HGCalGeom") <<
"Inconsistent # of cells: expected " << numberExpected <<
":" << numberOfCells
static constexpr unsigned int k_NumberOfShapes
Log< level::Info, true > LogVerbatim
unsigned int totalGeomModules() const
unsigned int volumes() const
int scintType(const int layer) const
const HGCalParameters * getParameter() const
DetId::Detector detector() const
bool tileTrapezoid() const
HGCalParameters::hgtrap getModule(unsigned int k, bool hexType, bool reco) const
int32_t waferU(const int32_t index)
bool waferHexagon6() const
static constexpr uint32_t k_Theta
int waferTypeT(int wafer) const
HGCalGeometryMode::GeometryMode geomMode() const
Geometry mode.
static constexpr uint32_t k_Cell
static constexpr uint32_t k_dY1
Log< level::Error, false > LogError
bool waferInLayer(int wafer, int lay, bool reco) const
ForwardSubdetector subDetector() const
std::vector< int > firstModule_
int getTypeHex(int layer, int waferU, int waferV) const
static constexpr uint32_t k_R
static constexpr uint32_t k_r
std::vector< float > ParmVec
static constexpr uint32_t k_dX1
int layerIndex(int lay, bool reco) const
static constexpr unsigned int k_NumberOfParametersPerTrd
static constexpr uint32_t k_dY2
std::pair< int, int > tileType(int layer, int ring, int phi) const
static constexpr uint32_t k_dX4
std::pair< float, float > locateCellTrap(int zside, int lay, int ieta, int iphi, bool reco, bool debug) const
double cellSizeHex(int type) const
std::pair< double, double > waferPosition(int wafer, bool reco) const
static constexpr unsigned int k_NumberOfParametersPerHex
std::vector< int > lastModule_
bool tileExist(int zside, int layer, int ring, int phi) const
static constexpr uint32_t k_dZ
static constexpr uint32_t k_Phi
static constexpr unsigned int k_NumberOfShapesTrd
unsigned int getTrFormN() const
HGCalParameters::hgtrform getTrForm(unsigned int k) const
std::vector< int > iradMinBH_
static std::atomic< unsigned int > counter
int32_t waferV(const int32_t index)
std::vector< int > waferCopy_
static constexpr uint32_t k_dZ
static constexpr uint32_t k_Alp1
static constexpr uint32_t k_dX3
unsigned int allGeomModules() const
int scintCells(const int layer) const
void buildGeom(const ParmVec &, const HepGeom::Transform3D &, const DetId &, HGCalGeometry *, int mode)
const HGCalDDDConstants & dddConstants() const
static constexpr uint32_t k_dX2
static constexpr uint32_t k_Alp2