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

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

#include <Strip.h>

Public Member Functions

 Strip ()=default
 Default constructor.
 
 ~Strip ()=default
 Destructor.
 
 Strip (Int_t index)
 
 Strip (const Strip &ref)=default
 
void clear ()
 
void setStripIndex (Int_t index)
 
void init (Int_t index)
 
Int_t getStripIndex () const
 
Int_t getNumberOfDigits () const
 
o2::tof::DigitfindDigit (ULong64_t key)
 reset points container
 
Int_t addDigit (Int_t channel, Int_t tdc, Int_t tot, uint64_t bc, Int_t lbl=0, uint32_t triggerorbit=0, uint16_t triggerbunch=0, float geanttime=0, double t0=0)
 
void fillOutputContainer (std::vector< o2::tof::Digit > &digits)
 
std::map< ULong64_t, o2::tof::Digit > & getDigitMap ()
 

Static Public Attributes

static int mDigitMerged = 0
 

Protected Member Functions

 ClassDefNV (Strip, 1)
 

Protected Attributes

Int_t mStripIndex = -1
 Strip ID.
 
std::map< ULong64_t, o2::tof::DigitmDigits
 Map of fired digits, possibly in multiple frames.
 

Detailed Description

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

Definition at line 39 of file Strip.h.

Constructor & Destructor Documentation

◆ Strip() [1/3]

o2::tof::Strip::Strip ( )
default

Default constructor.

◆ ~Strip()

o2::tof::Strip::~Strip ( )
default

Destructor.

◆ Strip() [2/3]

Strip::Strip ( Int_t  index)

Main constructor

Parameters
stripindexIndex of the strip
matTransformation matrix

Definition at line 32 of file Strip.cxx.

◆ Strip() [3/3]

o2::tof::Strip::Strip ( const Strip ref)
default

Copy constructor

Parameters
refReference for the copy

Member Function Documentation

◆ addDigit()

Int_t Strip::addDigit ( Int_t  channel,
Int_t  tdc,
Int_t  tot,
uint64_t  bc,
Int_t  lbl = 0,
uint32_t  triggerorbit = 0,
uint16_t  triggerbunch = 0,
float  geanttime = 0,
double  t0 = 0 
)

Definition at line 37 of file Strip.cxx.

◆ ClassDefNV()

o2::tof::Strip::ClassDefNV ( Strip  ,
 
)
protected

◆ clear()

void o2::tof::Strip::clear ( )
inline

Empties the point container

Parameters
optionunused

Definition at line 60 of file Strip.h.

◆ fillOutputContainer()

void Strip::fillOutputContainer ( std::vector< o2::tof::Digit > &  digits)

Definition at line 60 of file Strip.cxx.

◆ findDigit()

o2::tof::Digit * o2::tof::Strip::findDigit ( ULong64_t  key)
inline

reset points container

Definition at line 97 of file Strip.h.

◆ getDigitMap()

std::map< ULong64_t, o2::tof::Digit > & o2::tof::Strip::getDigitMap ( )
inline

Definition at line 88 of file Strip.h.

◆ getNumberOfDigits()

Int_t o2::tof::Strip::getNumberOfDigits ( ) const
inline

Get the number of point assigned to the chip

Returns
Number of points assigned to the chip

Definition at line 78 of file Strip.h.

◆ getStripIndex()

Int_t o2::tof::Strip::getStripIndex ( ) const
inline

Get the chip index

Returns
Index of the chip

Definition at line 74 of file Strip.h.

◆ init()

void o2::tof::Strip::init ( Int_t  index)
inline

Definition at line 65 of file Strip.h.

◆ setStripIndex()

void o2::tof::Strip::setStripIndex ( Int_t  index)
inline

Change the chip index

Parameters
indexNew chip index

Definition at line 64 of file Strip.h.

Member Data Documentation

◆ mDigitMerged

int Strip::mDigitMerged = 0
static

Definition at line 87 of file Strip.h.

◆ mDigits

std::map<ULong64_t, o2::tof::Digit> o2::tof::Strip::mDigits
protected

Map of fired digits, possibly in multiple frames.

Definition at line 92 of file Strip.h.

◆ mStripIndex

Int_t o2::tof::Strip::mStripIndex = -1
protected

Strip ID.

Definition at line 91 of file Strip.h.


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