Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:04:52

0001 #ifndef DataFormats_ParticleFlowReco_PFLayer_h
0002 #define DataFormats_ParticleFlowReco_PFLayer_h
0003 
0004 #include "DataFormats/CaloRecHit/interface/CaloID.h"
0005 
0006 /**\class PFLayer
0007    \brief layer definition for PFRecHit and PFCluster
0008    
0009    These definitions are intended for internal use in the particle 
0010    flow packages.
0011    
0012    \todo A new layer definition has been provided in reco::CaloID.
0013    translation functions have been added between reco::CaloID and 
0014    PFLayer, but PFLayer should eventually be phased out completely
0015    
0016    \author Colin Bernet
0017    \date   July 2006
0018 */
0019 
0020 class PFLayer {
0021 public:
0022   /// constructor
0023   PFLayer() {}
0024 
0025   /// destructor
0026   ~PFLayer() {}
0027 
0028   /// layer definition
0029   enum Layer {
0030     PS2 = -12,
0031     PS1 = -11,
0032     ECAL_ENDCAP = -2,
0033     ECAL_BARREL = -1,
0034     NONE = 0,
0035     HCAL_BARREL1 = 1,
0036     HCAL_BARREL2 = 2,
0037     HCAL_ENDCAP = 3,
0038     HF_EM = 11,
0039     HF_HAD = 12,
0040     HGCAL = 13  // HGCal, could be EM or HAD
0041   };
0042 
0043   static reco::CaloID toCaloID(Layer layer);
0044 
0045   static Layer fromCaloID(const reco::CaloID& id);
0046 };
0047 
0048 #endif