1 #ifndef FastJetStability_CmsLikeJetSmear_h
2 #define FastJetStability_CmsLikeJetSmear_h
4 #include "AbsSmearJet.hh"
5 #include "CmsLikeJetEfficiency.h"
20 inline virtual void initialize(
const Event &ev,
const StabilityEventInfo &info)
22 this->getEvent().clear();
23 this->getInfo().clear();
24 if ( m_runEfficiency ) {
26 m_eff.setFriendlyInfo( this->getInfo() );
27 m_eff.
smear(this->getEvent());
29 this->getEvent() = ev;
30 this->getInfo() = info;
40 inline double ecalEtUncertainty(
const double Et)
const
42 return calorimeterEtUncertainty(m_ecalStochasticTerm, m_ecalNoiseTerm,
43 m_ecalConstantTerm, Et);
46 inline double hcalEtUncertainty(
const double Et)
const
48 return calorimeterEtUncertainty(m_hcalStochasticTerm, m_hcalNoiseTerm,
49 m_hcalConstantTerm, Et);
53 virtual void processPhoton(
const PseudoJet& in,
const StabilityUserInfo &info,
54 ParticleCollection* out
56 virtual void processTrack(
const PseudoJet& in,
const StabilityUserInfo &info,
57 ParticleCollection* out
59 virtual void processNeutralHadron(
const PseudoJet& in,
const StabilityUserInfo &info,
60 ParticleCollection* out
66 double m_ecalStochasticTerm;
67 double m_ecalNoiseTerm;
68 double m_ecalConstantTerm;
71 double m_hcalStochasticTerm;
72 double m_hcalNoiseTerm;
73 double m_hcalConstantTerm;
76 double m_trackPtResolution;
79 double m_angularResolutionPhoton;
80 double m_angularResolutionNeutralHadron;
81 double m_angularResolutionTrack;
83 bool m_onlyPositivePt;
86 CmsLikeJetEfficiency m_eff;
virtual void initialize(const Event &ev, const StabilityEventInfo &info)
override derived initialze to run the efficiency on the event first
virtual void smear(Event &)
smear the event, return the smeared event via the function argument.
virtual void initialize(const Event &ev, const StabilityEventInfo &info)
initialize the smearing agent with the initial event