26 mOffsetService = fConfig.
getParameter<std::string>(
"offsetService");
28 if (mOffsetService !=
"")
32 vector<JetCorrectorParameters> vParam;
33 vParam.push_back(fParam);
49 <<
"Wrong interface correction(LorentzVector), event required!";
58 <<
"Wrong interface correction(reco::Jet), event required!";
76 offset = OffsetCorrector->
correction(*rawcalojet,fEvent,fSetup);
79 TLorentzVector JPTrawP4(rawcalojet->
px(),rawcalojet->
py(),rawcalojet->
pz(),rawcalojet->
energy());
80 mCorrector->setJPTrawP4(JPTrawP4);
81 mCorrector->setJPTrawOff(offset);
82 mCorrector->setJetE(fJet.
energy());
83 result = mCorrector->getCorrection();
T getParameter(std::string const &) const
Jets made from CaloTowers.
virtual double correction(const LorentzVector &fJet) const =0
get correction using Jet information only
Base class for all types of Jets.
const Definitions & definitions() const
virtual ~L1JPTOffsetCorrector()
const edm::RefToBase< reco::Jet > & getCaloJetRef() const
virtual double correction(const LorentzVector &fJet) const
get correction using Jet information only
L1JPTOffsetCorrector(const JetCorrectorParameters &fConfig, const edm::ParameterSet &fParameters)
virtual double energy() const
energy
Jets made from CaloJets corrected for ZSP and tracks.
unsigned int offset(bool)
std::string level() const
virtual double px() const
x coordinate of momentum vector
static const JetCorrector * getJetCorrector(const std::string &fName, const edm::EventSetup &fSetup)
retrieve corrector from the event setup. troughs exception if something is missing ...
virtual double pz() const
z coordinate of momentum vector
virtual double py() const
y coordinate of momentum vector
reco::Particle::LorentzVector LorentzVector