layer definition for PFRecHit and PFCluster More...
#include <PFLayer.h>
Public Types | |
enum | Layer { PS2 = -12, PS1 = -11, ECAL_ENDCAP = -2, ECAL_BARREL = -1, NONE = 0, HCAL_BARREL1 = 1, HCAL_BARREL2 = 2, HCAL_ENDCAP = 3, HF_EM = 11, HF_HAD = 12 } |
layer definition More... | |
Public Member Functions | |
PFLayer () | |
constructor | |
virtual | ~PFLayer ()=0 |
destructor | |
Static Public Member Functions | |
static Layer | fromCaloID (const reco::CaloID &id) |
static reco::CaloID | toCaloID (Layer layer) |
layer definition for PFRecHit and PFCluster
These definitions are intended for internal use in the particle flow packages.
enum PFLayer::Layer |
layer definition
Definition at line 31 of file PFLayer.h.
{PS2 = -12, PS1 = -11, ECAL_ENDCAP = -2, ECAL_BARREL = -1, NONE = 0, HCAL_BARREL1 = 1, HCAL_BARREL2 = 2, HCAL_ENDCAP = 3, HF_EM = 11, HF_HAD = 12};
PFLayer::PFLayer | ( | ) |
constructor
virtual PFLayer::~PFLayer | ( | ) | [pure virtual] |
destructor
PFLayer::Layer PFLayer::fromCaloID | ( | const reco::CaloID & | id | ) | [static] |
Definition at line 28 of file PFLayer.cc.
References reco::CaloID::DET_ECAL_BARREL, reco::CaloID::DET_ECAL_ENDCAP, reco::CaloID::DET_HCAL_BARREL, reco::CaloID::DET_HCAL_ENDCAP, reco::CaloID::DET_HF_EM, reco::CaloID::DET_HF_HAD, reco::CaloID::DET_HO, reco::CaloID::DET_PS1, reco::CaloID::DET_PS2, ExpressReco_HICollisions_FallBack::detector, and NONE.
Referenced by reco::PFCluster::layer().
{ // cout<<"PFLayer::fromCaloID "<<id<<" "<<id.detector()<<endl; if( !id.isSingleDetector() ) { edm::LogError("PFLayer")<<"cannot convert "<<id<<" to a layer, as this CaloID does not correspond to a single detector"; } switch( id.detector() ) { case CaloID::DET_ECAL_BARREL : return ECAL_BARREL; case CaloID::DET_ECAL_ENDCAP : return ECAL_ENDCAP; case CaloID::DET_PS1 : return PS1; case CaloID::DET_PS2 : return PS2; case CaloID::DET_HCAL_BARREL : return HCAL_BARREL1; case CaloID::DET_HCAL_ENDCAP : return HCAL_ENDCAP; case CaloID::DET_HF_EM : return HF_EM; case CaloID::DET_HF_HAD : return HF_HAD; case CaloID::DET_HO : return HCAL_BARREL2; default : return NONE; } }
Definition at line 11 of file PFLayer.cc.
References reco::CaloID::DET_ECAL_BARREL, reco::CaloID::DET_ECAL_ENDCAP, reco::CaloID::DET_HCAL_BARREL, reco::CaloID::DET_HCAL_ENDCAP, reco::CaloID::DET_HF_EM, reco::CaloID::DET_HF_HAD, reco::CaloID::DET_HO, reco::CaloID::DET_PS1, and reco::CaloID::DET_PS2.
Referenced by reco::PFCluster::setLayer().
{ switch(layer) { case PS2 : return CaloID(CaloID::DET_PS2); case PS1 : return CaloID(CaloID::DET_PS1); case ECAL_ENDCAP : return CaloID(CaloID::DET_ECAL_ENDCAP); case ECAL_BARREL : return CaloID(CaloID::DET_ECAL_BARREL); case HCAL_BARREL1 : return CaloID(CaloID::DET_HCAL_BARREL); case HCAL_BARREL2 : return CaloID(CaloID::DET_HO); case HCAL_ENDCAP : return CaloID(CaloID::DET_HCAL_ENDCAP); case HF_EM : return CaloID(CaloID::DET_HF_EM); case HF_HAD : return CaloID(CaloID::DET_HF_HAD); default : return CaloID(); } }