12#ifndef ALICEO2_TRK_CHIPDIGITSCONTAINER_
13#define ALICEO2_TRK_CHIPDIGITSCONTAINER_
20#include <fairlogger/Logger.h>
36 return (
static_cast<ULong64_t
>(roframe) << (8 *
sizeof(UInt_t))) + (
static_cast<ULong64_t
>(
col) << (8 *
sizeof(Short_t))) +
row;
61 maxRows = o2::trk::constants::VD::petal::layer::nRows[
layer];
62 maxCols = o2::trk::constants::VD::petal::layer::nCols;
67 mean =
params->getNoisePerPixel() * maxRows * maxCols;
68 nel =
static_cast<int>(
params->getChargeThreshold() * 1.1);
70 LOG(
debug) <<
"Adding noise for chip " <<
mChipIndex <<
" with mean " << mean <<
" and charge " << nel;
72 for (UInt_t rof = rofMin; rof <= rofMax; rof++) {
73 nhits = gRandom->Poisson(mean);
74 for (Int_t
i = 0;
i < nhits; ++
i) {
75 row = gRandom->Integer(maxRows);
76 col = gRandom->Integer(maxCols);
77 LOG(
debug) <<
"Generated noise hit at ROF " << rof <<
", row " <<
row <<
", col " <<
col;
Simulation parameters for the TRK digitizer. Based on the ITS2 and ITS3 digitizer parameters.
transient container for single chip digits accumulation
Definition of the SegmentationAlpide class.
Definition of the SegmentationChipclass.
Container for similated points connected to a given chip.
void addDigit(ULong64_t key, UInt_t roframe, UShort_t row, UShort_t col, int charge, o2::MCCompLabel lbl)
const o2::itsmft::NoiseMap * mNoiseMap
o2::itsmft::PreDigit * findDigit(ULong64_t key)
UShort_t mChipIndex
chip index
const o2::itsmft::NoiseMap * mDeadChanMap
bool isNoisy(int chip, int row, int col) const
static constexpr int NRows
static constexpr int NCols
ClassDefNV(ChipDigitsContainer, 1)
static ULong64_t getOrderingKey(UInt_t roframe, UShort_t row, UShort_t col)
Get global ordering key made of readout frame, column and row.
void addNoise(UInt_t rofMin, UInt_t rofMax, const o2::itsmft::DigiParams *params, int maxRows=o2::itsmft::SegmentationAlpide::NRows, int maxCols=o2::itsmft::SegmentationAlpide::NCols)=delete
Adds noise digits, deleted the one using the itsmft::DigiParams interface.
GLenum const GLfloat * params
GLenum GLuint GLint GLint layer
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"