22 #include "CLHEP/Vector/LorentzVector.h"
36 std::string(
"/src/TopQuarkAnalysis/TopHitFit/data/exampleElectronResolution.txt");
50 resolution_filename = CMSSW_BASE +
51 std::string(
"/src/TopQuarkAnalysis/TopHitFit/data/exampleElectronResolution.txt");
53 resolution_filename =
ifile ;
74 Fourvec p(lepton.px(),lepton.py(),lepton.pz(),lepton.e());
76 double lepton_eta(lepton.eta());
98 return resolution_.CheckEta(lepton.eta());
107 std::string udsc_resolution_filename = CMSSW_BASE +
108 std::string(
"/src/TopQuarkAnalysis/TopHitFit/data/exampleJetResolution.txt");
109 std::string b_resolution_filename = udsc_resolution_filename;
126 if (udscFile.empty()) {
127 udsc_resolution_filename = CMSSW_BASE +
128 std::string(
"/src/TopQuarkAnalysis/TopHitFit/data/exampleJetResolution.txt");
130 udsc_resolution_filename = udscFile;
134 b_resolution_filename = CMSSW_BASE +
135 std::string(
"/src/TopQuarkAnalysis/TopHitFit/data/exampleJetResolution.txt");
137 b_resolution_filename = bFile;
159 Fourvec p(jet.px(),jet.py(),jet.pz(),jet.e());
161 double jet_eta = jet.eta();
165 jet_resolution = bResolution_.GetResolution(jet_eta);
167 jet_resolution = udscResolution_.GetResolution(jet_eta);
182 return udscResolution_;
198 return udscResolution_.CheckEta(jet.eta()) && bResolution_.CheckEta(jet.eta());
231 return Fourvec (m.px(),m.py(),0.0,m.e());
240 bool useObjEmbRes )
const
250 bool useObjEmbRes )
const
252 return KtResolution(m,useObjEmbRes);
const EtaDepResolution & bResolution() const
Return the dependent resolution for jets.
Represent a lepton in an instance of Lepjets_Event class. This class hold the following information: ...
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...
JetTranslatorBase()
Default constructor.
Calculate and represent resolution for a physical quantity.
~METTranslatorBase()
Destructor.
Lepjets_Event_Lep operator()(const ALepton &lepton, int type=hitfit::lepton_label, bool useObjEmbRes=false)
Convert a lepton physics object of type ALepton into HitFit lepton physics object of type Lepjets_Eve...
A lightweight implementation of the Defaults interface that uses simple ASCII text files...
~LeptonTranslatorBase()
Destructor.
bool CheckEta(const ALepton &lepton) const
Check if a lepton has value which is within the valid range of the resolution.
Resolution KtResolution(const AMet &met, bool useObjEmbRes=false) const
Return the resolution corresponding to an instance of missing transverse energy object.
const EtaDepResolution & resolution() const
Return the dependent resolution of the lepton.
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 ...
Resolution METResolution(const AMet &met, bool useObjEmbRes=false) const
Alias for KtResolution(AMet& met)
METTranslatorBase()
Default constructor.
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.
CLHEP::HepLorentzVector Fourvec
Typedef for a HepLorentzVector.
Template class of function object to translate missing transverse energy object to HitFit's Fourvec o...
A class to represent a jet in an instance of Lepjets_Event class. The class is derived from the Lepje...
Template class of function object to translate jet physics object to HitFit's Lepjets_Event_Jet objec...
~JetTranslatorBase()
Destructor.
Template class of function object to translate lepton physics object to HitFit's Lepjets_Event_Lep ob...
virtual std::string get_string(std::string name) const
LeptonTranslatorBase()
Default constructor.
Calculate and represent resolution for a vector of , pseudorapidity , and azimuthal angle ...
bool CheckEta(const AJet &jet) const
Check if a jet has value which is within the valid range of the resolution.