Template class of function object to translate jet physics object to HitFit's Lepjets_Event_Jet object. Users need to write an implementation of a template specialization of this class for their jet 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 jet physics object class in different experiments. More...
#include <JetTranslatorBase.h>
Public Member Functions | |
const EtaDepResolution & | bResolution () const |
Return the dependent resolution for jets. More... | |
template<> | |
const EtaDepResolution & | bResolution () const |
template<> | |
const EtaDepResolution & | bResolution () const |
bool | CheckEta (const AJet &jet) const |
Check if a jet has value which is within the valid range of the resolution. More... | |
template<> | |
bool | CheckEta (const pat::Jet &jet) const |
template<> | |
bool | CheckEta (const CLHEP::HepLorentzVector &jet) const |
template<> | |
JetTranslatorBase () | |
template<> | |
JetTranslatorBase (const std::string &udscFile, const std::string &bFile) | |
JetTranslatorBase () | |
Default constructor. More... | |
JetTranslatorBase (const std::string &udscFile, const std::string &bFile) | |
Constructor, instantiate a JetTranslatorBase object using the names of input files in std::string format. More... | |
template<> | |
JetTranslatorBase (const std::string &udscFile, const std::string &bFile, const std::string &jetCorrectionLevel, double jes, double jesB) | |
JetTranslatorBase (const std::string &udscFile, const std::string &bFile, const std::string &jetCorrectionLevel, double jes, double jesB) | |
Constructor, instantiate a JetTranslatorBase object using the names of input files in std::string format. More... | |
template<> | |
JetTranslatorBase () | |
template<> | |
JetTranslatorBase (const std::string &udscFile, const std::string &bFile) | |
template<> | |
Lepjets_Event_Jet | operator() (const pat::Jet &jet, int type, bool useObjEmbRes) |
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. More... | |
template<> | |
Lepjets_Event_Jet | operator() (const CLHEP::HepLorentzVector &jet, int type, bool useObjEmbRes) |
const EtaDepResolution & | udscResolution () const |
Return the dependent resolution for jets. More... | |
template<> | |
const EtaDepResolution & | udscResolution () const |
template<> | |
const EtaDepResolution & | udscResolution () const |
~JetTranslatorBase () | |
Destructor. More... | |
template<> | |
~JetTranslatorBase () | |
template<> | |
~JetTranslatorBase () | |
Private Attributes | |
EtaDepResolution | bResolution_ |
The dependent resolution for $b$ jets. More... | |
double | jes_ |
The jet energy scale. More... | |
double | jesB_ |
The b-jet energy scale. More... | |
std::string | jetCorrectionLevel_ |
The jet correction level. More... | |
EtaDepResolution | udscResolution_ |
The dependent resolution for $udsc$ jets. More... | |
Template class of function object to translate jet physics object to HitFit's Lepjets_Event_Jet object. Users need to write an implementation of a template specialization of this class for their jet 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 jet physics object class in different experiments.
AJet | The typename of the jet physics object class to be translated into HitFit's Lepjets_Event_Jet. |
Definition at line 44 of file JetTranslatorBase.h.
hitfit::JetTranslatorBase< AJet >::JetTranslatorBase | ( | ) |
Default constructor.
hitfit::JetTranslatorBase< AJet >::JetTranslatorBase | ( | const std::string & | udscFile, |
const std::string & | bFile | ||
) |
Constructor, instantiate a JetTranslatorBase object using the names of input files in std::string format.
udscFile | The path of the input file containing resolution for jets. |
bFile | The path of the input file containing resolution for jets. |
hitfit::JetTranslatorBase< AJet >::JetTranslatorBase | ( | const std::string & | udscFile, |
const std::string & | bFile, | ||
const std::string & | jetCorrectionLevel, | ||
double | jes, | ||
double | jesB | ||
) |
Constructor, instantiate a JetTranslatorBase object using the names of input files in std::string format.
udscFile | The path of the input file containing resolution for jets. |
bFile | The path of the input file containing resolution for jets. |
jetCorrectionLevel | The jet correction level. |
jes | The jet energy scale. |
jesB | The b-jet energy scale. |
hitfit::JetTranslatorBase< AJet >::~JetTranslatorBase | ( | ) |
Destructor.
hitfit::JetTranslatorBase< CLHEP::HepLorentzVector >::JetTranslatorBase | ( | ) |
Definition at line 83 of file CLHEPHitFitTranslator.cc.
hitfit::JetTranslatorBase< CLHEP::HepLorentzVector >::JetTranslatorBase | ( | const std::string & | udscFile, |
const std::string & | bFile | ||
) |
Definition at line 96 of file CLHEPHitFitTranslator.cc.
hitfit::JetTranslatorBase< CLHEP::HepLorentzVector >::~JetTranslatorBase | ( | ) |
Definition at line 121 of file CLHEPHitFitTranslator.cc.
hitfit::JetTranslatorBase< pat::Jet >::JetTranslatorBase | ( | ) |
Definition at line 21 of file PatJetHitFitTranslator.cc.
hitfit::JetTranslatorBase< pat::Jet >::JetTranslatorBase | ( | const std::string & | udscFile, |
const std::string & | bFile | ||
) |
Definition at line 35 of file PatJetHitFitTranslator.cc.
hitfit::JetTranslatorBase< pat::Jet >::JetTranslatorBase | ( | const std::string & | udscFile, |
const std::string & | bFile, | ||
const std::string & | jetCorrectionLevel, | ||
double | jes, | ||
double | jesB | ||
) |
Definition at line 63 of file PatJetHitFitTranslator.cc.
hitfit::JetTranslatorBase< pat::Jet >::~JetTranslatorBase | ( | ) |
Definition at line 96 of file PatJetHitFitTranslator.cc.
const EtaDepResolution& hitfit::JetTranslatorBase< AJet >::bResolution | ( | ) | const |
Return the dependent resolution for jets.
const EtaDepResolution & hitfit::JetTranslatorBase< pat::Jet >::bResolution | ( | ) | const |
Definition at line 139 of file PatJetHitFitTranslator.cc.
const EtaDepResolution & hitfit::JetTranslatorBase< CLHEP::HepLorentzVector >::bResolution | ( | ) | const |
Definition at line 150 of file CLHEPHitFitTranslator.cc.
bool hitfit::JetTranslatorBase< AJet >::CheckEta | ( | const AJet & | jet | ) | const |
Check if a jet has value which is within the valid range of the resolution.
jet | The jet whose value is to be checked. |
bool hitfit::JetTranslatorBase< pat::Jet >::CheckEta | ( | const pat::Jet & | jet | ) | const |
Definition at line 144 of file PatJetHitFitTranslator.cc.
bool hitfit::JetTranslatorBase< CLHEP::HepLorentzVector >::CheckEta | ( | const CLHEP::HepLorentzVector & | jet | ) | const |
Definition at line 155 of file CLHEPHitFitTranslator.cc.
Lepjets_Event_Jet hitfit::JetTranslatorBase< pat::Jet >::operator() | ( | const pat::Jet & | jet, |
int | type, | ||
bool | useObjEmbRes | ||
) |
Definition at line 99 of file PatJetHitFitTranslator.cc.
Lepjets_Event_Jet hitfit::JetTranslatorBase< AJet >::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.
jet | The jet physics object to be translated. |
type | The typecode of the jet to be translated (leptonic b, hadronic b, or hadronic W). |
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. |
Lepjets_Event_Jet hitfit::JetTranslatorBase< CLHEP::HepLorentzVector >::operator() | ( | const CLHEP::HepLorentzVector & | jet, |
int | type, | ||
bool | useObjEmbRes | ||
) |
Definition at line 125 of file CLHEPHitFitTranslator.cc.
const EtaDepResolution& hitfit::JetTranslatorBase< AJet >::udscResolution | ( | ) | const |
Return the dependent resolution for jets.
const EtaDepResolution & hitfit::JetTranslatorBase< pat::Jet >::udscResolution | ( | ) | const |
Definition at line 134 of file PatJetHitFitTranslator.cc.
const EtaDepResolution & hitfit::JetTranslatorBase< CLHEP::HepLorentzVector >::udscResolution | ( | ) | const |
Definition at line 145 of file CLHEPHitFitTranslator.cc.
|
private |
The dependent resolution for $b$ jets.
Definition at line 138 of file JetTranslatorBase.h.
|
private |
The jet energy scale.
Definition at line 148 of file JetTranslatorBase.h.
|
private |
The b-jet energy scale.
Definition at line 153 of file JetTranslatorBase.h.
|
private |
The jet correction level.
Definition at line 143 of file JetTranslatorBase.h.
|
private |
The dependent resolution for $udsc$ jets.
Definition at line 133 of file JetTranslatorBase.h.