21 #include "CLHEP/Vector/LorentzVector.h" 49 resolution_filename =
ifile;
63 Fourvec p(lepton.px(), lepton.py(), lepton.pz(), lepton.e());
65 double lepton_eta(lepton.eta());
79 return resolution_.CheckEta(lepton.eta());
88 const std::string& b_resolution_filename = udsc_resolution_filename;
102 if (udscFile.empty()) {
103 udsc_resolution_filename =
106 udsc_resolution_filename = udscFile;
110 b_resolution_filename =
CMSSW_BASE +
std::string(
"/src/TopQuarkAnalysis/TopHitFit/data/exampleJetResolution.txt");
112 b_resolution_filename = bFile;
127 bool useObjEmbRes ) {
130 double jet_eta =
jet.eta();
134 jet_resolution = bResolution_.GetResolution(jet_eta);
136 jet_resolution = udscResolution_.GetResolution(jet_eta);
146 return udscResolution_;
156 return udscResolution_.CheckEta(
jet.eta()) && bResolution_.CheckEta(
jet.eta());
178 bool useObjEmbRes ) {
185 bool useObjEmbRes )
const {
191 bool useObjEmbRes )
const {
192 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 ...