ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4ScintillatorSlatDefs.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4ScintillatorSlatDefs.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef G4DETECTORS_PHG4SCINTILLATORSLATDEFS_H
4 #define G4DETECTORS_PHG4SCINTILLATORSLATDEFS_H
5 
6 #include <utility> // for pair
7 
8 namespace PHG4ScintillatorSlatDefs
9 {
10  typedef unsigned int keytype;
11  static int columnbits = 16; // upper bits used for searching, we want columns
12  // which allows us to create towers quickly by
13  // bunching them up in groups of 5
14  static int rowbits = 32-columnbits;
15  keytype genkey(const short irow, const short icolumn);
16  std::pair<short,short> getrowcol(const keytype key);
17 }
18 
19 
20 #endif