73 unsigned long long tmp = key >> 48;
74 unsigned short int etabin = tmp;
151 keytype tmp = (key >> bitshift_binning) & 0xFFFF;
162 keytype tmp = (key >> bitshift_binning) & 0xFFFF;
170 keytype tmp = (key >> bitshift_layer);
179 tmp = (tmp << PHG4CellDefs::bitshift_binning);
180 if ((key & tmp) == tmp)
182 unsigned short int low16bitkey = (key & 0xFFFF);
185 cout <<
PHWHERE <<
" could not decode 0x" << hex << key << dec << endl;
186 cout <<
"key 0x" << hex << key <<
", binning: 0x" << tmp
187 <<
" and: " << (key & tmp) << dec << endl;
196 tmp = (tmp << PHG4CellDefs::bitshift_binning);
197 if ((key & tmp) == tmp)
200 unsigned short int hi16bitkey = (keytmp & 0xFFFF);
203 cout <<
PHWHERE <<
" could not decode 0x" << hex << key << dec << endl;
213 key |= (tmp << PHG4CellDefs::bitshift_binning);
215 key |= (tmp << PHG4CellDefs::bitshift_upperkey);
227 key |= (tmp << PHG4CellDefs::bitshift_binning);
PHG4CellDefs::keytype generic_32bit_genkey(const unsigned short detid, const PHG4CellDefs::CellBinning binning, const unsigned int bit32)
unsigned short generic_lower_16bit_key(const PHG4CellDefs::keytype key, const PHG4CellDefs::CellBinning binning)
PHG4CellDefs::keytype generic_16bit_genkey(const unsigned short detid, const PHG4CellDefs::CellBinning binning, const unsigned short upper16bits, const unsigned short lower16bits)
unsigned short generic_upper_16bit_key(const PHG4CellDefs::keytype key, const PHG4CellDefs::CellBinning binning)
keytype genkey(const unsigned short layer, const unsigned short etabin, const unsigned short phibin)
unsigned short int get_phibin(const PHG4CellDefs::keytype key)
unsigned short int get_etabin(const PHG4CellDefs::keytype key)
keytype genkey(const unsigned short layer, const unsigned short etabin, const unsigned short xbin)
unsigned short int get_xsizebin(const PHG4CellDefs::keytype key)
unsigned short int get_etabin(const PHG4CellDefs::keytype key)
keytype genkey(const unsigned short layer, const unsigned int bit32_index)
unsigned short int get_column(PHG4CellDefs::keytype key)
keytype genkey(const unsigned short layer, const unsigned short irow, const unsigned short icolumn)
unsigned short int get_row(PHG4CellDefs::keytype key)
unsigned short int get_zbin(const PHG4CellDefs::keytype key)
unsigned short int get_phibin(const PHG4CellDefs::keytype key)
keytype genkey(const unsigned short layer, const unsigned short zbin, const unsigned short iphibin)
keytype genkey(const unsigned short etabin, const unsigned short phibin, const unsigned short fiberid)
unsigned short get_phibin(PHG4CellDefs::keytype key)
unsigned short get_etabin(PHG4CellDefs::keytype key)
unsigned short get_fiberid(PHG4CellDefs::keytype key)
keytype genkey(const unsigned short lyr, const unsigned short mod, const unsigned short pad)
unsigned long long keytype
short int get_detid(const PHG4CellDefs::keytype key)
short get_binning(PHG4CellDefs::keytype key)
bool has_binning(PHG4CellDefs::keytype key, PHG4CellDefs::CellBinning binning)
@ scintillatorslatbinning