File indexing completed on 2024-04-06 11:57:32
0001 #ifndef _ECALRECHITRECALIB_H
0002 #define _ECALRECHITRECALIB_H
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022 #include <memory>
0023
0024
0025 #include "FWCore/Framework/interface/Frameworkfwd.h"
0026 #include "FWCore/Framework/interface/stream/EDProducer.h"
0027
0028 #include "FWCore/Framework/interface/Event.h"
0029 #include "FWCore/Framework/interface/MakerMacros.h"
0030
0031 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0032
0033 #include "DataFormats/EcalRecHit/interface/EcalRecHitCollections.h"
0034 #include "CondFormats/EcalObjects/interface/EcalIntercalibConstants.h"
0035 #include "CondFormats/DataRecord/interface/EcalIntercalibConstantsRcd.h"
0036
0037
0038
0039
0040 class EcalRecHitRecalib : public edm::stream::EDProducer<> {
0041 public:
0042 explicit EcalRecHitRecalib(const edm::ParameterSet &);
0043 ~EcalRecHitRecalib() override;
0044
0045 void produce(edm::Event &, const edm::EventSetup &) override;
0046
0047 private:
0048
0049
0050 const std::string ecalHitsProducer_;
0051 const std::string barrelHits_;
0052 const std::string endcapHits_;
0053 const std::string recalibBarrelHits_;
0054 const std::string recalibEndcapHits_;
0055 const double refactor_;
0056 const double refactor_mean_;
0057
0058 const edm::EDGetTokenT<EBRecHitCollection> ebRecHitToken_;
0059 const edm::EDGetTokenT<EERecHitCollection> eeRecHitToken_;
0060 const edm::ESGetToken<EcalIntercalibConstants, EcalIntercalibConstantsRcd> intercalibConstsToken_;
0061 const edm::EDPutTokenT<EBRecHitCollection> barrelHitsToken_;
0062 const edm::EDPutTokenT<EERecHitCollection> endcapHitsToken_;
0063 };
0064
0065 #endif