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 | 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 &)
 
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 28 of file L6SLBCorrectorImpl.h.

Constructor & Destructor Documentation

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

Definition at line 28 of file L6SLBCorrectorImpl.cc.

30  : JetCorrectorImplMakerBase(fConfig)
31  , elecToken_(fCollector.consumes<std::vector<reco::SoftLeptonTagInfo>>(fConfig.getParameter<edm::InputTag>("srcBTagInfoElectron")))
32  , muonToken_(fCollector.consumes<std::vector<reco::SoftLeptonTagInfo>>(fConfig.getParameter<edm::InputTag>("srcBTagInfoMuon")))
33  , addMuonToJet_(fConfig.getParameter<bool>("addMuonToJet"))
34 {
35 }
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
edm::EDGetTokenT< std::vector< reco::SoftLeptonTagInfo > > muonToken_
JetCorrectorImplMakerBase(edm::ParameterSet const &)
edm::EDGetTokenT< std::vector< reco::SoftLeptonTagInfo > > elecToken_

Member Function Documentation

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

Definition at line 57 of file L6SLBCorrectorImpl.cc.

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

58 {
60  addToDescription(desc);
61  desc.add<edm::InputTag>("srcBTagInfoElectron");
62  desc.add<edm::InputTag>("srcBTagInfoMuon");
63  desc.add<bool>("addMuonToJet");
64  iDescriptions.addDefault(desc);
65 }
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 38 of file L6SLBCorrectorImpl.cc.

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

39 {
41  fEvent.getByToken(muonToken_,muoninfos);
43 
45  fEvent.getByToken(elecToken_,elecinfos);
47 
48  auto calculator = getCalculator(fSetup,
49  [](std::string const& ) {});
50  return std::unique_ptr<reco::JetCorrectorImpl>(new L6SLBCorrectorImpl(calculator,
51  muonProd,
52  elecProd,
53  addMuonToJet_));
54 }
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().