24 std::cout <<
"Number of Cells " << numberOfCells <<
":" << numberExpected
38 std::cout <<
"HGCalGeometryLoader with # of transformation matrices " 48 unsigned int kount(0);
49 std::cout <<
"HGCalGeometryLoader:: Z:Layer " << zside <<
":" << layer
57 if (type != 1) type = 0;
60 double xx = (zside > 0) ? w.first : -w.first;
61 CLHEP::Hep3Vector h3v(xx,w.second,mytr.
h3v.z());
62 const HepGeom::Transform3D ht3d (mytr.
hr, h3v);
64 std::cout <<
"HGCalGeometryLoader:: Wafer:Type " << wafer <<
":" 65 << type <<
" DetId " <<
HGCalDetId(detId) << std::hex
67 << ht3d.getTranslation() <<
" and " << ht3d.getRotation();
71 params[1] = params[2] = 0;
72 params[3] = params[7] = vol.
h;
73 params[4] = params[8] = vol.
bl;
74 params[5] = params[9] = vol.
tl;
75 params[6] = params[10]= 0;
87 std::cout << kount <<
" modules found in Layer " << layer <<
" Z " 88 << zside << std::endl;
94 if (counter != numberExpected) {
95 std::cerr <<
"Inconsistent # of cells: expected " << numberExpected <<
":" 96 << numberOfCells <<
" , inited " << counter << std::endl;
97 assert( counter == numberOfCells ) ;
104 const HepGeom::Transform3D& ht3d,
109 for (
unsigned int i=0;
i<12; ++
i)
std::cout <<
" : " << params[
i];
112 std::vector<GlobalPoint> corners (8);
124 0.25*( corners[0].
y() +
128 0.25*( corners[0].
z() +
137 0.25*( corners[4].
y() +
141 0.25*( corners[4].
z() +
148 std::swap_ranges (corners.begin(), corners.begin()+4, corners.begin()+4);
151 geom->
newCell(front, back, corners[0], parmPtr, detId) ;
HGCalGeometryMode::GeometryMode geomMode() const
Geometry mode.
unsigned int allGeomModules() const
CaloTopology const * topology(0)
double cellSizeHex(int type) const
HGCalParameters::hgtrform getTrForm(unsigned int k) const
HGCalGeometry * build(const HGCalTopology &)
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
uint32_t rawId() const
get the raw id
unsigned int totalGeomModules() const
unsigned int getTrFormN() const
std::pair< double, double > waferPosition(int wafer, bool reco=true) const
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
static const CCGFloat * getParmPtr(const std::vector< CCGFloat > &vd, ParMgr *mgr, ParVecVec &pvv)
void buildGeom(const ParmVec &, const HepGeom::Transform3D &, const DetId &, HGCalGeometry *)
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
void allocateCorners(CaloCellGeometry::CornersVec::size_type n)
std::vector< float > ParmVec
std::vector< float > ParmVec
CaloCellGeometry::CCGFloat CCGFloat
HGCalParameters::hgtrap getModule(unsigned int k, bool hexType, bool reco) const
int waferTypeT(int wafer) const
bool waferInLayer(int wafer, int lay, bool reco) const
unsigned int volumes() const