CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_9/src/SimG4CMS/Calo/interface/HcalTestNumberingScheme.h

Go to the documentation of this file.
00001 #ifndef SimG4CMS_HcalTestNumberingScheme_h
00002 #define SimG4CMS_HcalTestNumberingScheme_h
00003 
00004 // File: HcalTestNumberingScheme.h
00005 // Description: Numbering scheme for hadron calorimeter (detailed for TB)
00007 
00008 #include "SimG4CMS/Calo/interface/HcalNumberingScheme.h"
00009 #include "SimDataFormats/CaloTest/interface/HcalTestNumbering.h"
00010 
00011 class HcalTestNumberingScheme : public HcalNumberingScheme {
00012 
00013 public:
00014   HcalTestNumberingScheme(bool forTB);
00015   virtual ~HcalTestNumberingScheme();
00016   virtual uint32_t getUnitID(const HcalNumberingFromDDD::HcalID id);
00017   static uint32_t  packHcalIndex(int det, int z, int depth, int eta,
00018                                  int phi, int lay);
00019   static void      unpackHcalIndex(const uint32_t & idx, int& det, int& z, 
00020                                    int& depth, int& eta, int& phi, int& lay);
00021 private:
00022 
00023   HcalTestNumberingScheme();
00024 
00025   bool forTBH2;
00026 };
00027 
00028 #endif