Represent a lepton in an instance of Lepjets_Event class. This class hold the following information: More...
#include <Lepjets_Event_Lep.h>
Public Member Functions | |
std::ostream & | dump (std::ostream &s, bool full=false) const |
Print the content of this object. More... | |
double | eta_sigma () const |
Return the uncertainty in pseudorapidity . More... | |
Lepjets_Event_Lep (const Fourvec &p, int type, const Vector_Resolution &res) | |
Constructor, create a new instance of Lepjets_Event_Lep. More... | |
bool | operator< (const Lepjets_Event_Lep &x) const |
Comparison operator for sorting purpose, based on $p_{T}$. More... | |
Fourvec & | p () |
Return a reference to the four-momentum. More... | |
const Fourvec & | p () const |
Return a constant reference to the four-momentum. More... | |
double | p_sigma () const |
Return the uncertainty in momentum or ( or if the lepton is a tracking object). More... | |
double | phi_sigma () const |
Return the uncertainty in azimuthal angle . More... | |
Vector_Resolution & | res () |
Return a reference to the resolution. More... | |
const Vector_Resolution & | res () const |
Return a constant reference to the resolution. More... | |
void | smear (CLHEP::HepRandomEngine &engine, bool smear_dir=false) |
Smear this object. More... | |
int & | type () |
Return a reference to the type code. More... | |
int | type () const |
Return the type code. More... | |
Private Attributes | |
Fourvec | _p |
Vector_Resolution | _res |
int | _type |
Represent a lepton in an instance of Lepjets_Event class. This class hold the following information:
Definition at line 64 of file Lepjets_Event_Lep.h.
hitfit::Lepjets_Event_Lep::Lepjets_Event_Lep | ( | const Fourvec & | p, |
int | type, | ||
const Vector_Resolution & | res | ||
) |
Constructor, create a new instance of Lepjets_Event_Lep.
p | The four-momentum. |
type | The type code. |
res | The resolution. |
Definition at line 38 of file Lepjets_Event_Lep.cc.
std::ostream & hitfit::Lepjets_Event_Lep::dump | ( | std::ostream & | s, |
bool | full = false |
||
) | const |
Print the content of this object.
s | The output stream to which to write. |
full | If TRUE, print all information about this instance of Lepjets_Event_Lep. If FALSE, print partial information about this instance of Lepjets_Event_Lep. |
Definition at line 160 of file Lepjets_Event_Lep.cc.
References full, and alignCSCRings::s.
Referenced by hitfit::Lepjets_Event_Jet::dump().
double hitfit::Lepjets_Event_Lep::eta_sigma | ( | ) | const |
Return the uncertainty in pseudorapidity .
Definition at line 126 of file Lepjets_Event_Lep.cc.
References _p, _res, and hitfit::Vector_Resolution::eta_sigma().
bool hitfit::Lepjets_Event_Lep::operator< | ( | const Lepjets_Event_Lep & | x | ) | const |
Comparison operator for sorting purpose, based on $p_{T}$.
x | The other instance of Lepjets_Event to be compared. |
Definition at line 202 of file Lepjets_Event_Lep.cc.
References AlCaHLTBitMon_ParallelJobs::p.
Fourvec & hitfit::Lepjets_Event_Lep::p | ( | ) |
Return a reference to the four-momentum.
Definition at line 49 of file Lepjets_Event_Lep.cc.
References _p.
Referenced by TtSemiLepHitFitProducer< LeptonCollection >::produce(), and Electron.Electron::ptErr().
const Fourvec & hitfit::Lepjets_Event_Lep::p | ( | ) | const |
Return a constant reference to the four-momentum.
Definition at line 60 of file Lepjets_Event_Lep.cc.
References _p.
Referenced by Electron.Electron::ptErr().
double hitfit::Lepjets_Event_Lep::p_sigma | ( | ) | const |
Return the uncertainty in momentum or ( or if the lepton is a tracking object).
Definition at line 115 of file Lepjets_Event_Lep.cc.
References _p, _res, and hitfit::Vector_Resolution::p_sigma().
double hitfit::Lepjets_Event_Lep::phi_sigma | ( | ) | const |
Return the uncertainty in azimuthal angle .
Definition at line 137 of file Lepjets_Event_Lep.cc.
References _p, _res, and hitfit::Vector_Resolution::phi_sigma().
Vector_Resolution & hitfit::Lepjets_Event_Lep::res | ( | ) |
Return a reference to the resolution.
Definition at line 104 of file Lepjets_Event_Lep.cc.
References _res.
const Vector_Resolution & hitfit::Lepjets_Event_Lep::res | ( | ) | const |
Return a constant reference to the resolution.
Definition at line 93 of file Lepjets_Event_Lep.cc.
References _res.
void hitfit::Lepjets_Event_Lep::smear | ( | CLHEP::HepRandomEngine & | engine, |
bool | smear_dir = false |
||
) |
Smear this object.
engine | The underlying random number generator. |
smear_dir | If TRUE, also smear the object's direction. If FALSE, then only smear the magnitude of three-momentum. |
Definition at line 148 of file Lepjets_Event_Lep.cc.
References _p, _res, and hitfit::Vector_Resolution::smear().
int & hitfit::Lepjets_Event_Lep::type | ( | ) |
Return a reference to the type code.
Definition at line 71 of file Lepjets_Event_Lep.cc.
References _type.
Referenced by TtSemiLepHitFitProducer< LeptonCollection >::produce(), and hitfit::Lepjets_Event::set_jet_types().
int hitfit::Lepjets_Event_Lep::type | ( | ) | const |
|
private |
The four-momentum.
Definition at line 172 of file Lepjets_Event_Lep.h.
Referenced by eta_sigma(), p(), p_sigma(), phi_sigma(), and smear().
|
private |
The resolution.
Definition at line 182 of file Lepjets_Event_Lep.h.
Referenced by eta_sigma(), p_sigma(), phi_sigma(), res(), and smear().
|
private |