EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4ScintillatorSlatDefs.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4ScintillatorSlatDefs.cc
2 
4 PHG4ScintillatorSlatDefs::genkey(const short irow, const short icolumn)
5 {
6  keytype key = irow; // lower bits used by row
7  key |= (icolumn << columnbits); // upper bits used by column, so we can easily extract
8  // slats by column which are combined to towers
9  return key;
10 }
11 
12 std::pair<short,short>
14 {
15  short irow = key&0xFFFF;
16  short icolumn = key >> columnbits;
17  return std::make_pair(irow,icolumn);
18 }