CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
JetTranslatorBase.h
Go to the documentation of this file.
1 //
2 //
3 
19 #ifndef HitFit_JetTranslatorBase_h
20 #define HitFit_JetTranslatorBase_h
21 
25 
26 namespace hitfit {
27 
43  template <class AJet>
45  public:
50 
62  JetTranslatorBase(const std::string& udscFile, const std::string& bFile);
63 
81  JetTranslatorBase(const std::string& udscFile,
82  const std::string& bFile,
83  const std::string& jetCorrectionLevel,
84  double jes,
85  double jesB);
86 
91 
107  Lepjets_Event_Jet operator()(const AJet& jet, int type = hitfit::unknown_label, bool useObjEmbRes = false);
108 
113  const EtaDepResolution& udscResolution() const;
114 
119  const EtaDepResolution& bResolution() const;
120 
127  bool CheckEta(const AJet& jet) const;
128 
129  private:
134 
139 
144 
148  double jes_;
149 
153  double jesB_;
154  };
155 
156 } // namespace hitfit
157 
158 #endif // #ifndef HitFit_JetTranslatorBase_h
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.