Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-07-30 02:33:12

0001 //
0002 // This is the type returned by jet correctors
0003 //
0004 // Igor Volobouev
0005 // Aug 3, 2012
0006 //
0007 
0008 #ifndef JetMETCorrections_FFTJetObjects_FFTJetCorrectorResult_h
0009 #define JetMETCorrections_FFTJetObjects_FFTJetCorrectorResult_h
0010 
0011 #include "DataFormats/Math/interface/LorentzVector.h"
0012 
0013 class FFTJetCorrectorResult {
0014 public:
0015   typedef math::XYZTLorentzVector LorentzVector;
0016 
0017   inline FFTJetCorrectorResult(const LorentzVector& v, const double correctionScale, const double systematicUncertainty)
0018       : vec_(v), scale_(correctionScale), sigma_(systematicUncertainty) {}
0019   FFTJetCorrectorResult() = delete;
0020 
0021   inline const LorentzVector& vec() const { return vec_; }
0022   inline double scale() const { return scale_; }
0023   inline double sigma() const { return sigma_; }
0024 
0025   inline void setVec(const LorentzVector& v) { vec_ = v; }
0026   inline void setScale(const double s) { scale_ = s; }
0027   inline void setSigma(const double s) { sigma_ = s; }
0028 
0029 private:
0030   LorentzVector vec_;
0031   double scale_;
0032   double sigma_;
0033 };
0034 
0035 #endif  // JetMETCorrections_FFTJetObjects_FFTJetCorrectorResult_h