32 assert(mROFrameLength > 1.);
33 mROFrameLengthInv = 1. / mROFrameLength;
39 mNSimSteps =
v > 0 ?
v : 1;
40 mNSimStepsInv = 1.f / mNSimSteps;
48 mMinChargeToAccount =
v * frac2Account;
49 if (mMinChargeToAccount < 0 || mMinChargeToAccount > mChargeThreshold) {
50 mMinChargeToAccount = mChargeThreshold;
52 LOG(info) <<
"Set charge threshold to " << mChargeThreshold
53 <<
", single hit will be accounted from " << mMinChargeToAccount
61 printf(
"TRK digitization params:\n");
62 printf(
"Continuous readout : %s\n", mIsContinuous ?
"ON" :
"OFF");
63 printf(
"Readout Frame Length(ns) : %f\n", mROFrameLength);
64 printf(
"Strobe delay (ns) : %f\n", mStrobeDelay);
65 printf(
"Strobe length (ns) : %f\n", mStrobeLength);
66 printf(
"Threshold (N electrons) : %d\n", mChargeThreshold);
67 printf(
"Min N electrons to account : %d\n", mMinChargeToAccount);
68 printf(
"Number of charge sharing steps : %d\n", mNSimSteps);
69 printf(
"ELoss to N electrons factor : %e\n", mEnergyToNElectrons);
70 printf(
"Noise level per pixel : %e\n", mNoisePerPixel);
71 printf(
"Charge time-response:\n");
78 LOGP(fatal,
"cannot set response function from null");
80 mAlpSimResponse = std::make_unique<o2::trk::ChipSimResponse>(resp);
Simulation parameters for the TRK digitizer. Based on the ITS2 and ITS3 digitizer parameters.
virtual void print() const
void setChargeThreshold(int v, float frac2Account=0.1)
void setROFrameLength(float ns)
void setAlpSimResponse(const o2::itsmft::AlpideSimResponse *)
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"