8 uint32_t idx = (det & 15) << 28;
9 idx += ((depth - 1) & 3) << 26;
10 idx += ((lay - 1) & 31) << 21;
12 idx += (eta & 1023) << 10;
19 const uint32_t& idx,
int& det,
int&
z,
int&
depth,
int&
eta,
int&
phi,
int& lay) {
20 det = (idx >> 28) & 15;
21 depth = (idx >> 26) & 3;
23 lay = (idx >> 21) & 31;
26 eta = (idx >> 10) & 1023;
static uint32_t packHcalIndex(int det, int z, int depth, int eta, int phi, int lay)
static void unpackHcalIndex(const uint32_t &idx, int &det, int &z, int &depth, int &eta, int &phi, int &lay)