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

Represents a reconstructed electron. More...

#include <Electron.hpp>

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

Public Member Functions

 Electron () noexcept
 Constructor with no parameters.
 
virtual void Reset () override
 Resets the object to a state right after the default initialisation.
 
void SetBooleanID (unsigned bitIndex, bool value=true)
 Sets a decision of a cut-based ID. More...
 
void SetContinuousID (unsigned index, float mva)
 Saves real-valued response of an MVA discriminator. More...
 
void SetEtaSC (float etaSC)
 Sets pseudorapidity of the associated supercluster.
 
bool BooleanID (unsigned bitIndex) const
 Returns decision of selected version of the cut-based ID. More...
 
float ContinuousID (unsigned index) const
 Returns the value of MVA-based ID. More...
 
float EtaSC () const
 Returns pseudorapidity of the associated supercluster.
 
- Public Member Functions inherited from pec::Lepton
 Lepton () noexcept
 Constructor with no parameters.
 
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

Represents a reconstructed electron.

Extends class Lepton by adding sets of boolean and real-valued identification decisions. They are intended to be used to store results of cut-based and MVA algorithms, respectively. Up to eight boolean flags can be stored. The maximal number of MVA-based decisions is given by contIdSize, which can be changed at compile time only.

Member Function Documentation

bool pec::Electron::BooleanID ( unsigned  bitIndex) const

Returns decision of selected version of the cut-based ID.

See documentation for the SetCutBasedId method.

float pec::Electron::ContinuousID ( unsigned  index) const

Returns the value of MVA-based ID.

See documentation for the SetMvaID method.

void pec::Electron::SetBooleanID ( unsigned  bitIndex,
bool  value = true 
)

Sets a decision of a cut-based ID.

The decision is encoded in a bit field. Decision for several working points can be written using several bits. Throws an exception if the index of out of the supported range.

void pec::Electron::SetContinuousID ( unsigned  index,
float  mva 
)

Saves real-valued response of an MVA discriminator.

Throws an exception if the index is out of the supported range.


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