CMS 3D CMS Logo

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

#include <L6SLBCorrectorImpl.h>

Inheritance diagram for L6SLBCorrectorImplMaker:
JetCorrectorImplMakerBase

Public Member Functions

 L6SLBCorrectorImplMaker (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

bool addMuonToJet_
 
edm::EDGetTokenT< std::vector< reco::SoftLeptonTagInfo > > elecToken_
 
edm::EDGetTokenT< std::vector< reco::SoftLeptonTagInfo > > muonToken_
 

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 27 of file L6SLBCorrectorImpl.h.

Constructor & Destructor Documentation

◆ L6SLBCorrectorImplMaker()

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

Definition at line 26 of file L6SLBCorrectorImpl.cc.

27  : JetCorrectorImplMakerBase(fConfig),
28  elecToken_(fCollector.consumes<std::vector<reco::SoftLeptonTagInfo>>(
29  fConfig.getParameter<edm::InputTag>("srcBTagInfoElectron"))),
30  muonToken_(fCollector.consumes<std::vector<reco::SoftLeptonTagInfo>>(
31  fConfig.getParameter<edm::InputTag>("srcBTagInfoMuon"))),
32  addMuonToJet_(fConfig.getParameter<bool>("addMuonToJet")) {}

Member Function Documentation

◆ fillDescriptions()

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

Definition at line 48 of file L6SLBCorrectorImpl.cc.

48  {
50  addToDescription(desc);
51  desc.add<edm::InputTag>("srcBTagInfoElectron");
52  desc.add<edm::InputTag>("srcBTagInfoMuon");
53  desc.add<bool>("addMuonToJet");
54  iDescriptions.addDefault(desc);
55 }

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

◆ make()

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

Definition at line 34 of file L6SLBCorrectorImpl.cc.

35  {
37  fEvent.getByToken(muonToken_, muoninfos);
39 
41  fEvent.getByToken(elecToken_, elecinfos);
43 
44  auto calculator = getCalculator(fSetup, [](std::string const&) {});
45  return std::unique_ptr<reco::JetCorrectorImpl>(new L6SLBCorrectorImpl(calculator, muonProd, elecProd, addMuonToJet_));
46 }

References addMuonToJet_, elecToken_, hcaldqm::fEvent, JetCorrectorImplMakerBase::getCalculator(), muonToken_, and AlCaHLTBitMon_QueryRunRegistry::string.

Member Data Documentation

◆ addMuonToJet_

bool L6SLBCorrectorImplMaker::addMuonToJet_
private

Definition at line 37 of file L6SLBCorrectorImpl.h.

Referenced by make().

◆ elecToken_

edm::EDGetTokenT<std::vector<reco::SoftLeptonTagInfo> > L6SLBCorrectorImplMaker::elecToken_
private

Definition at line 35 of file L6SLBCorrectorImpl.h.

Referenced by make().

◆ muonToken_

edm::EDGetTokenT<std::vector<reco::SoftLeptonTagInfo> > L6SLBCorrectorImplMaker::muonToken_
private

Definition at line 36 of file L6SLBCorrectorImpl.h.

Referenced by make().

edm::RefProd
Definition: EDProductfwd.h:25
JetCorrectorImplMakerBase::JetCorrectorImplMakerBase
JetCorrectorImplMakerBase(edm::ParameterSet const &)
Definition: JetCorrectorImplMakerBase.cc:38
L6SLBCorrectorImpl
Definition: L6SLBCorrectorImpl.h:40
edm::ParameterSetDescription::add
ParameterDescriptionBase * add(U const &iLabel, T const &value)
Definition: ParameterSetDescription.h:95
L6SLBCorrectorImplMaker::addMuonToJet_
bool addMuonToJet_
Definition: L6SLBCorrectorImpl.h:37
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
edm::Handle
Definition: AssociativeIterator.h:50
edm::ConsumesCollector::consumes
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
Definition: ConsumesCollector.h:49
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
L6SLBCorrectorImplMaker::muonToken_
edm::EDGetTokenT< std::vector< reco::SoftLeptonTagInfo > > muonToken_
Definition: L6SLBCorrectorImpl.h:36
hcaldqm::fEvent
Definition: DQTask.h:32
JetCorrectorImplMakerBase::addToDescription
static void addToDescription(edm::ParameterSetDescription &iDescription)
Definition: JetCorrectorImplMakerBase.cc:72
JetCorrectorImplMakerBase::getCalculator
std::shared_ptr< FactorizedJetCorrectorCalculator const > getCalculator(edm::EventSetup const &, std::function< void(std::string const &)> levelCheck)
Definition: JetCorrectorImplMakerBase.cc:54
L6SLBCorrectorImplMaker::elecToken_
edm::EDGetTokenT< std::vector< reco::SoftLeptonTagInfo > > elecToken_
Definition: L6SLBCorrectorImpl.h:35
edm::ConfigurationDescriptions::addDefault
void addDefault(ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:99
edm::InputTag
Definition: InputTag.h:15