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

#include <MCLabel.h>

Inherits o2::MCCompLabel.

Public Member Functions

 MCLabel ()=default
 
 MCLabel (int trackID, int eventID, int srcID, int deId, int columnId, int cathode, int firstStrip, int lastStrip)
 
bool operator== (const MCLabel &other) const
 
void setDEId (int deId)
 Sets the detection element ID.
 
int getDEId () const
 Gets the detection element ID.
 
void setColumnId (int columnId)
 Sets the column ID.
 
int getColumnId () const
 Gets the column ID.
 
void setCathode (int cathode)
 Sets the cathode.
 
int getCathode () const
 Gets the Cathode.
 
void setFirstStrip (int firstStrip)
 Sets the first strip.
 
int getFirstStrip () const
 Gets the first strip.
 
void setLastStrip (int lastStrip)
 Sets the last strip.
 
int getLastStrip () const
 Gets the last strip.
 
 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)
 

Static Public Member Functions

static int getLine (int strip)
 Gets the line number.
 
static int getStripInLine (int strip)
 Gets the strip number in line.
 
static int getStrip (int strip, int line)
 Gets the strip.
 
- Static Public Member Functions inherited from o2::MCCompLabel
static constexpr int maxSourceID ()
 
static constexpr int maxEventID ()
 
static constexpr int maxTrackID ()
 

Additional Inherited Members

- 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 26 of file MCLabel.h.

Constructor & Destructor Documentation

◆ MCLabel() [1/2]

o2::mid::MCLabel::MCLabel ( )
default

◆ MCLabel() [2/2]

o2::mid::MCLabel::MCLabel ( int  trackID,
int  eventID,
int  srcID,
int  deId,
int  columnId,
int  cathode,
int  firstStrip,
int  lastStrip 
)

Constructor

Definition at line 26 of file MCLabel.cxx.

Member Function Documentation

◆ ClassDefNV()

o2::mid::MCLabel::ClassDefNV ( MCLabel  ,
 
)

◆ getCathode()

int o2::mid::MCLabel::getCathode ( ) const
inline

Gets the Cathode.

Definition at line 64 of file MCLabel.h.

◆ getColumnId()

int o2::mid::MCLabel::getColumnId ( ) const
inline

Gets the column ID.

Definition at line 59 of file MCLabel.h.

◆ getDEId()

int o2::mid::MCLabel::getDEId ( ) const
inline

Gets the detection element ID.

Definition at line 54 of file MCLabel.h.

◆ getFirstStrip()

int o2::mid::MCLabel::getFirstStrip ( ) const
inline

Gets the first strip.

Definition at line 69 of file MCLabel.h.

◆ getLastStrip()

int o2::mid::MCLabel::getLastStrip ( ) const
inline

Gets the last strip.

Definition at line 74 of file MCLabel.h.

◆ getLine()

static int o2::mid::MCLabel::getLine ( int  strip)
inlinestatic

Gets the line number.

Definition at line 77 of file MCLabel.h.

◆ getStrip()

static int o2::mid::MCLabel::getStrip ( int  strip,
int  line 
)
inlinestatic

Gets the strip.

Definition at line 81 of file MCLabel.h.

◆ getStripInLine()

static int o2::mid::MCLabel::getStripInLine ( int  strip)
inlinestatic

Gets the strip number in line.

Definition at line 79 of file MCLabel.h.

◆ operator==()

bool o2::mid::MCLabel::operator== ( const MCLabel other) const

Definition at line 43 of file MCLabel.cxx.

◆ setCathode()

void o2::mid::MCLabel::setCathode ( int  cathode)
inline

Sets the cathode.

Definition at line 62 of file MCLabel.h.

◆ setColumnId()

void o2::mid::MCLabel::setColumnId ( int  columnId)
inline

Sets the column ID.

Definition at line 57 of file MCLabel.h.

◆ setDEId()

void o2::mid::MCLabel::setDEId ( int  deId)
inline

Sets the detection element ID.

Definition at line 52 of file MCLabel.h.

◆ setFirstStrip()

void o2::mid::MCLabel::setFirstStrip ( int  firstStrip)
inline

Sets the first strip.

Definition at line 67 of file MCLabel.h.

◆ setLastStrip()

void o2::mid::MCLabel::setLastStrip ( int  lastStrip)
inline

Sets the last strip.

Definition at line 72 of file MCLabel.h.


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