Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:17:51

0001 // Tell emacs that this is a C++ source
0002 //  -*- C++ -*-.
0003 #ifndef G4DETECTORS_PHG4SCINTILLATORSLATDEFS_H
0004 #define G4DETECTORS_PHG4SCINTILLATORSLATDEFS_H
0005 
0006 #include <utility>  // for pair
0007 
0008 namespace PHG4ScintillatorSlatDefs
0009 {
0010   typedef unsigned int keytype;
0011   static int columnbits = 16;  // upper bits used for searching, we want columns
0012                                // which allows us to create towers quickly by
0013                                // bunching them up in groups of 5
0014   static int rowbits = 32 - columnbits;
0015   keytype genkey(const short irow, const short icolumn);
0016   std::pair<short, short> getrowcol(const keytype key);
0017 }  // namespace PHG4ScintillatorSlatDefs
0018 
0019 #endif