Project
Loading...
Searching...
No Matches
o2::iotof::Chip Class Reference

Container for similated points connected to a given TOF Chip This will be used in order to allow a more efficient clusterization that can happen only between digits that belong to the same Chip. More...

#include <Chip.h>

Public Member Functions

 Chip ()=default
 Default constructor.
 
 ~Chip ()=default
 Destructor.
 
 Chip (Int_t index)
 
 Chip (const Chip &ref)=default
 
void clear ()
 
std::map< ULong64_t, o2::iotof::LabeledDigit > & getDigits ()
 
bool isEmpty () const
 
void setChipIndex (Int_t index)
 
Int_t getChipIndex () const
 
void disable (bool disable)
 
bool isDisabled () const
 
Int_t getNumberOfDigits () const
 
o2::iotof::LabeledDigitfindDigit (ULong64_t key)
 reset points container
 
void addDigit (UShort_t row, UShort_t col, Int_t charge, double time, o2::MCCompLabel label)
 

Protected Member Functions

 ClassDefNV (Chip, 1)
 

Protected Attributes

Int_t mChipIndex = -1
 Chip ID.
 
bool mDisabled = false
 Flag to indicate if the chip is disabled (e.g. due to dead channels)
 
std::map< ULong64_t, o2::iotof::LabeledDigitmDigits
 Map of fired digits, possibly in multiple frames.
 

Detailed Description

Container for similated points connected to a given TOF Chip This will be used in order to allow a more efficient clusterization that can happen only between digits that belong to the same Chip.

Definition at line 40 of file Chip.h.

Constructor & Destructor Documentation

◆ Chip() [1/3]

o2::iotof::Chip::Chip ( )
default

Default constructor.

◆ ~Chip()

o2::iotof::Chip::~Chip ( )
default

Destructor.

◆ Chip() [2/3]

Chip::Chip ( Int_t  index)

Main constructor

Parameters
ChipindexIndex of the Chip
matTransformation matrix

Definition at line 30 of file Chip.cxx.

◆ Chip() [3/3]

o2::iotof::Chip::Chip ( const Chip ref)
default

Copy constructor

Parameters
refReference for the copy

Member Function Documentation

◆ addDigit()

void Chip::addDigit ( UShort_t  row,
UShort_t  col,
Int_t  charge,
double  time,
o2::MCCompLabel  label 
)

Definition at line 35 of file Chip.cxx.

◆ ClassDefNV()

o2::iotof::Chip::ClassDefNV ( Chip  ,
 
)
protected

◆ clear()

void o2::iotof::Chip::clear ( )
inline

Empties the point container

Parameters
optionunused

Definition at line 61 of file Chip.h.

◆ disable()

void o2::iotof::Chip::disable ( bool  disable)
inline

Definition at line 69 of file Chip.h.

◆ findDigit()

o2::iotof::LabeledDigit * o2::iotof::Chip::findDigit ( ULong64_t  key)
inline

reset points container

Definition at line 89 of file Chip.h.

◆ getChipIndex()

Int_t o2::iotof::Chip::getChipIndex ( ) const
inline

Definition at line 67 of file Chip.h.

◆ getDigits()

std::map< ULong64_t, o2::iotof::LabeledDigit > & o2::iotof::Chip::getDigits ( )
inline

Definition at line 63 of file Chip.h.

◆ getNumberOfDigits()

Int_t o2::iotof::Chip::getNumberOfDigits ( ) const
inline

Get the number of point assigned to the chip

Returns
Number of points assigned to the chip

Definition at line 74 of file Chip.h.

◆ isDisabled()

bool o2::iotof::Chip::isDisabled ( ) const
inline

Definition at line 70 of file Chip.h.

◆ isEmpty()

bool o2::iotof::Chip::isEmpty ( ) const
inline

Definition at line 64 of file Chip.h.

◆ setChipIndex()

void o2::iotof::Chip::setChipIndex ( Int_t  index)
inline

Definition at line 66 of file Chip.h.

Member Data Documentation

◆ mChipIndex

Int_t o2::iotof::Chip::mChipIndex = -1
protected

Chip ID.

Definition at line 82 of file Chip.h.

◆ mDigits

std::map<ULong64_t, o2::iotof::LabeledDigit> o2::iotof::Chip::mDigits
protected

Map of fired digits, possibly in multiple frames.

Definition at line 84 of file Chip.h.

◆ mDisabled

bool o2::iotof::Chip::mDisabled = false
protected

Flag to indicate if the chip is disabled (e.g. due to dead channels)

Definition at line 83 of file Chip.h.


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