Project
Loading...
Searching...
No Matches
o2::tof::Cluster Class Reference

Cluster class for TOF. More...

#include <Cluster.h>

Inherits o2::BaseCluster< float >.

Public Types

enum  {
  kUpLeft = 0 , kUp = 1 , kUpRight = 2 , kRight = 3 ,
  kDownRight = 4 , kDown = 5 , kDownLeft = 6 , kLeft = 7
}
 

Public Member Functions

 Cluster ()=default
 
 Cluster (std::int16_t sensid, float x, float y, float z, float sy2, float sz2, float syz, double timeRaw, double time, float tot, int L0L1latency, int deltaBC, float geanttime=0.0, double t0=0.0)
 
 ~Cluster ()=default
 
std::int8_t getSector () const
 
void setSector (std::int8_t value)
 
std::int16_t getPadInSector () const
 
void setPadInSector (std::int16_t value)
 
double getTimeRaw () const
 
void setTimeRaw (double timeRaw)
 
double getTime () const
 
void setTime (double time)
 
float getTot () const
 
void setTot (float tot)
 
int getL0L1Latency () const
 
void setL0L1Latency (int value)
 
int getDeltaBC () const
 
void setDeltaBC (int value)
 
float getR ()
 
float getPhi ()
 
float getR () const
 
float getPhi () const
 
void setR (float value)
 
void setPhi (float value)
 
int getNumOfContributingChannels () const
 
int getMainContributingChannel () const
 
void addBitInContributingChannels (int bit)
 
void resetBitInContributingChannels (int bit)
 
std::uint8_t getAdditionalContributingChannels () const
 
void setAdditionalContributingChannels (std::uint8_t mask)
 
bool isAdditionalChannelSet (int bit) const
 
void setMainContributingChannel (int newvalue)
 
void setEntryInTree (int value)
 
int getEntryInTree () const
 
int getBC () const
 
void setDigitInfo (int idig, int ch, double t, float tot)
 
int getDigitInfoCH (int idig) const
 
double getDigitInfoT (int idig) const
 
float getDigitInfoTOT (int idig) const
 
float getTgeant () const
 
void setTgeant (float val)
 
double getT0true () const
 
void setT0true (double val)
 
- Public Member Functions inherited from o2::BaseCluster< float >
 BaseCluster ()=default
 
 BaseCluster (std::uint16_t sensid, const math_utils::Point3D< float > &xyz)
 
 BaseCluster (std::uint16_t sensid, float x, float y, float z)
 
 BaseCluster (std::uint16_t sensid, const math_utils::Point3D< float > &xyz, float sy2, float sz2, float syz)
 
 BaseCluster (std::int16_t sensid, float x, float y, float z, float sy2, float sz2, float syz)
 
 ~BaseCluster ()=default
 
float getX () const
 
float getY () const
 
float getZ () const
 
float getSigmaY2 () const
 
float getSigmaZ2 () const
 
float getSigmaYZ () const
 
math_utils::Point3D< float > getXYZ () const
 
math_utils::Point3D< float > & getXYZ ()
 
math_utils::Point3D< float > getXYZLoc (const o2::detectors::DetMatrixCache &dm) const
 
math_utils::Point3D< float > getXYZGlo (const o2::detectors::DetMatrixCache &dm) const
 
math_utils::Point3D< float > getXYZGloRot (const o2::detectors::DetMatrixCache &dm) const
 
std::int16_t getSensorID () const
 
std::int8_t getCount () const
 
std::uint8_t getBits () const
 
bool isBitSet (int bit) const
 
 operator math_utils::Point3D< float > & ()
 
void setSensorID (std::int16_t sid)
 
void setCount (std::int8_t c)
 
void setBits (std::uint8_t b)
 
void setBit (int bit)
 
void resetBit (int bit)
 
void setX (float x)
 
void setY (float y)
 
void setZ (float z)
 
void setXYZ (float x, float y, float z)
 
void setPos (const math_utils::Point3D< float > &p)
 
void setSigmaY2 (float v)
 
void setSigmaZ2 (float v)
 
void setSigmaYZ (float v)
 
void setErrors (float sy2, float sz2, float syz)
 

Friends

class boost::serialization::access
 

Additional Inherited Members

- Protected Member Functions inherited from o2::BaseCluster< float >
 ClassDefNV (BaseCluster, 2)
 

Detailed Description

Cluster class for TOF.

Definition at line 36 of file Cluster.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
kUpLeft 
kUp 
kUpRight 
kRight 
kDownRight 
kDown 
kDownLeft 
kLeft 

Definition at line 45 of file Cluster.h.

Constructor & Destructor Documentation

◆ Cluster() [1/2]

o2::tof::Cluster::Cluster ( )
default

◆ Cluster() [2/2]

Cluster::Cluster ( std::int16_t  sensid,
float  x,
float  y,
float  z,
float  sy2,
float  sz2,
float  syz,
double  timeRaw,
double  time,
float  tot,
int  L0L1latency,
int  deltaBC,
float  geanttime = 0.0,
double  t0 = 0.0 
)

Definition at line 26 of file Cluster.cxx.

◆ ~Cluster()

o2::tof::Cluster::~Cluster ( )
default

Member Function Documentation

◆ addBitInContributingChannels()

void o2::tof::Cluster::addBitInContributingChannels ( int  bit)
inline

Definition at line 115 of file Cluster.h.

◆ getAdditionalContributingChannels()

std::uint8_t o2::tof::Cluster::getAdditionalContributingChannels ( ) const
inline

