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/EcalTimeOffsetConstant.h" 00021 #include "CondFormats/EcalObjects/interface/EcalADCToGeVConstant.h" 00022 #include "CondFormats/EcalObjects/interface/EcalChannelStatus.h" 00023 00024 #include "CalibCalorimetry/EcalLaserCorrection/interface/EcalLaserDbService.h" 00025 00026 class EcalRecHitWorkerSimple : public EcalRecHitWorkerBaseClass { 00027 public: 00028 EcalRecHitWorkerSimple(const edm::ParameterSet&); 00029 virtual ~EcalRecHitWorkerSimple() {}; 00030 00031 void set(const edm::EventSetup& es); 00032 bool run(const edm::Event& evt, const EcalUncalibratedRecHit& uncalibRH, EcalRecHitCollection & result); 00033 00034 protected: 00035 00036 edm::ESHandle<EcalIntercalibConstants> ical; 00037 edm::ESHandle<EcalTimeCalibConstants> itime; 00038 edm::ESHandle<EcalTimeOffsetConstant> offtime; 00039 edm::ESHandle<EcalADCToGeVConstant> agc; 00040 edm::ESHandle<EcalChannelStatus> chStatus; 00041 std::vector<int> v_chstatus_; 00042 edm::ESHandle<EcalLaserDbService> laser; 00043 std::vector<int> v_DB_reco_flags_; 00044 bool killDeadChannels_; 00045 bool laserCorrection_; 00046 00047 EcalRecHitSimpleAlgo * rechitMaker_; 00048 }; 00049 00050 #endif