12 namespace SmearedJetProducer_namespace
23 dRmaxGenJetMatch_formula.ReplaceAll(
"genJetPt",
"x");
24 dRmaxGenJetMatch_ =
new TFormula(
"dRmaxGenJetMatch", dRmaxGenJetMatch_formula.Data());
44 if ( dR < dRmaxGenJetMatch_->Eval(genJet->
pt()) ) retVal = genJet;
61 : jetResolutions_(cfg)
70 if ( pfJetResolution.get_energy() > 0. ) {
71 return jet.
energy()*(pfJetResolution.get_sigma_e()/pfJetResolution.get_energy());
77 <<
" Jets of type other than PF not supported yet !!\n";
T getParameter(std::string const &) const
virtual float pt() const
transverse momentum
const PFSpecific & pfSpecific() const
retrieve the pf specific part of the jet
virtual const Point & vertex() const
vertex position (overwritten by PF...)
#define DEFINE_FWK_MODULE(type)
virtual Constituents getJetConstituents() const
list of constituents
GenJetMatcherT(const edm::ParameterSet &cfg, edm::ConsumesCollector &&iC)
Jets made from PFObjects.
virtual double energy() const
energy
TFormula * dRmaxGenJetMatch_
Jets made from MC generator particles.
bool isPFJet() const
check to see if the jet is a reco::PFJet
double deltaR(double eta1, double eta2, double phi1, double phi2)
const reco::GenJet * operator()(const pat::Jet &jet, edm::Event *evt=0) const
TFormula * dRmaxGenJetMatch_
Analysis-level calorimeter jet class.
char data[epos_bytes_allocation]
const reco::GenJet * genJet() const
return the matched generated jet
SmearedJetProducerT< pat::Jet, PATJetCorrExtractor > SmearedPATJetProducer
virtual const LorentzVector & p4() const
four-momentum Lorentz vector