CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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::JetCorrectorImpl
make (edm::Event const &, edm::EventSetup const &)
 
- Public Member Functions inherited from JetCorrectorImplMakerBase
 JetCorrectorImplMakerBase (edm::ParameterSet const &, edm::ConsumesCollector iC)
 
 JetCorrectorImplMakerBase (const JetCorrectorImplMakerBase &)=delete
 
const JetCorrectorImplMakerBaseoperator= (const JetCorrectorImplMakerBase &)=delete
 
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 ( edm::ParameterSet const &  fConfig,
edm::ConsumesCollector  fCollector 
)

Definition at line 26 of file L6SLBCorrectorImpl.cc.

27  : JetCorrectorImplMakerBase(fConfig, fCollector),
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")) {}
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
edm::EDGetTokenT< std::vector< reco::SoftLeptonTagInfo > > muonToken_
JetCorrectorImplMakerBase(edm::ParameterSet const &, edm::ConsumesCollector iC)
edm::EDGetTokenT< std::vector< reco::SoftLeptonTagInfo > > elecToken_

Member Function Documentation

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

Definition at line 48 of file L6SLBCorrectorImpl.cc.

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

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 }
void addDefault(ParameterSetDescription const &psetDescription)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static void addToDescription(edm::ParameterSetDescription &iDescription)
std::unique_ptr< reco::JetCorrectorImpl > L6SLBCorrectorImplMaker::make ( edm::Event const &  fEvent,
edm::EventSetup const &  fSetup 
)

Definition at line 34 of file L6SLBCorrectorImpl.cc.

References addMuonToJet_, elecToken_, edm::Event::getByToken(), JetCorrectorImplMakerBase::getCalculator(), muonToken_, and AlCaHLTBitMon_QueryRunRegistry::string.

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 }
edm::EDGetTokenT< std::vector< reco::SoftLeptonTagInfo > > muonToken_
std::shared_ptr< FactorizedJetCorrectorCalculator const > getCalculator(edm::EventSetup const &, std::function< void(std::string const &)> levelCheck)
edm::EDGetTokenT< std::vector< reco::SoftLeptonTagInfo > > elecToken_

Member Data Documentation

bool L6SLBCorrectorImplMaker::addMuonToJet_
private

Definition at line 37 of file L6SLBCorrectorImpl.h.

Referenced by make().

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

Definition at line 35 of file L6SLBCorrectorImpl.h.

Referenced by make().

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

Definition at line 36 of file L6SLBCorrectorImpl.h.

Referenced by make().