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 //
3 
19 #ifndef HitFit_JetTranslatorBase_h
20 #define HitFit_JetTranslatorBase_h
21 
25 
26 namespace hitfit{
27 
28 
44  template <class AJet>
46 
47  public:
48 
53 
65  JetTranslatorBase(const std::string& udscFile,
66  const std::string& bFile);
67 
85  JetTranslatorBase(const std::string& udscFile,
86  const std::string& bFile,
87  const std::string& jetCorrectionLevel,
88  double jes,
89  double jesB);
90 
95 
111  Lepjets_Event_Jet operator()(const AJet& jet,
113  bool useObjEmbRes = false);
114 
119  const EtaDepResolution& udscResolution() const;
120 
125  const EtaDepResolution& bResolution() const;
126 
133  bool CheckEta(const AJet& jet) const;
134 
135 
136  private:
137 
142 
147 
152 
156  double jes_;
157 
161  double jesB_;
162 
163  };
164 
165 } // namespace hitfit
166 
167 #endif // #ifndef HitFit_JetTranslatorBase_h
type
Definition: HCALResponse.h:21
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.