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
L1FastjetCorrectorImplMaker Class Reference

#include <L1FastjetCorrectorImpl.h>

Inheritance diagram for L1FastjetCorrectorImplMaker:
JetCorrectorImplMakerBase

Public Member Functions

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

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 ( edm::ParameterSet const &  fConfig,
edm::ConsumesCollector  fCollector 
)

Definition at line 29 of file L1FastjetCorrectorImpl.cc.

31  : JetCorrectorImplMakerBase(fConfig, fCollector),
32  rhoToken_(fCollector.consumes<double>(fConfig.getParameter<edm::InputTag>("srcRho"))) {}
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
edm::EDGetTokenT< double > rhoToken_
JetCorrectorImplMakerBase(edm::ParameterSet const &, edm::ConsumesCollector iC)

Member Function Documentation

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

Definition at line 47 of file L1FastjetCorrectorImpl.cc.

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

47  {
49  addToDescription(desc);
50  desc.add<edm::InputTag>("srcRho");
51  iDescriptions.addDefault(desc);
52 }
void addDefault(ParameterSetDescription const &psetDescription)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static void addToDescription(edm::ParameterSetDescription &iDescription)
std::unique_ptr< reco::JetCorrectorImpl > L1FastjetCorrectorImplMaker::make ( edm::Event const &  fEvent,
edm::EventSetup const &  fSetup 
)

Definition at line 34 of file L1FastjetCorrectorImpl.cc.

References pfClustersFromHGC3DClusters_cfi::corrector, Exception, edm::Event::getByToken(), JetCorrectorImplMakerBase::getCalculator(), testEve_cfg::level, rhoToken_, and AlCaHLTBitMon_QueryRunRegistry::string.

35  {
36  auto corrector = getCalculator(fSetup, [](const std::string& level) {
37  if (level != "L1FastJet") {
38  throw cms::Exception("L1FastjetCorrector") << " correction level: " << level << " is not L1FastJet";
39  }
40  });
41 
43  fEvent.getByToken(rhoToken_, hRho);
44  return std::make_unique<L1FastjetCorrectorImpl>(corrector, *hRho);
45 }
edm::EDGetTokenT< double > rhoToken_
tuple level
Definition: testEve_cfg.py:47
std::shared_ptr< FactorizedJetCorrectorCalculator const > getCalculator(edm::EventSetup const &, std::function< void(std::string const &)> levelCheck)

Member Data Documentation

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

Definition at line 31 of file L1FastjetCorrectorImpl.h.

Referenced by make().