CMS 3D CMS Logo

CMSSW_4_4_3_patch1/src/RecoLocalCalo/EcalRecAlgos/interface/EcalSeverityLevelService.h

Go to the documentation of this file.
00001 
00010 #include "RecoLocalCalo/EcalRecAlgos/interface/EcalSeverityLevelAlgo.h"
00011 #include "FWCore/ServiceRegistry/interface/ActivityRegistry.h"
00012 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00013 #include "CondFormats/EcalObjects/interface/EcalChannelStatus.h"
00014 
00015 
00017 class EcalSeverityLevelService {
00018   
00019 public:
00020   EcalSeverityLevelService(const edm::ParameterSet& p, 
00021                            edm::ActivityRegistry& r){
00022     algo_ = new EcalSeverityLevelAlgo(p);
00023   }
00024 
00025   ~EcalSeverityLevelService(){delete algo_;}
00026   
00027 
00028   EcalSeverityLevelAlgo::EcalSeverityLevel 
00029   severityLevel(const EcalRecHit& rh) const {
00030     return algo_->severityLevel(rh);
00031   }
00032 
00033   EcalSeverityLevelAlgo::EcalSeverityLevel 
00034   severityLevel(const DetId& id, 
00035                 const EcalRecHitCollection& rhs, 
00036                 const edm::EventSetup& es) const {
00037     return algo_->severityLevel(id,rhs,es);
00038   }
00039   
00040   
00041   EcalSeverityLevelAlgo::EcalSeverityLevel 
00042   severityLevel(const DetId& id, 
00043                 const EcalRecHitCollection& rhs, 
00044                 const EcalChannelStatus& chs) const {
00045     return algo_->severityLevel(id,rhs,chs);
00046   }
00047   
00048   const EcalSeverityLevelAlgo* getAlgorithm() const {return algo_;}
00049 
00050 private:
00051   EcalSeverityLevelAlgo * algo_;
00052 
00053 };
00054 
00055 
00056 // Configure (x)emacs for this file ...
00057 // Local Variables:
00058 // mode:c++
00059 // compile-command: "cd ..; scram b"
00060 // End: