26 const int ladder_phi,
const int ladder_z,
27 const int strip_z,
const int strip_phi)
35 const int ladder_phi,
const int ladder_z,
36 const int strip_z,
const int strip_phi)
const
78 os <<
"InttDeadMap base class" << std::endl;
82 int ladder_phi,
int ladder_z,
83 int strip_z,
int strip_phi)
85 static const int layer_bit = 8;
86 static const int ladder_phi_bit = 16;
87 static const int ladder_z_bit = 8;
88 static const int strip_z_bit = 16;
89 static const int strip_phi_bit = 16;
91 bool wildcard =
false;
94 if (wildcard) layer = (1 << layer_bit) - 1;
97 if (wildcard) ladder_phi = (1 << ladder_phi_bit) - 1;
100 if (wildcard) ladder_z = (1 << ladder_z_bit) - 1;
103 if (wildcard) strip_z = (1 << strip_z_bit) - 1;
106 if (wildcard) strip_phi = (1 << strip_phi_bit) - 1;
109 assert(layer_bit + ladder_phi_bit + ladder_z_bit + strip_z_bit + strip_phi_bit == std::numeric_limits<PHG4CellDefs::keytype>::digits);
112 assert(layer < (1 << layer_bit));
113 assert(ladder_phi < (1 << ladder_phi_bit));
114 assert(ladder_z < (1 << ladder_z_bit));
115 assert(strip_z < (1 << strip_z_bit));
116 assert(strip_phi < (1 << strip_phi_bit));
129 key <<= ladder_phi_bit;
132 key <<= ladder_z_bit;
138 key <<= strip_phi_bit;