00001 #ifndef RecoLocalCalo_EcalRecProducers_EcalRecHitWorkerSimple_hh 00002 #define RecoLocalCalo_EcalRecProducers_EcalRecHitWorkerSimple_hh 00003 00013 #include "RecoLocalCalo/EcalRecProducers/interface/EcalRecHitWorkerBaseClass.h" 00014 #include "RecoLocalCalo/EcalRecAlgos/interface/EcalRecHitSimpleAlgo.h" 00015 00016 #include "FWCore/Framework/interface/ESHandle.h" 00017 00018 #include "CondFormats/EcalObjects/interface/EcalIntercalibConstants.h" 00019 #include "CondFormats/EcalObjects/interface/EcalTimeCalibConstants.h" 00020 #include "CondFormats/EcalObjects/interface/EcalADCToGeVConstant.h" 00021 #include "CondFormats/EcalObjects/interface/EcalChannelStatus.h" 00022 00023 #include "CalibCalorimetry/EcalLaserCorrection/interface/EcalLaserDbService.h" 00024 00025 class EcalRecHitWorkerSimple : public EcalRecHitWorkerBaseClass { 00026 public: 00027 EcalRecHitWorkerSimple(const edm::ParameterSet&); 00028 virtual ~EcalRecHitWorkerSimple() {}; 00029 00030 void set(const edm::EventSetup& es); 00031 bool run(const edm::Event& evt, const EcalUncalibratedRecHit& uncalibRH, EcalRecHitCollection & result); 00032 00033 protected: 00034 00035 edm::ESHandle<EcalIntercalibConstants> ical; 00036 edm::ESHandle<EcalTimeCalibConstants> itime; 00037 edm::ESHandle<EcalADCToGeVConstant> agc; 00038 edm::ESHandle<EcalChannelStatus> chStatus; 00039 std::vector<int> v_chstatus_; 00040 edm::ESHandle<EcalLaserDbService> laser; 00041 std::vector<int> v_DB_reco_flags_; 00042 bool killDeadChannels_; 00043 bool laserCorrection_; 00044 00045 EcalRecHitSimpleAlgo * rechitMaker_; 00046 }; 00047 00048 #endif