26 setNSimSteps(mNSimSteps);
33 mROFrameLayerLength[
layer] = lNS;
34 assert(mROFrameLayerLength[
layer] > 1.);
35 mROFrameLayerLengthInv[
layer] = 1. / mROFrameLayerLength[
layer];
42 mNSimSteps =
v > 0 ?
v : 1;
43 mNSimStepsInv = 1.f / mNSimSteps;
52 mMinChargeToAccount =
v * frac2Account;
53 if (mMinChargeToAccount < 0 || mMinChargeToAccount > mChargeThreshold) {
54 mMinChargeToAccount = mChargeThreshold;
56 LOG(info) <<
"Set charge threshold to " << mChargeThreshold
57 <<
", single hit will be accounted from " << mMinChargeToAccount
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");
80 LOG(
debug) <<
"Response function info: ";
83 LOGP(fatal,
"cannot set response function from null");
85 mResponse = std::make_unique<o2::trkft3::ChipSimResponse>(resp);
Simulation parameters for the TRK digitizer. Based on the ITS2 and ITS3 digitizer parameters.
static constexpr const char * getName(ID id)
names of defined detectors
const std::string & getDataPath() const
virtual void print() const
void setChargeThreshold(int v, float frac2Account=0.1)
void setResponse(const o2::itsmft::AlpideSimResponse *)
void setROFrameLength(float ns, int layer)
GLenum GLuint GLint GLint layer
LOG(info)<< "Compressed in "<< sw.CpuTime()<< " s"