21 #include "CLHEP/Vector/LorentzVector.h" 47 resolution_filename =
ifile;
61 Fourvec p(lepton.px(), lepton.py(), lepton.pz(), lepton.e());
63 double lepton_eta(lepton.eta());
77 return resolution_.CheckEta(lepton.eta());
85 const std::string& b_resolution_filename = udsc_resolution_filename;
98 if (udscFile.empty()) {
99 udsc_resolution_filename =
102 udsc_resolution_filename = udscFile;
106 b_resolution_filename =
CMSSW_BASE +
std::string(
"/src/TopQuarkAnalysis/TopHitFit/data/exampleJetResolution.txt");
108 b_resolution_filename = bFile;
123 bool useObjEmbRes ) {
126 double jet_eta =
jet.eta();
130 jet_resolution = bResolution_.GetResolution(jet_eta);
132 jet_resolution = udscResolution_.GetResolution(jet_eta);
142 return udscResolution_;
152 return udscResolution_.CheckEta(
jet.eta()) && bResolution_.CheckEta(
jet.eta());
174 bool useObjEmbRes ) {
181 bool useObjEmbRes )
const {
187 bool useObjEmbRes )
const {
188 return KtResolution(
m, useObjEmbRes);
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.
std::string get_string(std::string name) const override
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.
Resolution KtResolution(const AMet &met, bool useObjEmbRes=false) const
Return the resolution corresponding to an instance of missing transverse energy object.
Hold on to -dependent resolution. This class acts as a function object and returns Vector_Resolution ...
const EtaDepResolution & bResolution() const
Return the dependent resolution for jets.
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...
bool CheckEta(const AJet &jet) const
Check if a jet has value which is within the valid range of the resolution.
bool CheckEta(const ALepton &lepton) const
Check if a lepton has value which is within the valid range of the resolution.
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...
Resolution METResolution(const AMet &met, bool useObjEmbRes=false) const
Alias for KtResolution(AMet& met)
const EtaDepResolution & resolution() const
Return the dependent resolution of the lepton.
const EtaDepResolution & udscResolution() const
Return the dependent resolution for jets.
LeptonTranslatorBase()
Default constructor.
Calculate and represent resolution for a vector of , pseudorapidity , and azimuthal angle ...