CMS 3D CMS Logo

BHMNumberingScheme.h
Go to the documentation of this file.
1 #ifndef SimG4CMSForwardBHMNumberingScheme_h
2 #define SimG4CMSForwardBHMNumberingScheme_h
3 
4 #include "G4Step.hh"
5 #include <cstdint>
6 
8 
9 public:
11  ~BHMNumberingScheme() = default;
12 
13  unsigned int getUnitID(const G4Step* aStep) const;
14 
15  // Utilities to get detector levels during a step
16  int detectorLevel(const G4Step*) const;
17  void detectorLevel(const G4Step*, int&, int*, G4String*) const;
18 
19  static unsigned int packIndex(int subdet, int zside, int station);
20  static void unpackIndex(const unsigned int& idx, int& subdet, int& zside,
21  int& station);
22 
23 };
24 
25 #endif
static void unpackIndex(const unsigned int &idx, int &subdet, int &zside, int &station)
~BHMNumberingScheme()=default
static unsigned int packIndex(int subdet, int zside, int station)
int zside(DetId const &)
unsigned int getUnitID(const G4Step *aStep) const
int detectorLevel(const G4Step *) const