CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
L1FastjetCorrectorImplMaker Class Reference

#include <L1FastjetCorrectorImpl.h>

Inheritance diagram for L1FastjetCorrectorImplMaker:
JetCorrectorImplMakerBase

Public Member Functions

 L1FastjetCorrectorImplMaker (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)
 

Private Attributes

edm::EDGetTokenT< double > rhoToken_
 

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 23 of file L1FastjetCorrectorImpl.h.

Constructor & Destructor Documentation

◆ L1FastjetCorrectorImplMaker()

L1FastjetCorrectorImplMaker::L1FastjetCorrectorImplMaker ( edm::ParameterSet const &  fConfig,
edm::ConsumesCollector  fCollector 
)

Definition at line 27 of file L1FastjetCorrectorImpl.cc.

29  : JetCorrectorImplMakerBase(fConfig),
30  rhoToken_(fCollector.consumes<double>(fConfig.getParameter<edm::InputTag>("srcRho"))) {}

Member Function Documentation

◆ fillDescriptions()

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

◆ make()

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

Definition at line 32 of file L1FastjetCorrectorImpl.cc.

33  {
34  auto corrector = getCalculator(fSetup, [](const std::string& level) {
35  if (level != "L1FastJet") {
36  throw cms::Exception("L1FastjetCorrector") << " correction level: " << level << " is not L1FastJet";
37  }
38  });
39 
41  fEvent.getByToken(rhoToken_, hRho);
42  return std::unique_ptr<L1FastjetCorrectorImpl>(new L1FastjetCorrectorImpl(corrector, *hRho));
43 }

References pfClustersFromHGC3DClusters_cfi::corrector, Exception, hcaldqm::fEvent, JetCorrectorImplMakerBase::getCalculator(), personalPlayback::level, rhoToken_, and AlCaHLTBitMon_QueryRunRegistry::string.

Member Data Documentation

◆ rhoToken_

edm::EDGetTokenT<double> L1FastjetCorrectorImplMaker::rhoToken_
private

Definition at line 31 of file L1FastjetCorrectorImpl.h.

Referenced by make().

personalPlayback.level
level
Definition: personalPlayback.py:22
JetCorrectorImplMakerBase::JetCorrectorImplMakerBase
JetCorrectorImplMakerBase(edm::ParameterSet const &)
Definition: JetCorrectorImplMakerBase.cc:38
edm::ParameterSetDescription::add
ParameterDescriptionBase * add(U const &iLabel, T const &value)
Definition: ParameterSetDescription.h:95
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
edm::Handle< double >
pfClustersFromHGC3DClusters_cfi.corrector
corrector
Definition: pfClustersFromHGC3DClusters_cfi.py:4
L1FastjetCorrectorImpl
Definition: L1FastjetCorrectorImpl.h:34
edm::ConsumesCollector::consumes
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
Definition: ConsumesCollector.h:49
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
hcaldqm::fEvent
Definition: DQTask.h:32
JetCorrectorImplMakerBase::addToDescription
static void addToDescription(edm::ParameterSetDescription &iDescription)
Definition: JetCorrectorImplMakerBase.cc:72
Exception
Definition: hltDiff.cc:246
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
edm::InputTag
Definition: InputTag.h:15
L1FastjetCorrectorImplMaker::rhoToken_
edm::EDGetTokenT< double > rhoToken_
Definition: L1FastjetCorrectorImpl.h:31