CMS 3D CMS Logo

METTranslatorBase.h
Go to the documentation of this file.
1 //
2 //
3 // File : interface/METTranslatorBase.h
4 // Author : Haryo Sumowidagdo <Suharyo.Sumowidagdo@cern.ch>
5 // Purpose: Template class of function object to translate missing transverse
6 // energy physics object to HitFit's Fourvec object.
7 //
8 
24 #ifndef HitFit_METTranslatorBase_h
25 #define HitFit_METTranslatorBase_h
26 
29 
30 namespace hitfit {
31 
48  template <class AMet>
50  public:
55 
63 
68 
79  Fourvec operator()(const AMet& met, bool useObjEmbRes = false);
80 
92  Resolution KtResolution(const AMet& met, bool useObjEmbRes = false) const;
93 
104  Resolution METResolution(const AMet& met, bool useObjEmbRes = false) const;
105 
106  private:
111  };
112 
113 } // namespace hitfit
114 
115 #endif // #ifndef HitFit_METTranslatorBase_h
hitfit::METTranslatorBase::resolution_
Resolution resolution_
The resolution.
Definition: METTranslatorBase.h:110
hitfit
Definition: Base_Constrainer.h:43
hitfit::Fourvec
CLHEP::HepLorentzVector Fourvec
Typedef for a HepLorentzVector.
Definition: fourvec.h:55
EtaDepResolution.h
Hold on to -dependent resolution. This class acts as a function object and returns Vector_Resolution ...
hitfit::METTranslatorBase
Template class of function object to translate missing transverse energy physics object to HitFit's F...
Definition: METTranslatorBase.h:49
BTaggingMonitor_cfi.met
met
Definition: BTaggingMonitor_cfi.py:84
hitfit::METTranslatorBase::METResolution
Resolution METResolution(const AMet &met, bool useObjEmbRes=false) const
Alias for KtResolution(AMet& met)
compare_using_db.ifile
ifile
Definition: compare_using_db.py:251
hitfit::METTranslatorBase::operator()
Fourvec operator()(const AMet &met, bool useObjEmbRes=false)
Convert a missing transverse energy object of type AMet into HitFit four-momentum object of type Four...
hitfit::METTranslatorBase::METTranslatorBase
METTranslatorBase()
Default constructor.
hitfit::Resolution
Definition: Resolution.h:98
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
hitfit::METTranslatorBase::~METTranslatorBase
~METTranslatorBase()
Destructor.
hitfit::METTranslatorBase::KtResolution
Resolution KtResolution(const AMet &met, bool useObjEmbRes=false) const
Return the resolution corresponding to an instance of missing transverse energy object.
fourvec.h
Define three-vector and four-vector classes for the HitFit package, and supply a few additional opera...