Project
Loading...
Searching...
No Matches
o2::emcal::MCLabel Class Reference

Monte-Carlo label for EMCAL clusters / digits. More...

#include <MCLabel.h>

Inherits o2::MCCompLabel.

Public Member Functions

 MCLabel ()=default
 
 MCLabel (Int_t trackID, Int_t eventID, Int_t srcID, Bool_t fake, Double_t afraction)
 
 MCLabel (Bool_t noise, Double_t afraction)
 
void setAmplitudeFraction (Double_t afraction)
 
Double_t getAmplitudeFraction () const
 
 ClassDefNV (MCLabel, 1)
 
- Public Member Functions inherited from o2::MCCompLabel
 MCCompLabel (int trackID, int evID, int srcID, bool fake=false)
 
 MCCompLabel (bool noise=false)
 
 ~MCCompLabel ()=default
 
bool isSet () const
 
bool isEmpty () const
 
bool isQED () const
 
bool isNoise () const
 
bool isValid () const
 
bool isFake () const
 
bool isCorrect () const
 
int compare (const MCCompLabel &other) const
 
uint64_t getRawValue () const
 
bool operator== (const MCCompLabel &other) const
 
bool operator!= (const MCCompLabel &other) const
 
bool operator< (const MCCompLabel &other) const
 
bool operator> (const MCCompLabel &other) const
 
void unset ()
 
void setNoise ()
 
void setFakeFlag (bool v=true)
 
void set (unsigned int trackID, int evID, int srcID, bool fake)
 
int getTrackID () const
 
int getTrackIDSigned () const
 
int getEventID () const
 
int getSourceID () const
 
uint64_t getTrackEventSourceID () const
 
void get (int &trackID, int &evID, int &srcID, bool &fake) const
 
void print () const
 
std::string asString () const
 
 ClassDefNV (MCCompLabel, 1)
 

Additional Inherited Members

- Static Public Member Functions inherited from o2::MCCompLabel
static constexpr int maxSourceID ()
 
static constexpr int maxEventID ()
 
static constexpr int maxTrackID ()
 
- Static Public Attributes inherited from o2::MCCompLabel
static constexpr int nbitsTrackID = 31
 
static constexpr int nbitsEvID = 19
 
static constexpr int nbitsSrcID = 8
 
static constexpr uint64_t maskTrackID = (ul0x1 << nbitsTrackID) - 1
 
static constexpr uint64_t maskEvID = (ul0x1 << nbitsEvID) - 1
 
static constexpr uint64_t maskSrcID = (ul0x1 << nbitsSrcID) - 1
 
static constexpr uint64_t maskFull = (ul0x1 << (nbitsTrackID + nbitsEvID + nbitsSrcID)) - 1
 

Detailed Description

Monte-Carlo label for EMCAL clusters / digits.

Definition at line 27 of file MCLabel.h.

Constructor & Destructor Documentation

◆ MCLabel() [1/3]

o2::emcal::MCLabel::MCLabel ( )
default

◆ MCLabel() [2/3]

o2::emcal::MCLabel::MCLabel ( Int_t  trackID,
Int_t  eventID,
Int_t  srcID,
Bool_t  fake,
Double_t  afraction 
)
inline

Definition at line 34 of file MCLabel.h.

◆ MCLabel() [3/3]

o2::emcal::MCLabel::MCLabel ( Bool_t  noise,
Double_t  afraction 
)
inline

Definition at line 35 of file MCLabel.h.

Member Function Documentation

◆ ClassDefNV()

o2::emcal::MCLabel::ClassDefNV ( MCLabel  ,
 
)

◆ getAmplitudeFraction()

Double_t o2::emcal::MCLabel::getAmplitudeFraction ( ) const
inline

Definition at line 37 of file MCLabel.h.

◆ setAmplitudeFraction()

void o2::emcal::MCLabel::setAmplitudeFraction ( Double_t  afraction)
inline

Definition at line 36 of file MCLabel.h.


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