CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions
LXXXCorrectorImplMaker Class Reference

#include <LXXXCorrectorImpl.h>

Inheritance diagram for LXXXCorrectorImplMaker:
JetCorrectorImplMakerBase

Public Member Functions

 LXXXCorrectorImplMaker (edm::ParameterSet const &, edm::ConsumesCollector)
 
std::unique_ptr< reco::JetCorrectorImplmake (edm::Event const &, edm::EventSetup const &)
 
- Public Member Functions inherited from JetCorrectorImplMakerBase
 JetCorrectorImplMakerBase (edm::ParameterSet const &, edm::ConsumesCollector iC)
 
 JetCorrectorImplMakerBase (const JetCorrectorImplMakerBase &)=delete
 
const JetCorrectorImplMakerBaseoperator= (const JetCorrectorImplMakerBase &)=delete
 
virtual ~JetCorrectorImplMakerBase ()
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &iDescriptions)
 
- Static Public Member Functions inherited from JetCorrectorImplMakerBase
static void addToDescription (edm::ParameterSetDescription &iDescription)
 

Additional Inherited Members

- Protected Member Functions inherited from JetCorrectorImplMakerBase
std::shared_ptr< FactorizedJetCorrectorCalculator const > getCalculator (edm::EventSetup const &, std::function< void(std::string const &)> levelCheck)
 

Detailed Description

Definition at line 20 of file LXXXCorrectorImpl.h.

Constructor & Destructor Documentation

◆ LXXXCorrectorImplMaker()

LXXXCorrectorImplMaker::LXXXCorrectorImplMaker ( edm::ParameterSet const &  fConfig,
edm::ConsumesCollector  iC 
)

Definition at line 18 of file LXXXCorrectorImpl.cc.

19  : JetCorrectorImplMakerBase(fConfig, std::move(iC)) {}
JetCorrectorImplMakerBase(edm::ParameterSet const &, edm::ConsumesCollector iC)
def move(src, dest)
Definition: eostools.py:511

Member Function Documentation

◆ fillDescriptions()

void LXXXCorrectorImplMaker::fillDescriptions ( edm::ConfigurationDescriptions iDescriptions)
static

◆ make()

std::unique_ptr< reco::JetCorrectorImpl > LXXXCorrectorImplMaker::make ( edm::Event const &  ,
edm::EventSetup const &  fSetup 
)

Definition at line 21 of file LXXXCorrectorImpl.cc.

References Exception, JetCorrectorImplMakerBase::getCalculator(), personalPlayback::level, fwlog::levelName(), and AlCaHLTBitMon_QueryRunRegistry::string.

21  {
22  unsigned int level = 0;
23  auto calculator = getCalculator(fSetup, [&level](std::string const& levelName) {
24  if (levelName == "L2Relative")
25  level = 2;
26  else if (levelName == "L3Absolute")
27  level = 3;
28  else if (levelName == "L4EMF")
29  level = 4;
30  else if (levelName == "L5Flavor")
31  level = 5;
32  else if (levelName == "L7Parton")
33  level = 7;
34  else if (levelName == "L2L3Residual")
35  level = 8;
36  else
37  throw cms::Exception("LXXXCorrectorImpl") << " unknown correction level " << levelName;
38  });
39  return std::unique_ptr<reco::JetCorrectorImpl>(new LXXXCorrectorImpl(calculator, level));
40 }
const char * levelName(LogLevel)
Definition: fwLog.cc:32
std::shared_ptr< FactorizedJetCorrectorCalculator const > getCalculator(edm::EventSetup const &, std::function< void(std::string const &)> levelCheck)