Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:29:12

0001 #ifndef SimG4CMSForwardBHMNumberingScheme_h
0002 #define SimG4CMSForwardBHMNumberingScheme_h
0003 
0004 #include "G4Step.hh"
0005 #include <cstdint>
0006 
0007 class BHMNumberingScheme {
0008 public:
0009   BHMNumberingScheme();
0010   ~BHMNumberingScheme() = default;
0011 
0012   unsigned int getUnitID(const G4Step* aStep) const;
0013 
0014   // Utilities to get detector levels during a step
0015   int detectorLevel(const G4Step*) const;
0016   void detectorLevel(const G4Step*, int&, int*, G4String*) const;
0017 
0018   static unsigned int packIndex(int subdet, int zside, int station);
0019   static void unpackIndex(const unsigned int& idx, int& subdet, int& zside, int& station);
0020 };
0021 
0022 #endif