CMS 3D CMS Logo

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,
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
TtSemiLepHitFitProducer_Electrons_cfi.jes
jes
Definition: TtSemiLepHitFitProducer_Electrons_cfi.py:48
hitfit
Definition: Base_Constrainer.h:43
EtaDepResolution.h
Hold on to -dependent resolution. This class acts as a function object and returns Vector_Resolution ...
hitfit::EtaDepResolution
Hold on to -dependent resolution. This class acts as a function object and returns Vector_Resolution ...
Definition: EtaDepResolution.h:86
hitfit::JetTranslatorBase::~JetTranslatorBase
~JetTranslatorBase()
Destructor.
hitfit::JetTranslatorBase::CheckEta
bool CheckEta(const AJet &jet) const
Check if a jet has value which is within the valid range of the resolution.
hitfit::Lepjets_Event_Jet
A class to represent a jet in an instance of Lepjets_Event class. The class is derived from the Lepje...
Definition: Lepjets_Event_Jet.h:76
TtSemiLepHitFitProducer_Electrons_cfi.jetCorrectionLevel
jetCorrectionLevel
Definition: TtSemiLepHitFitProducer_Electrons_cfi.py:43
TtSemiLepHitFitProducer_Electrons_cfi.jesB
jesB
Definition: TtSemiLepHitFitProducer_Electrons_cfi.py:49
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
hitfit::JetTranslatorBase::JetTranslatorBase
JetTranslatorBase()
Default constructor.
hitfit::JetTranslatorBase::jes_
double jes_
The jet energy scale.
Definition: JetTranslatorBase.h:148
hitfit::JetTranslatorBase::jesB_
double jesB_
The b-jet energy scale.
Definition: JetTranslatorBase.h:153
hitfit::JetTranslatorBase::udscResolution
const EtaDepResolution & udscResolution() const
Return the dependent resolution for jets.
hitfit::JetTranslatorBase::udscResolution_
EtaDepResolution udscResolution_
The dependent resolution for $udsc$ jets.
Definition: JetTranslatorBase.h:133
hitfit::JetTranslatorBase::bResolution
const EtaDepResolution & bResolution() const
Return the dependent resolution for jets.
hitfit::JetTranslatorBase::jetCorrectionLevel_
std::string jetCorrectionLevel_
The jet correction level.
Definition: JetTranslatorBase.h:143
hitfit::JetTranslatorBase
Template class of function object to translate jet physics object to HitFit's Lepjets_Event_Jet objec...
Definition: JetTranslatorBase.h:44
hitfit::JetTranslatorBase::bResolution_
EtaDepResolution bResolution_
The dependent resolution for $b$ jets.
Definition: JetTranslatorBase.h:138
type
type
Definition: HCALResponse.h:21
metsig::jet
Definition: SignAlgoResolutions.h:47
fourvec.h
Define three-vector and four-vector classes for the HitFit package, and supply a few additional opera...
hitfit::JetTranslatorBase::operator()
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....
Lepjets_Event_Jet.h
Represent a jet in an instance of Lepjets_Event class.
hitfit::unknown_label
Definition: Lepjets_Event_Jet.h:61