CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
JetTranslatorBase.h
Go to the documentation of this file.
1 //
2 // $Id: JetTranslatorBase.h,v 1.3 2011/07/11 07:59:12 mseidel Exp $
3 //
4 
20 #ifndef HitFit_JetTranslatorBase_h
21 #define HitFit_JetTranslatorBase_h
22 
26 
27 namespace hitfit{
28 
29 
45  template <class AJet>
47 
48  public:
49 
54 
66  JetTranslatorBase(const std::string& udscFile,
67  const std::string& bFile);
68 
86  JetTranslatorBase(const std::string& udscFile,
87  const std::string& bFile,
88  const std::string& jetCorrectionLevel,
89  double jes,
90  double jesB);
91 
96 
112  Lepjets_Event_Jet operator()(const AJet& jet,
114  bool useObjEmbRes = false);
115 
120  const EtaDepResolution& udscResolution() const;
121 
126  const EtaDepResolution& bResolution() const;
127 
134  bool CheckEta(const AJet& jet) const;
135 
136 
137  private:
138 
143 
148 
152  std::string jetCorrectionLevel_;
153 
157  double jes_;
158 
162  double jesB_;
163 
164  };
165 
166 } // namespace hitfit
167 
168 #endif // #ifndef HitFit_JetTranslatorBase_h
type
Definition: HCALResponse.h:22
const EtaDepResolution & bResolution() const
Return the dependent resolution for jets.
Define three-vector and four-vector classes for the HitFit package, and supply a few additional opera...
JetTranslatorBase()
Default constructor.
double jes_
The jet energy scale.
EtaDepResolution udscResolution_
The dependent resolution for $udsc$ jets.
const EtaDepResolution & udscResolution() const
Return the dependent resolution for jets.
Hold on to -dependent resolution. This class acts as a function object and returns Vector_Resolution ...
Represent a jet in an instance of Lepjets_Event class.
Lepjets_Event_Jet operator()(const AJet &jet, int type=hitfit::unknown_label, bool useObjEmbRes=false)
Convert a jet physics object of type AJet into HitFit jet physics object of type Lepjets_Event_Jet. This operator must be able to apply the appropriate jet energy correction in accord with the type of the jet.
A class to represent a jet in an instance of Lepjets_Event class. The class is derived from the Lepje...
std::string jetCorrectionLevel_
The jet correction level.
~JetTranslatorBase()
Destructor.
Hold on to -dependent resolution. This class acts as a function object and returns Vector_Resolution ...
EtaDepResolution bResolution_
The dependent resolution for $b$ jets.
Template class of function object to translate jet physics object to HitFit&#39;s Lepjets_Event_Jet objec...
bool CheckEta(const AJet &jet) const
Check if a jet has value which is within the valid range of the resolution.
double jesB_
The b-jet energy scale.