CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_9/src/RecoLocalCalo/EcalRecProducers/plugins/EcalRecHitWorkerSimple.h

Go to the documentation of this file.
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 
00035 
00036         protected:
00037 
00038                 double EBLaserMIN_;
00039                 double EELaserMIN_;
00040                 double EBLaserMAX_;
00041                 double EELaserMAX_;
00042 
00043 
00044                 edm::ESHandle<EcalIntercalibConstants> ical;
00045                 edm::ESHandle<EcalTimeCalibConstants> itime;
00046                 edm::ESHandle<EcalTimeOffsetConstant> offtime;
00047                 edm::ESHandle<EcalADCToGeVConstant> agc;
00048                 edm::ESHandle<EcalChannelStatus> chStatus;
00049                 std::vector<int> v_chstatus_;
00050                 edm::ESHandle<EcalLaserDbService> laser;
00051 
00052                 std::vector<int> v_DB_reco_flags_;
00053 
00054                 bool killDeadChannels_;
00055                 bool laserCorrection_;
00056 
00057                 EcalRecHitSimpleAlgo * rechitMaker_;
00058 };
00059 
00060 #endif