|
|
Go to the documentation of this file.
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);
CLHEP::HepLorentzVector Fourvec
Typedef for a HepLorentzVector.
std::string get_string(std::string name) const override
Hold on to -dependent resolution. This class acts as a function object and returns Vector_Resolution ...
LeptonTranslatorBase()
Default constructor.
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...
const EtaDepResolution & resolution() const
Return the dependent resolution of the lepton.
~JetTranslatorBase()
Destructor.
bool CheckEta(const AJet &jet) const
Check if a jet has value which is within the valid range of the resolution.
Template class of function object to translate missing transverse energy object to HitFit's Fourvec o...
Resolution METResolution(const AMet &met, bool useObjEmbRes=false) const
Alias for KtResolution(AMet& met)
Template class of function object to translate lepton physics object to HitFit's Lepjets_Event_Lep ob...
A class to represent a jet in an instance of Lepjets_Event class. The class is derived from the Lepje...
A lightweight implementation of the Defaults interface that uses simple ASCII text files.
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...
Template class of function object to translate jet physics object to HitFit's Lepjets_Event_Jet objec...
METTranslatorBase()
Default constructor.
JetTranslatorBase()
Default constructor.
~LeptonTranslatorBase()
Destructor.
const EtaDepResolution & udscResolution() const
Return the dependent resolution for jets.
bool CheckEta(const ALepton &lepton) const
Check if a lepton has value which is within the valid range of the resolution.
const EtaDepResolution & bResolution() const
Return the dependent resolution for jets.
~METTranslatorBase()
Destructor.
Resolution KtResolution(const AMet &met, bool useObjEmbRes=false) const
Return the resolution corresponding to an instance of missing transverse energy object.
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....
Represent a lepton in an instance of Lepjets_Event class. This class hold the following information: