CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_7_hltpatch1/src/DataFormats/ParticleFlowReco/interface/PFLayer.h

Go to the documentation of this file.
00001 #ifndef DataFormats_ParticleFlowReco_PFLayer_h
00002 #define DataFormats_ParticleFlowReco_PFLayer_h
00003 
00004 #include "DataFormats/CaloRecHit/interface/CaloID.h"
00005 
00006 
00021 class PFLayer {
00022 
00023  public:
00025   PFLayer();
00026 
00028   virtual ~PFLayer() = 0;
00029 
00031   enum Layer {PS2          = -12, 
00032               PS1          = -11,
00033               ECAL_ENDCAP  = -2,
00034               ECAL_BARREL  = -1,
00035               NONE         = 0,
00036               HCAL_BARREL1 = 1,
00037               HCAL_BARREL2 = 2,
00038               HCAL_ENDCAP  = 3,
00039               HF_EM        = 11,
00040               HF_HAD       = 12};
00041 
00042   static reco::CaloID  toCaloID( Layer layer);
00043   
00044   static Layer         fromCaloID( const reco::CaloID& id);
00045 };
00046 
00047 #endif