@@ -58,17 +58,23 @@ void DigiParams::setChargeThreshold(int v, float frac2Account)
5858// ______________________________________________
5959void DigiParams::print () const
6060{
61- // print settings
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 " );
61+ LOGF (info, " Alpide digitization params:" );
62+ LOGF (info, " Continuous readout : %s" , mIsContinuous ? " ON" : " OFF" );
63+ if (mROFrameLayerRef >= 0 ) {
64+ LOGF (info, " Staggering mode with reference layer : %d" , mROFrameLayerRef );
65+ for (int i{0 }; i < (int )mROFrameLayerLengthInBC .size (); ++i) {
66+ LOGF (info, " Layer:%d Length(ns)[Offset(BC)] : %f [%d]" , i, mROFrameLayerLength [i], mROFrameLayerOffsetInBC [i]);
67+ }
68+ } else {
69+ LOGF (info, " Readout Frame Length(ns) : %f" , mROFrameLength );
70+ }
71+ LOGF (info, " Strobe delay (ns) : %f" , mStrobeDelay );
72+ LOGF (info, " Strobe length (ns) : %f" , mStrobeLength );
73+ LOGF (info, " Threshold (N electrons) : %d" , mChargeThreshold );
74+ LOGF (info, " Min N electrons to account : %d" , mMinChargeToAccount );
75+ LOGF (info, " Number of charge sharing steps : %d" , mNSimSteps );
76+ LOGF (info, " ELoss to N electrons factor : %e" , mEnergyToNElectrons );
77+ LOGF (info, " Noise level per pixel : %e" , mNoisePerPixel );
78+ LOGF (info, " Charge time-response:" );
7379 mSignalShape .print ();
7480}
0 commit comments