Template class of function object to translate missing transverse energy physics object to HitFit's Fourvec object. Users need to write an implementation of a template specialization of this class for their missing transverse energy physics object class, Then users combine this header file and their implementation for their analysis code. With this approach, it is possible to use HitFit for different missing transverse energy physics object class indifferent experiments. More...
#include <METTranslatorBase.h>
Public Member Functions | |
template<> | |
Resolution | KtResolution (const pat::MET &m, bool useObjEmbRes) const |
Resolution | KtResolution (const AMet &met, bool useObjEmbRes=false) const |
Return the resolution corresponding to an instance of missing transverse energy object. More... | |
template<> | |
Resolution | KtResolution (const CLHEP::HepLorentzVector &m, bool useObjEmbRes) const |
template<> | |
Resolution | METResolution (const pat::MET &m, bool useObjEmbRes) const |
Resolution | METResolution (const AMet &met, bool useObjEmbRes=false) const |
Alias for KtResolution(AMet& met) More... | |
template<> | |
Resolution | METResolution (const CLHEP::HepLorentzVector &m, bool useObjEmbRes) const |
template<> | |
METTranslatorBase () | |
template<> | |
METTranslatorBase (const std::string &ifile) | |
METTranslatorBase () | |
Default constructor. More... | |
METTranslatorBase (const std::string &ifile) | |
Constructor, instantiate a METTranslatorBase object using the name of and input file in std::string format. More... | |
template<> | |
METTranslatorBase () | |
template<> | |
METTranslatorBase (const std::string &ifile) | |
template<> | |
Fourvec | operator() (const pat::MET &m, bool useObjEmbRes) |
Fourvec | operator() (const AMet &met, bool useObjEmbRes=false) |
Convert a missing transverse energy object of type AMet into HitFit four-momentum object of type Fourvec. More... | |
template<> | |
Fourvec | operator() (const CLHEP::HepLorentzVector &m, bool useObjEmbRes) |
template<> | |
~METTranslatorBase () | |
~METTranslatorBase () | |
Destructor. More... | |
template<> | |
~METTranslatorBase () | |
Private Attributes | |
Resolution | resolution_ |
The resolution. More... | |
Template class of function object to translate missing transverse energy physics object to HitFit's Fourvec object. Users need to write an implementation of a template specialization of this class for their missing transverse energy physics object class, Then users combine this header file and their implementation for their analysis code. With this approach, it is possible to use HitFit for different missing transverse energy physics object class indifferent experiments.
AMet | The typename of the missing transverse energy physics object class be translated into HitFit's Fourvec. |
Definition at line 49 of file METTranslatorBase.h.
hitfit::METTranslatorBase< AMet >::METTranslatorBase | ( | ) |
Default constructor.
hitfit::METTranslatorBase< AMet >::METTranslatorBase | ( | const std::string & | ifile | ) |
Constructor, instantiate a METTranslatorBase object using the name of and input file in std::string format.
ifile | The path of the input file. |
hitfit::METTranslatorBase< AMet >::~METTranslatorBase | ( | ) |
Destructor.
hitfit::METTranslatorBase< CLHEP::HepLorentzVector >::METTranslatorBase | ( | ) |
Definition at line 156 of file CLHEPHitFitTranslator.cc.
References Resolution, and AlCaHLTBitMon_QueryRunRegistry::string.
hitfit::METTranslatorBase< CLHEP::HepLorentzVector >::METTranslatorBase | ( | const std::string & | ifile | ) |
Definition at line 161 of file CLHEPHitFitTranslator.cc.
References hitfit::Defaults_Text::get_string(), Resolution, and AlCaHLTBitMon_QueryRunRegistry::string.
hitfit::METTranslatorBase< CLHEP::HepLorentzVector >::~METTranslatorBase | ( | ) |
Definition at line 169 of file CLHEPHitFitTranslator.cc.
hitfit::METTranslatorBase< pat::MET >::METTranslatorBase | ( | ) |
Definition at line 26 of file PatMETHitFitTranslator.cc.
References Resolution, and AlCaHLTBitMon_QueryRunRegistry::string.
hitfit::METTranslatorBase< pat::MET >::METTranslatorBase | ( | const std::string & | ifile | ) |
Definition at line 31 of file PatMETHitFitTranslator.cc.
References hitfit::Defaults_Text::get_string(), Resolution, and AlCaHLTBitMon_QueryRunRegistry::string.
hitfit::METTranslatorBase< pat::MET >::~METTranslatorBase | ( | ) |
Definition at line 39 of file PatMETHitFitTranslator.cc.
Resolution hitfit::METTranslatorBase< pat::MET >::KtResolution | ( | const pat::MET & | m, |
bool | useObjEmbRes | ||
) | const |
Definition at line 51 of file PatMETHitFitTranslator.cc.
Resolution hitfit::METTranslatorBase< AMet >::KtResolution | ( | const AMet & | met, |
bool | useObjEmbRes = false |
||
) | const |
Return the resolution corresponding to an instance of missing transverse energy object.
met | The missing transverse energy object whose resolution is wished to be known. |
useObjEmbRes | Boolean parameter to indicate if the user would like to use the resolution embedded in the object, and not the resolution read when instantiating the class. |
Referenced by hitfit::RunHitFit< AElectron, AMuon, AJet, AMet >::SetMet().
Resolution hitfit::METTranslatorBase< CLHEP::HepLorentzVector >::KtResolution | ( | const CLHEP::HepLorentzVector & | m, |
bool | useObjEmbRes | ||
) | const |
Definition at line 180 of file CLHEPHitFitTranslator.cc.
Resolution hitfit::METTranslatorBase< pat::MET >::METResolution | ( | const pat::MET & | m, |
bool | useObjEmbRes | ||
) | const |
Definition at line 56 of file PatMETHitFitTranslator.cc.
Resolution hitfit::METTranslatorBase< AMet >::METResolution | ( | const AMet & | met, |
bool | useObjEmbRes = false |
||
) | const |
Alias for KtResolution(AMet& met)
met | The missing transverse energy object whose resolution is wished to be known. |
useObjEmbRes | Boolean parameter to indicate if the user would like to use the resolution embedded in the object, and not the resolution read when instantiating the class. |
Resolution hitfit::METTranslatorBase< CLHEP::HepLorentzVector >::METResolution | ( | const CLHEP::HepLorentzVector & | m, |
bool | useObjEmbRes | ||
) | const |
Definition at line 186 of file CLHEPHitFitTranslator.cc.
Fourvec hitfit::METTranslatorBase< pat::MET >::operator() | ( | const pat::MET & | m, |
bool | useObjEmbRes | ||
) |
Definition at line 42 of file PatMETHitFitTranslator.cc.
References multPhiCorr_741_25nsDY_cfi::px, reco::LeafCandidate::px(), multPhiCorr_741_25nsDY_cfi::py, reco::LeafCandidate::py(), and mathSSE::sqrt().
Fourvec hitfit::METTranslatorBase< AMet >::operator() | ( | const AMet & | met, |
bool | useObjEmbRes = false |
||
) |
Convert a missing transverse energy object of type AMet into HitFit four-momentum object of type Fourvec.
met | The missing transverse energy object to be translated. |
useObjEmbRes | Boolean parameter to indicate if the user would like to use the resolution embedded in the object, and not the resolution read when instantiating the class. |
Fourvec hitfit::METTranslatorBase< CLHEP::HepLorentzVector >::operator() | ( | const CLHEP::HepLorentzVector & | m, |
bool | useObjEmbRes | ||
) |
Definition at line 173 of file CLHEPHitFitTranslator.cc.
|
private |
The resolution.
Definition at line 110 of file METTranslatorBase.h.