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 21 of file LXXXCorrectorImpl.h.

Constructor & Destructor Documentation

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

Definition at line 19 of file LXXXCorrectorImpl.cc.

19  :
21 {
22 }
JetCorrectorImplMakerBase(edm::ParameterSet const &)

Member Function Documentation

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

Definition at line 50 of file LXXXCorrectorImpl.cc.

References edm::ConfigurationDescriptions::addDefault(), and JetCorrectorImplMakerBase::addToDescription().

51 {
53  addToDescription(desc);
54 
55  iDescriptions.addDefault(desc);
56 }
void addDefault(ParameterSetDescription const &psetDescription)
static void addToDescription(edm::ParameterSetDescription &iDescription)
std::unique_ptr< reco::JetCorrectorImpl > LXXXCorrectorImplMaker::make ( edm::Event const &  ,
edm::EventSetup const &  fSetup 
)

Definition at line 25 of file LXXXCorrectorImpl.cc.

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

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