CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SmearedJetProducer.cc
Go to the documentation of this file.
2 
5 
7 
11 
12 namespace SmearedJetProducer_namespace
13 {
14  template <>
16  {
17  public:
18 
20  : jetResolutions_(cfg)
21  {}
23 
24  double operator()(const reco::PFJet& jet) const
25  {
26  metsig::SigInputObj pfJetResolution = jetResolutions_.evalPFJet(&jet);
27  if ( pfJetResolution.get_energy() > 0. ) {
28  return jet.energy()*(pfJetResolution.get_sigma_e()/pfJetResolution.get_energy());
29  } else {
30  return 0.;
31  }
32  }
33 
35  };
36 }
37 
40 
42 
virtual double energy() const GCC11_FINAL
energy
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
SmearedJetProducerT< reco::CaloJet, JetCorrExtractorT< reco::CaloJet > > SmearedCaloJetProducer
Jets made from PFObjects.
Definition: PFJet.h:21
SmearedJetProducerT< reco::PFJet, JetCorrExtractorT< reco::PFJet > > SmearedPFJetProducer
double get_energy() const
Definition: SigInputObj.h:43
double get_sigma_e() const
Definition: SigInputObj.h:45