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!";
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< double > rhoToken_
Base class for all types of Jets.
virtual double correction(const LorentzVector &fJet) const
apply correction using Jet information only
reco::Particle::LorentzVector LorentzVector
virtual double eta() const
momentum pseudorapidity
virtual double pt() const
transverse momentum
void setJetEta(float fEta)
virtual double energy() const
energy
std::unique_ptr< reco::JetCorrectorImpl > make(edm::Event const &, edm::EventSetup const &)
void addDefault(ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &iDescriptions)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
L1FastjetCorrectorImplMaker(edm::ParameterSet const &, edm::ConsumesCollector)
std::shared_ptr< FactorizedJetCorrectorCalculator const > corrector_
virtual float jetArea() const
get jet area
static void addToDescription(edm::ParameterSetDescription &iDescription)
std::shared_ptr< FactorizedJetCorrectorCalculator const > getCalculator(edm::EventSetup const &, std::function< void(std::string const &)> levelCheck)