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< DigitKey, 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::LabeledDigit * findDigit (DigitKey key)
 reset points container
 
void resizeTDCStates (int const size)
 Resize the vector of tdc states.
 
std::vector< std::array< double, 2 > > & getTDCStates ()
 
void addDigit (UShort_t row, UShort_t col, Int_t charge, double time, ULong64_t bc, Int_t tdc, 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< DigitKey, o2::iotof::LabeledDigit > mDigits
 Map of fired digits, possibly in multiple frames.
 
std::vector< std::array< double, 2 > > mTDCStates
 Vector of the last times the TDC pairs went busy.
 

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,
ULong64_t  bc,
Int_t  tdc,
o2::MCCompLabel  label 
)

Definition at line 35 of file Chip.cxx.

◆ ClassDefNV()

o2::iotof::Chip::ClassDefNV ( Chip  ,
1   
)
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 ( DigitKey  key)
inline

reset points container

Definition at line 94 of file Chip.h.

◆ getChipIndex()

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

Definition at line 67 of file Chip.h.

◆ getDigits()

std::map< DigitKey, 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.

◆ getTDCStates()

std::vector< std::array< double, 2 > > & o2::iotof::Chip::getTDCStates ( )
inline

Definition at line 81 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.

◆ resizeTDCStates()

void o2::iotof::Chip::resizeTDCStates ( int const  size)
inline

Resize the vector of tdc states.

Definition at line 80 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 86 of file Chip.h.

◆ mDigits

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

Map of fired digits, possibly in multiple frames.

Definition at line 88 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 87 of file Chip.h.

◆ mTDCStates

std::vector<std::array<double, 2> > o2::iotof::Chip::mTDCStates
protected

Vector of the last times the TDC pairs went busy.

Definition at line 89 of file Chip.h.


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