Mēnsūra
Public Member Functions | List of all members
pec::Lepton Class Reference

Base class for charged leptons. More...

#include <Lepton.hpp>

Inheritance diagram for pec::Lepton:
pec::CandidateWithID pec::Candidate pec::Electron pec::Muon

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.
 
- Public Member Functions inherited from pec::CandidateWithID
 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...
 
- Public Member Functions inherited from pec::Candidate
 Candidate () noexcept
 Constructor with no parameters. More...
 
 Candidate (Candidate &&)=default
 Default move constructor.
 
 Candidate (Candidate const &)=default
 Default copy constructor.
 
Candidateoperator= (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)
 

Detailed Description

Base class for charged leptons.

Member Function Documentation

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.


The documentation for this class was generated from the following files: