12 namespace SmearedJetProducer_namespace
22 TString dRmaxGenJetMatch_formula = cfg.
getParameter<std::string>(
"dRmaxGenJetMatch").
data();
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
const reco::GenJet * genJet() const
return the matched generated jet
const PFSpecific & pfSpecific() const
retrieve the pf specific part of the jet
virtual const Point & vertex() const
vertex position
#define DEFINE_FWK_MODULE(type)
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_
virtual double pt() const
transverse momentum
Analysis-level calorimeter jet class.
GenJetMatcherT(const edm::ParameterSet &cfg)
char data[epos_bytes_allocation]
SmearedJetProducerT< pat::Jet, PATJetCorrExtractor > SmearedPATJetProducer
virtual const LorentzVector & p4() const
four-momentum Lorentz vector
virtual Constituents getJetConstituents() const
list of constituents