21 #include "CLHEP/Vector/LorentzVector.h" 35 std::string(
"/src/TopQuarkAnalysis/TopHitFit/data/exampleElectronResolution.txt");
49 resolution_filename = CMSSW_BASE +
50 std::string(
"/src/TopQuarkAnalysis/TopHitFit/data/exampleElectronResolution.txt");
52 resolution_filename =
ifile ;
73 Fourvec p(lepton.px(),lepton.py(),lepton.pz(),lepton.e());
75 double lepton_eta(lepton.eta());
97 return resolution_.CheckEta(lepton.eta());
106 std::string udsc_resolution_filename = CMSSW_BASE +
107 std::string(
"/src/TopQuarkAnalysis/TopHitFit/data/exampleJetResolution.txt");
108 std::string b_resolution_filename = udsc_resolution_filename;
125 if (udscFile.empty()) {
126 udsc_resolution_filename = CMSSW_BASE +
127 std::string(
"/src/TopQuarkAnalysis/TopHitFit/data/exampleJetResolution.txt");
129 udsc_resolution_filename = udscFile;
133 b_resolution_filename = CMSSW_BASE +
134 std::string(
"/src/TopQuarkAnalysis/TopHitFit/data/exampleJetResolution.txt");
136 b_resolution_filename = bFile;
158 Fourvec p(jet.px(),jet.py(),jet.pz(),jet.e());
160 double jet_eta = jet.eta();
164 jet_resolution = bResolution_.GetResolution(jet_eta);
166 jet_resolution = udscResolution_.GetResolution(jet_eta);
181 return udscResolution_;
197 return udscResolution_.CheckEta(jet.eta()) && bResolution_.CheckEta(jet.eta());
230 return Fourvec (m.px(),m.py(),0.0,m.e());
239 bool useObjEmbRes )
const 249 bool useObjEmbRes )
const 251 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.