15#include <fairlogger/Logger.h>
31 assert(mROFrameLength > 1.);
32 mROFrameLengthInv = 1. / mROFrameLength;
38 mNSimSteps =
v > 0 ?
v : 1;
39 mNSimStepsInv = 1.f / mNSimSteps;
47 mMinChargeToAccount =
v * frac2Account;
48 if (mMinChargeToAccount < 0 || mMinChargeToAccount > mChargeThreshold) {
49 mMinChargeToAccount = mChargeThreshold;
51 LOG(info) <<
"Set charge threshold to " << mChargeThreshold
52 <<
", single hit will be accounted from " << mMinChargeToAccount
60 printf(
"TRK digitization params:\n");
61 printf(
"Continuous readout : %s\n", mIsContinuous ?
"ON" :
"OFF");
62 printf(
"Readout Frame Length(ns) : %f\n", mROFrameLength);
63 printf(
"Strobe delay (ns) : %f\n", mStrobeDelay);
64 printf(
"Strobe length (ns) : %f\n", mStrobeLength);
65 printf(
"Threshold (N electrons) : %d\n", mChargeThreshold);
66 printf(
"Min N electrons to account : %d\n", mMinChargeToAccount);
67 printf(
"Number of charge sharing steps : %d\n", mNSimSteps);
68 printf(
"ELoss to N electrons factor : %e\n", mEnergyToNElectrons);
69 printf(
"Noise level per pixel : %e\n", mNoisePerPixel);
70 printf(
"Charge time-response:\n");
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)
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"