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... | |
const Vector_Resolution & | res () const |
Return a constant reference to the resolution. More... | |
Vector_Resolution & | res () |
Return a 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 68 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 41 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 181 of file Lepjets_Event_Lep.cc.
References full, and alignCSCRings::s.
Referenced by hitfit::Lepjets_Event_Jet::dump(), and hitfit::operator<<().
double hitfit::Lepjets_Event_Lep::eta_sigma | ( | ) | const |
Return the uncertainty in pseudorapidity .
Definition at line 143 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 226 of file Lepjets_Event_Lep.cc.
References AlCaHLTBitMon_ParallelJobs::p, and x().
Fourvec & hitfit::Lepjets_Event_Lep::p | ( | ) |
Return a reference to the four-momentum.
Definition at line 59 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 71 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 131 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 155 of file Lepjets_Event_Lep.cc.
References _p, _res, and hitfit::Vector_Resolution::phi_sigma().
const Vector_Resolution & hitfit::Lepjets_Event_Lep::res | ( | ) | const |
Return a constant reference to the resolution.
Definition at line 107 of file Lepjets_Event_Lep.cc.
References _res.
Vector_Resolution & hitfit::Lepjets_Event_Lep::res | ( | ) |
Return a reference to the resolution.
Definition at line 119 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 167 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 83 of file Lepjets_Event_Lep.cc.
References _type.
Referenced by cuy.ValElement::__init__(), TtSemiLepHitFitProducer< LeptonCollection >::produce(), and hitfit::Lepjets_Event::set_jet_types().
int hitfit::Lepjets_Event_Lep::type | ( | ) | const |
Return the type code.
Definition at line 95 of file Lepjets_Event_Lep.cc.
References _type.
Referenced by cuy.ValElement::__init__().
|
private |
The four-momentum.
Definition at line 179 of file Lepjets_Event_Lep.h.
Referenced by eta_sigma(), p(), p_sigma(), phi_sigma(), and smear().
|
private |
The resolution.
Definition at line 189 of file Lepjets_Event_Lep.h.
Referenced by eta_sigma(), p_sigma(), phi_sigma(), res(), and smear().
|
private |