25 constexpr float ns2sec = 1e-9;
33 maxRows = constants::VD::petal::layer::nRows[
layer];
34 maxCols = constants::VD::petal::layer::nCols;
35 mean =
params->getNoisePerPixel() * maxRows * maxCols;
36 nel =
static_cast<int>(
params->getChargeThreshold() * 1.1);
40 mean =
params->getNoisePerPixel() * maxRows * maxCols;
41 nel =
static_cast<int>(
params->getChargeThreshold() * 1.1);
44 LOG(
debug) <<
"Adding noise for chip " <<
mChipIndex <<
" with mean " << mean <<
" and charge " << nel;
46 for (UInt_t rof = rofMin; rof <= rofMax; rof++) {
47 nhits = gRandom->Poisson(mean);
48 for (Int_t
i = 0;
i < nhits; ++
i) {
49 row = gRandom->Integer(maxRows);
50 col = gRandom->Integer(maxCols);
51 LOG(
debug) <<
"Generated noise hit at ROF " << rof <<
", row " <<
row <<
", col " <<
col;
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 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.
ChipDigitsContainer(UShort_t idx=0)
GLenum const GLfloat * params
GLenum GLuint GLint GLint layer
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"