Mēnsūra
|
Base class for charged leptons. More...
#include <Lepton.hpp>
Public Member Functions | |
Lepton () noexcept | |
Constructor with no parameters. | |
virtual void | Reset () override |
Resets the object to a state right after the default initialisation. | |
void | SetCharge (int charge) |
Sets lepton charge. More... | |
void | SetRelIso (float relIso) |
Sets relative isolation. | |
int | Charge () const |
Returns electric charge of the lepton. More... | |
float | RelIso () const |
Returns relative isolation. | |
![]() | |
CandidateWithID () noexcept | |
Constructor with no parameters. | |
void | SetBit (unsigned index, bool value=true) |
Sets or unsets an ID bit. More... | |
bool | TestBit (unsigned index) const |
Tests an ID bit. More... | |
![]() | |
Candidate () noexcept | |
Constructor with no parameters. More... | |
Candidate (Candidate &&)=default | |
Default move constructor. | |
Candidate (Candidate const &)=default | |
Default copy constructor. | |
Candidate & | operator= (Candidate const &)=default |
Default assignment operator. | |
virtual | ~Candidate ()=default |
Default virtual destructor. | |
void | SetPt (float pt) |
Sets transverse momentum (GeV/c) | |
void | SetEta (float eta) |
Sets pseudorapidity. | |
void | SetPhi (float phi) |
Sets azimuthal angle. More... | |
void | SetM (float mass) |
Sets mass (GeV/c^2) | |
float | Pt () const |
Returns transverse momentum (GeV/c) | |
float | Eta () const |
Returns pseudorapidity. | |
float | Phi () const |
Returns azimuthal angle. More... | |
float | M () const |
Returns mass (GeV/c^2) | |
Base class for charged leptons.
int Lepton::Charge | ( | ) | const |
Returns electric charge of the lepton.
The returned value is +1 or -1.
void Lepton::SetCharge | ( | int | charge | ) |
Sets lepton charge.
Checks only the sign of the argument. If it is zero, throws an exception.