CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_7_hltpatch1/src/RecoEcal/EgammaCoreTools/interface/EcalClusterSeverityLevelAlgo.h

Go to the documentation of this file.
00001 #ifndef RecoEcal_EgammaCoreTools_EcalClusterSeverityLevelAlgo_hh
00002 #define RecoEcal_EgammaCoreTools_EcalClusterSeverityLevelAlgo_hh
00003 
00004 #include "DataFormats/DetId/interface/DetId.h"
00005 #include "DataFormats/CaloRecHit/interface/CaloCluster.h"
00006 #include "DataFormats/EcalRecHit/interface/EcalRecHitCollections.h"
00007 #include "RecoLocalCalo/EcalRecAlgos/interface/EcalSeverityLevelAlgo.h"
00008 #include "CondFormats/EcalObjects/interface/EcalChannelStatus.h"
00009 #include "FWCore/Framework/interface/EventSetup.h"
00010 
00011 
00012 class CaloTopology;
00013 class EBDetId;
00014 class EcalClusterSeverityLevelAlgo {
00015  public:
00016 
00017   // the severity is the fraction of cluster energy 
00018   // taken by good channels  
00019   // (e.g. not noisy, dead and recovered etc.)
00020   static float goodFraction( const reco::CaloCluster & , const EcalRecHitCollection &,  const EcalSeverityLevelAlgo& );
00021   // fraction of SC energy around closest problematic
00022   static float fractionAroundClosestProblematic( const reco::CaloCluster & , const EcalRecHitCollection &, const CaloTopology* topology, const EcalSeverityLevelAlgo&  );
00023   // retrieve closest problematic channel wrt seed crystal using as distance sqrt(ieta^2+ieta^2+iphi^2+iphi^2). Return a null detId in case not found within a search region of 11 (ieta) x 51 (iphi)  
00024   static DetId closestProblematic( const reco::CaloCluster & , const EcalRecHitCollection &,  const CaloTopology* topology, const EcalSeverityLevelAlgo&   );
00025   // retrieve the distance in ieta,iphi (number of crystals) of the closest problematic channel wrt seed crystal (defined as above)
00026   // return -1,-1 if no crystal is found within a search region of 11 (eta) x 51 (phi)
00027   static std::pair<int,int> etaphiDistanceClosestProblematic( const reco::CaloCluster & , const EcalRecHitCollection &, const CaloTopology* topology, const EcalSeverityLevelAlgo&  );
00028 
00029 
00030 };
00031 
00032 #endif