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 &)
 
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   
)

Definition at line 18 of file LXXXCorrectorImpl.cc.

19  : JetCorrectorImplMakerBase(fConfig) {}

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.

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 }

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

personalPlayback.level
level
Definition: personalPlayback.py:22
JetCorrectorImplMakerBase::JetCorrectorImplMakerBase
JetCorrectorImplMakerBase(edm::ParameterSet const &)
Definition: JetCorrectorImplMakerBase.cc:38
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
LXXXCorrectorImpl
Definition: LXXXCorrectorImpl.h:29
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
fwlog::levelName
const char * levelName(LogLevel)
Definition: fwLog.cc:32
JetCorrectorImplMakerBase::addToDescription
static void addToDescription(edm::ParameterSetDescription &iDescription)
Definition: JetCorrectorImplMakerBase.cc:72
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
Exception
Definition: hltDiff.cc:245
JetCorrectorImplMakerBase::getCalculator
std::shared_ptr< FactorizedJetCorrectorCalculator const > getCalculator(edm::EventSetup const &, std::function< void(std::string const &)> levelCheck)
Definition: JetCorrectorImplMakerBase.cc:54
edm::ConfigurationDescriptions::addDefault
void addDefault(ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:99