Definition at line 117 of file Cluster.h.

◆ getBC()

int o2::tof::Cluster::getBC ( ) const
inline

Definition at line 131 of file Cluster.h.

◆ getDeltaBC()

int o2::tof::Cluster::getDeltaBC ( ) const
inline

Definition at line 74 of file Cluster.h.

◆ getDigitInfoCH()

int o2::tof::Cluster::getDigitInfoCH ( int  idig) const
inline

Definition at line 134 of file Cluster.h.

◆ getDigitInfoT()

double o2::tof::Cluster::getDigitInfoT ( int  idig) const
inline

Definition at line 135 of file Cluster.h.

◆ getDigitInfoTOT()

float o2::tof::Cluster::getDigitInfoTOT ( int  idig) const
inline

Definition at line 136 of file Cluster.h.

◆ getEntryInTree()

int o2::tof::Cluster::getEntryInTree ( ) const
inline

Definition at line 129 of file Cluster.h.

◆ getL0L1Latency()

int o2::tof::Cluster::getL0L1Latency ( ) const
inline

Definition at line 72 of file Cluster.h.

◆ getMainContributingChannel()

int o2::tof::Cluster::getMainContributingChannel ( ) const
inline

Definition at line 113 of file Cluster.h.

◆ getNumOfContributingChannels()

int Cluster::getNumOfContributingChannels ( ) const

Definition at line 34 of file Cluster.cxx.

◆ getPadInSector()

std::int16_t o2::tof::Cluster::getPadInSector ( ) const
inline

Definition at line 63 of file Cluster.h.

◆ getPhi() [1/2]

float o2::tof::Cluster::getPhi ( )
inline

Definition at line 86 of file Cluster.h.

◆ getPhi() [2/2]

float o2::tof::Cluster::getPhi ( ) const
inline

Definition at line 101 of file Cluster.h.

◆ getR() [1/2]

float o2::tof::Cluster::getR ( )
inline

Definition at line 78 of file Cluster.h.

◆ getR() [2/2]

float o2::tof::Cluster::getR ( ) const
inline

Definition at line 93 of file Cluster.h.

◆ getSector()

std::int8_t o2::tof::Cluster::getSector ( ) const
inline

Definition at line 60 of file Cluster.h.

◆ getT0true()

double o2::tof::Cluster::getT0true ( ) const
inline

Definition at line 139 of file Cluster.h.

◆ getTgeant()

float o2::tof::Cluster::getTgeant ( ) const
inline

Definition at line 137 of file Cluster.h.

◆ getTime()

double o2::tof::Cluster::getTime ( ) const
inline

Definition at line 68 of file Cluster.h.

◆ getTimeRaw()

double o2::tof::Cluster::getTimeRaw ( ) const
inline

Definition at line 66 of file Cluster.h.

◆ getTot()

float o2::tof::Cluster::getTot ( ) const
inline

Definition at line 70 of file Cluster.h.

◆ isAdditionalChannelSet()

bool o2::tof::Cluster::isAdditionalChannelSet ( int  bit) const
inline

Definition at line 120 of file Cluster.h.

◆ resetBitInContributingChannels()

void o2::tof::Cluster::resetBitInContributingChannels ( int  bit)
inline

Definition at line 116 of file Cluster.h.

◆ setAdditionalContributingChannels()

void o2::tof::Cluster::setAdditionalContributingChannels ( std::uint8_t  mask)
inline

Definition at line 118 of file Cluster.h.

◆ setDeltaBC()

void o2::tof::Cluster::setDeltaBC ( int  value)
inline

Definition at line 75 of file Cluster.h.

◆ setDigitInfo()

void Cluster::setDigitInfo ( int  idig,
int  ch,
double  t,
float  tot 
)

Definition at line 78 of file Cluster.cxx.

◆ setEntryInTree()

void o2::tof::Cluster::setEntryInTree ( int  value)
inline

Definition at line 128 of file Cluster.h.

◆ setL0L1Latency()

void o2::tof::Cluster::setL0L1Latency ( int  value)
inline

Definition at line 73 of file Cluster.h.

◆ setMainContributingChannel()

void o2::tof::Cluster::setMainContributingChannel ( int  newvalue)
inline

Definition at line 122 of file Cluster.h.

◆ setPadInSector()

void o2::tof::Cluster::setPadInSector ( std::int16_t  value)
inline

Definition at line 64 of file Cluster.h.

◆ setPhi()

void o2::tof::Cluster::setPhi ( float  value)
inline

Definition at line 110 of file Cluster.h.

◆ setR()

void o2::tof::Cluster::setR ( float  value)
inline

Definition at line 109 of file Cluster.h.

◆ setSector()

void o2::tof::Cluster::setSector ( std::int8_t  value)
inline

Definition at line 61 of file Cluster.h.

◆ setT0true()

void o2::tof::Cluster::setT0true ( double  val)
inline

Definition at line 140 of file Cluster.h.

◆ setTgeant()

void o2::tof::Cluster::setTgeant ( float  val)
inline

Definition at line 138 of file Cluster.h.

◆ setTime()

void o2::tof::Cluster::setTime ( double  time)
inline

Definition at line 69 of file Cluster.h.

◆ setTimeRaw()

void o2::tof::Cluster::setTimeRaw ( double  timeRaw)
inline

Definition at line 67 of file Cluster.h.

◆ setTot()

void o2::tof::Cluster::setTot ( float  tot)
inline

Definition at line 71 of file Cluster.h.

Friends And Related Symbol Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 144 of file Cluster.h.


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