Project
Loading...
Searching...
No Matches
o2::MCCompLabel Class Reference

#include <MCCompLabel.h>

Inherited by o2::emcal::MCLabel, o2::fdd::MCLabel, o2::ft0::MCLabel, o2::fv0::MCLabel, o2::mid::MCClusterLabel, o2::mid::MCLabel, o2::phos::MCLabel, o2::tof::MCLabel, and o2::zdc::MCLabel.

Public Member Functions

 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 constexpr int maxSourceID ()
 
static constexpr int maxEventID ()
 
static constexpr int maxTrackID ()
 

Static Public Attributes

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 MCCompLabel.h.

Constructor & Destructor Documentation

◆ MCCompLabel() [1/2]

o2::MCCompLabel::MCCompLabel ( int  trackID,
int  evID,
int  srcID,
bool  fake = false 
)
inline

Definition at line 55 of file MCCompLabel.h.

◆ MCCompLabel() [2/2]

o2::MCCompLabel::MCCompLabel ( bool  noise = false)
inline

Definition at line 56 of file MCCompLabel.h.

◆ ~MCCompLabel()

o2::MCCompLabel::~MCCompLabel ( )
default

Member Function Documentation

◆ asString()

std::string o2::MCCompLabel::asString ( ) const

Definition at line 36 of file MCCompLabel.cxx.

◆ ClassDefNV()

o2::MCCompLabel::ClassDefNV ( MCCompLabel  ,
 
)

◆ compare()

int o2::MCCompLabel::compare ( const MCCompLabel other) const
inline

Definition at line 85 of file MCCompLabel.h.

◆ get()

void o2::MCCompLabel::get ( int trackID,
int evID,
int srcID,
bool &  fake 
) const
inline

parse label

Definition at line 132 of file MCCompLabel.h.

◆ getEventID()

int o2::MCCompLabel::getEventID ( ) const
inline

Definition at line 129 of file MCCompLabel.h.

◆ getRawValue()

uint64_t o2::MCCompLabel::getRawValue ( ) const
inline

Definition at line 95 of file MCCompLabel.h.

◆ getSourceID()

int o2::MCCompLabel::getSourceID ( ) const
inline

Definition at line 130 of file MCCompLabel.h.

◆ getTrackEventSourceID()

uint64_t o2::MCCompLabel::getTrackEventSourceID ( ) const
inline

Definition at line 131 of file MCCompLabel.h.

◆ getTrackID()

int o2::MCCompLabel::getTrackID ( ) const
inline

Definition at line 127 of file MCCompLabel.h.

◆ getTrackIDSigned()

int o2::MCCompLabel::getTrackIDSigned ( ) const
inline

Definition at line 128 of file MCCompLabel.h.

◆ isCorrect()

bool o2::MCCompLabel::isCorrect ( ) const
inline

Definition at line 80 of file MCCompLabel.h.

◆ isEmpty()

bool o2::MCCompLabel::isEmpty ( ) const
inline

Definition at line 69 of file MCCompLabel.h.

◆ isFake()

bool o2::MCCompLabel::isFake ( ) const
inline

Definition at line 78 of file MCCompLabel.h.

◆ isNoise()

bool o2::MCCompLabel::isNoise ( ) const
inline

Definition at line 73 of file MCCompLabel.h.

◆ isQED()

bool o2::MCCompLabel::isQED ( ) const
inline

Definition at line 71 of file MCCompLabel.h.

◆ isSet()

bool o2::MCCompLabel::isSet ( ) const
inline

Definition at line 67 of file MCCompLabel.h.

◆ isValid()

bool o2::MCCompLabel::isValid ( ) const
inline

Definition at line 75 of file MCCompLabel.h.

◆ maxEventID()

static constexpr int o2::MCCompLabel::maxEventID ( )
inlinestaticconstexpr

Definition at line 145 of file MCCompLabel.h.

◆ maxSourceID()

static constexpr int o2::MCCompLabel::maxSourceID ( )
inlinestaticconstexpr

Definition at line 144 of file MCCompLabel.h.

◆ maxTrackID()

static constexpr int o2::MCCompLabel::maxTrackID ( )
inlinestaticconstexpr

Definition at line 146 of file MCCompLabel.h.

◆ operator!=()

bool o2::MCCompLabel::operator!= ( const MCCompLabel other) const
inline

Definition at line 99 of file MCCompLabel.h.

◆ operator<()

bool o2::MCCompLabel::operator< ( const MCCompLabel other) const
inline

Definition at line 101 of file MCCompLabel.h.

◆ operator==()

bool o2::MCCompLabel::operator== ( const MCCompLabel other) const
inline

Definition at line 98 of file MCCompLabel.h.

◆ operator>()

bool o2::MCCompLabel::operator> ( const MCCompLabel other) const
inline

Definition at line 102 of file MCCompLabel.h.

◆ print()

void o2::MCCompLabel::print ( ) const

Definition at line 46 of file MCCompLabel.cxx.

◆ set()

void o2::MCCompLabel::set ( unsigned int  trackID,
int  evID,
int  srcID,
bool  fake 
)
inline

compose label: the track 1st cast to UInt32_t to preserve the sign!

Definition at line 116 of file MCCompLabel.h.

◆ setFakeFlag()

void o2::MCCompLabel::setFakeFlag ( bool  v = true)
inline

Definition at line 107 of file MCCompLabel.h.

◆ setNoise()

void o2::MCCompLabel::setNoise ( )
inline

Definition at line 106 of file MCCompLabel.h.

◆ unset()

void o2::MCCompLabel::unset ( )
inline

Definition at line 105 of file MCCompLabel.h.

Member Data Documentation

◆ maskEvID

constexpr uint64_t o2::MCCompLabel::maskEvID = (ul0x1 << nbitsEvID) - 1
staticconstexpr

Definition at line 49 of file MCCompLabel.h.

◆ maskFull

constexpr uint64_t o2::MCCompLabel::maskFull = (ul0x1 << (nbitsTrackID + nbitsEvID + nbitsSrcID)) - 1
staticconstexpr

Definition at line 53 of file MCCompLabel.h.

◆ maskSrcID

constexpr uint64_t o2::MCCompLabel::maskSrcID = (ul0x1 << nbitsSrcID) - 1
staticconstexpr

Definition at line 51 of file MCCompLabel.h.

◆ maskTrackID

constexpr uint64_t o2::MCCompLabel::maskTrackID = (ul0x1 << nbitsTrackID) - 1
staticconstexpr

Definition at line 47 of file MCCompLabel.h.

◆ nbitsEvID

constexpr int o2::MCCompLabel::nbitsEvID = 19
staticconstexpr

Definition at line 38 of file MCCompLabel.h.

◆ nbitsSrcID

constexpr int o2::MCCompLabel::nbitsSrcID = 8
staticconstexpr

Definition at line 39 of file MCCompLabel.h.

◆ nbitsTrackID

constexpr int o2::MCCompLabel::nbitsTrackID = 31
staticconstexpr

Definition at line 37 of file MCCompLabel.h.


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