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

#include <MCLabel.h>

Inherits o2::MCCompLabel.

Public Member Functions

 MCLabel ()=default
 
 MCLabel (Int_t trackID, Int_t eventID, Int_t srcID, bool fake, float edep)
 
bool operator== (const MCLabel &other) const
 Comparison oparator, based on track, event and src Id.
 
MCLabeloperator= (const MCLabel &other)=default
 
void add (const MCLabel &other, float scale)
 
void scale (float s)
 
float getEdep () const
 
double getAmplitudeFraction () const
 
 ClassDefNV (MCLabel, 2)
 
- 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

Definition at line 23 of file MCLabel.h.

Constructor & Destructor Documentation

◆ MCLabel() [1/2]

o2::phos::MCLabel::MCLabel ( )
default

◆ MCLabel() [2/2]

o2::phos::MCLabel::MCLabel ( Int_t  trackID,
Int_t  eventID,
Int_t  srcID,
bool  fake,
float  edep 
)
inline

Definition at line 30 of file MCLabel.h.

Member Function Documentation

◆ add()

void o2::phos::MCLabel::add ( const MCLabel other,
float  scale 
)
inline

Definition at line 41 of file MCLabel.h.

◆ ClassDefNV()

o2::phos::MCLabel::ClassDefNV ( MCLabel  ,
 
)

◆ getAmplitudeFraction()

double o2::phos::MCLabel::getAmplitudeFraction ( ) const
inline

Definition at line 47 of file MCLabel.h.

◆ getEdep()

float o2::phos::MCLabel::getEdep ( ) const
inline

Definition at line 45 of file MCLabel.h.

◆ operator=()

MCLabel & o2::phos::MCLabel::operator= ( const MCLabel other)
default

◆ operator==()

bool o2::phos::MCLabel::operator== ( const MCLabel other) const
inline

Comparison oparator, based on track, event and src Id.

Parameters
anotherPHOS MCLabel
Returns
result of comparison: same tracks or not

Definition at line 35 of file MCLabel.h.

◆ scale()

void o2::phos::MCLabel::scale ( float  s)
inline

Definition at line 43 of file MCLabel.h.


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