Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 11:24:23

0001 ///////////////////////////////////////////////////////////////////////////////
0002 // File: BscNumberingScheme.h
0003 // Date: 02.2006
0004 // Description: Numbering scheme for Bsc
0005 // Modifications:
0006 ///////////////////////////////////////////////////////////////////////////////
0007 #ifndef BscNumberingScheme_h
0008 #define BscNumberingScheme_h
0009 
0010 #include "G4Step.hh"
0011 #include <cstdint>
0012 
0013 class BscNumberingScheme {
0014 public:
0015   BscNumberingScheme();
0016   ~BscNumberingScheme() = default;
0017 
0018   unsigned int getUnitID(const G4Step* aStep) const;
0019 
0020   // Utilities to get detector levels during a step
0021   int detectorLevel(const G4Step*) const;
0022   void detectorLevel(const G4Step*, int&, int*, G4String*) const;
0023 
0024   static unsigned int packBscIndex(int det, int zside, int station);
0025   static void unpackBscIndex(const unsigned int& idx);
0026 };
0027 
0028 #endif