8 int eta,
int phi,
int lay) {
10 uint32_t idx=(det&15)<<28;
11 idx+=((depth-1)&3)<<26;
12 idx+=((lay-1)&31)<<21;
22 int& depth,
int&
eta,
int&
phi,
25 depth= (idx>>26)&3; depth+=1;
26 lay = (idx>>21)&31; lay+=1;
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)