CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
METTranslatorBase.h
Go to the documentation of this file.
1 //
2 // $Id: METTranslatorBase.h,v 1.1 2011/05/26 09:46:53 mseidel Exp $
3 //
4 // File : interface/METTranslatorBase.h
5 // Author : Haryo Sumowidagdo <Suharyo.Sumowidagdo@cern.ch>
6 // Purpose: Template class of function object to translate missing transverse
7 // energy physics object to HitFit's Fourvec object.
8 //
9 
25 #ifndef HitFit_METTranslatorBase_h
26 #define HitFit_METTranslatorBase_h
27 
30 
31 namespace hitfit{
32 
33 
50  template <class AMet>
52 
53  public:
54 
59 
67 
72 
83  Fourvec operator() (const AMet& met,
84  bool useObjEmbRes = false);
85 
97  Resolution KtResolution(const AMet& met,
98  bool useObjEmbRes = false) const;
99 
110  Resolution METResolution(const AMet& met,
111  bool useObjEmbRes = false) const;
112 
113 
114  private:
115 
120 
121  };
122 
123 } // namespace hitfit
124 
125 #endif // #ifndef HitFit_METTranslatorBase_h
Template class of function object to translate missing transverse energy physics object to HitFit&#39;s F...
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...
Define three-vector and four-vector classes for the HitFit package, and supply a few additional opera...
Calculate and represent resolution for a physical quantity.
Definition: Resolution.h:103
~METTranslatorBase()
Destructor.
Resolution KtResolution(const AMet &met, bool useObjEmbRes=false) const
Return the resolution corresponding to an instance of missing transverse energy object.
Resolution METResolution(const AMet &met, bool useObjEmbRes=false) const
Alias for KtResolution(AMet&amp; met)
METTranslatorBase()
Default constructor.
CLHEP::HepLorentzVector Fourvec
Typedef for a HepLorentzVector.
Definition: fourvec.h:58
Hold on to -dependent resolution. This class acts as a function object and returns Vector_Resolution ...
Resolution resolution_
The resolution.