Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:25:01

0001 #ifndef RecoEgamma_EgammaTools_EGEnergyCorrectorFactoryFromEventSetup_h
0002 #define RecoEgamma_EgammaTools_EGEnergyCorrectorFactoryFromEventSetup_h
0003 // -*- C++ -*-
0004 //
0005 // Package:     RecoEgamma/EgammaTools
0006 // Class  :     EGEnergyCorrectorFactoryFromEventSetup
0007 //
0008 /**\class EGEnergyCorrectorFactoryFromEventSetup EGEnergyCorrectorFactoryFromEventSetup.h "RecoEgamma/EgammaTools/interface/EGEnergyCorrectorFactoryFromEventSetup.h"
0009 
0010  Description: Initializes a EGEnergyCorrector from data in the DB
0011 
0012  Usage:
0013     <usage>
0014 
0015 */
0016 //
0017 // Original Author:  Christopher Jones
0018 //         Created:  Fri, 03 Sep 2021 18:54:38 GMT
0019 //
0020 
0021 // system include files
0022 
0023 // user include files
0024 #include "EGEnergyCorrector.h"
0025 
0026 #include "FWCore/Framework/interface/ConsumesCollector.h"
0027 #include "FWCore/Framework/interface/EventSetup.h"
0028 
0029 // forward declarations
0030 class GBRWrapperRcd;
0031 
0032 class EGEnergyCorrectorFactoryFromEventSetup {
0033 public:
0034   EGEnergyCorrectorFactoryFromEventSetup(edm::ConsumesCollector, std::string const& regweigths);
0035 
0036   EGEnergyCorrectorFactoryFromEventSetup(const EGEnergyCorrectorFactoryFromEventSetup&) = delete;  // stop default
0037   const EGEnergyCorrectorFactoryFromEventSetup& operator=(const EGEnergyCorrectorFactoryFromEventSetup&) =
0038       delete;  // stop default
0039 
0040   // ---------- const member functions ---------------------
0041   EGEnergyCorrector::Initializer build(edm::EventSetup const&) const;
0042 
0043 private:
0044   // ---------- member data --------------------------------
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