15#include <fairlogger/Logger.h>
33 assert(mROFrameLength > 1.);
34 mROFrameLengthInv = 1. / mROFrameLength;
40 mNSimSteps =
v > 0 ?
v : 1;
41 mNSimStepsInv = 1.f / mNSimSteps;
49 mMinChargeToAccount =
v * frac2Account;
50 if (mMinChargeToAccount < 0 || mMinChargeToAccount > mChargeThreshold) {
51 mMinChargeToAccount = mChargeThreshold;
53 LOG(info) <<
"Set Alpide charge threshold to " << mChargeThreshold
54 <<
", single hit will be accounted from " << mMinChargeToAccount
62 printf(
"Alpide digitization params:\n");
63 printf(
"Continuous readout : %s\n", mIsContinuous ?
"ON" :
"OFF");
64 printf(
"Readout Frame Length(ns) : %f\n", mROFrameLength);
65 printf(
"Strobe delay (ns) : %f\n", mStrobeDelay);
66 printf(
"Strobe length (ns) : %f\n", mStrobeLength);
67 printf(
"Threshold (N electrons) : %d\n", mChargeThreshold);
68 printf(
"Min N electrons to account : %d\n", mMinChargeToAccount);
69 printf(
"Number of charge sharing steps : %d\n", mNSimSteps);
70 printf(
"ELoss to N electrons factor : %e\n", mEnergyToNElectrons);
71 printf(
"Noise level per pixel : %e\n", mNoisePerPixel);
72 printf(
"Charge time-response:\n");
Simulation parameters for the ALIPIDE chip.
ClassImp(o2::itsmft::DigiParams)
void setChargeThreshold(int v, float frac2Account=0.1)
void setROFrameLength(float ns)
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"