Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-10-25 09:39:07

0001 #ifndef SimDataFormats_HcalTestNumbering_h
0002 #define SimDataFormats_HcalTestNumbering_h
0003 ///////////////////////////////////////////////////////////////////////////////
0004 // File: HcalTestNumbering.h
0005 // Description: Numbering scheme for hadron calorimeter (detailed for TB)
0006 ///////////////////////////////////////////////////////////////////////////////
0007 
0008 #include <cstdint>
0009 
0010 class HcalTestNumbering {
0011 public:
0012   HcalTestNumbering() {}
0013   virtual ~HcalTestNumbering() {}
0014   static uint32_t packHcalIndex(int det, int z, int depth, int eta, int phi, int lay);
0015   static void unpackHcalIndex(const uint32_t& idx, int& det, int& z, int& depth, int& eta, int& phi, int& lay);
0016 };
0017 
0018 #endif