16 hgcons_(hgc), mode_(hgc.geomMode()), det_(det), name_(name) {
30 int iz,
const G4ThreeVector &
pos,
37 int cellU(0), cellV(0), waferType(-1), waferU(0), waferV(0);
39 waferType = module/1000000;
41 if ((module/10000)%10 > 0) waferU = -waferU;
42 waferV = (module/100)%100;
43 if ((module/100000)%10 > 0) waferV = -waferV;
45 cellV = (cell/100)%100;
47 double xx = (pos.z() > 0) ? pos.x() : -pos.x();
56 << waferU <<
":" << waferV <<
" Cell " 57 << cellU <<
":" << cellV;
69 <<
" Type " <<
id[2] <<
" Layer|iz " 70 << layer <<
":" << iz <<
" " 74 <<
" Type " <<
id[2] <<
" Layer|iz " << layer
82 << layer <<
":" << module <<
":" << cell <<
":" 83 << iz <<
":" << pos.x() <<
":" << pos.y() <<
":" 84 << pos.z() <<
" ID " << std::hex << index
HGCalNumberingScheme()=delete
void waferFromPosition(const double x, const double y, int &wafer, int &icell, int &celltyp) const
const HGCalGeometryMode::GeometryMode mode_
const HGCalDDDConstants & hgcons_
constexpr uint32_t rawId() const
get the raw id
uint32_t getUnitID(int layer, int module, int cell, int iz, const G4ThreeVector &pos, double &wt)
assigns the det id to a hit
std::array< int, 3 > assignCellTrap(float x, float y, float z, int lay, bool reco) const