CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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::JetCorrectorImpl
make (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 48 of file LXXXCorrectorImpl.cc.

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

49 {
51  addToDescription(desc);
52 
53  iDescriptions.addDefault(desc);
54 }
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 edm::hlt::Exception, JetCorrectorImplMakerBase::getCalculator(), testEve_cfg::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
42  throw cms::Exception("LXXXCorrectorImpl")<<" unknown correction level "<<levelName;
43  });
44  return std::unique_ptr<reco::JetCorrectorImpl>(new LXXXCorrectorImpl(calculator,level));
45 }
const char * levelName(LogLevel)
Definition: fwLog.cc:34
tuple level
Definition: testEve_cfg.py:34
std::shared_ptr< FactorizedJetCorrectorCalculator const > getCalculator(edm::EventSetup const &, std::function< void(std::string const &)> levelCheck)