30 rhoToken_(fCollector.consumes<double>(fConfig.getParameter<
edm::InputTag>(
"srcRho")))
34 std::unique_ptr<reco::JetCorrectorImpl>
37 if(level !=
"L1FastJet") {
38 throw cms::Exception(
"L1FastjetCorrector")<<
" correction level: "<<level<<
" is not L1FastJet";
66 <<
"Wrong interface correction(LorentzVector), event required!";
double eta() const final
momentum pseudorapidity
std::shared_ptr< FactorizedJetCorrectorCalculator const > corrector_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< double > rhoToken_
Base class for all types of Jets.
reco::Particle::LorentzVector LorentzVector
double pt() const final
transverse momentum
void setJetEta(float fEta)
std::unique_ptr< reco::JetCorrectorImpl > make(edm::Event const &, edm::EventSetup const &)
void addDefault(ParameterSetDescription const &psetDescription)
double energy() const final
energy
static void fillDescriptions(edm::ConfigurationDescriptions &iDescriptions)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
L1FastjetCorrectorImplMaker(edm::ParameterSet const &, edm::ConsumesCollector)
virtual float jetArea() const
get jet area
static void addToDescription(edm::ParameterSetDescription &iDescription)
double correction(const LorentzVector &fJet) const override
apply correction using Jet information only
std::shared_ptr< FactorizedJetCorrectorCalculator const > getCalculator(edm::EventSetup const &, std::function< void(std::string const &)> levelCheck)