00001 #ifndef RecoLocalCalo_EcalRecProducers_EcalRecalibRecHitProducer_HH 00002 #define RecoLocalCalo_EcalRecProducers_EcalRecalibRecHitProducer_HH 00003 00013 #include "FWCore/Framework/interface/EDProducer.h" 00014 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00015 #include "FWCore/Framework/interface/Event.h" 00016 #include "FWCore/Framework/interface/EventSetup.h" 00017 00018 #include "RecoLocalCalo/EcalRecAlgos/interface/EcalRecHitAbsAlgo.h" 00019 00020 // forward declaration 00021 class EcalRecalibRecHitProducer : public edm::EDProducer { 00022 00023 public: 00024 explicit EcalRecalibRecHitProducer(const edm::ParameterSet& ps); 00025 ~EcalRecalibRecHitProducer(); 00026 virtual void produce(edm::Event& evt, const edm::EventSetup& es); 00027 00028 private: 00029 00030 edm::InputTag EBRecHitCollection_; // secondary name given to collection of EB uncalib rechits 00031 edm::InputTag EERecHitCollection_; // secondary name given to collection of EE uncalib rechits 00032 std::string EBRecalibRecHitCollection_; // secondary name to be given to EB collection of hits 00033 std::string EERecalibRecHitCollection_; // secondary name to be given to EE collection of hits 00034 00035 bool doEnergyScale_; 00036 bool doIntercalib_; 00037 bool doLaserCorrections_; 00038 00039 EcalRecHitAbsAlgo* EBalgo_; 00040 EcalRecHitAbsAlgo* EEalgo_; 00041 00042 /* int nMaxPrintout_; // max # of printouts */ 00043 /* int nEvt_; // internal counter of events */ 00044 00045 /* bool counterExceeded() const { return ( (nEvt_>nMaxPrintout_) || (nMaxPrintout_<0) ) ; } */ 00046 }; 00047 #endif