File indexing completed on 2024-04-06 12:25:01
0001 #ifndef RecoEgamma_EgammaTools_EGEnergyCorrectorFactoryFromEventSetup_h
0002 #define RecoEgamma_EgammaTools_EGEnergyCorrectorFactoryFromEventSetup_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024 #include "EGEnergyCorrector.h"
0025
0026 #include "FWCore/Framework/interface/ConsumesCollector.h"
0027 #include "FWCore/Framework/interface/EventSetup.h"
0028
0029
0030 class GBRWrapperRcd;
0031
0032 class EGEnergyCorrectorFactoryFromEventSetup {
0033 public:
0034 EGEnergyCorrectorFactoryFromEventSetup(edm::ConsumesCollector, std::string const& regweigths);
0035
0036 EGEnergyCorrectorFactoryFromEventSetup(const EGEnergyCorrectorFactoryFromEventSetup&) = delete;
0037 const EGEnergyCorrectorFactoryFromEventSetup& operator=(const EGEnergyCorrectorFactoryFromEventSetup&) =
0038 delete;
0039
0040
0041 EGEnergyCorrector::Initializer build(edm::EventSetup const&) const;
0042
0043 private:
0044
0045 edm::ESGetToken<GBRForest, GBRWrapperRcd> const ebCorrectionTag_;
0046 edm::ESGetToken<GBRForest, GBRWrapperRcd> const ebUncertaintyTag_;
0047 edm::ESGetToken<GBRForest, GBRWrapperRcd> const eeCorrectionTag_;
0048 edm::ESGetToken<GBRForest, GBRWrapperRcd> const eeUncertaintyTag_;
0049 };
0050
0051 #endif