68 #include "StTrsAnalogSignalGenerator.hh"
69 #include "SystemOfUnits.h"
71 #ifndef ST_NO_NAMESPACES
72 using namespace units;
78 RandGauss StTrsAnalogSignalGenerator::mGaussDistribution(mEngine);
81 : mGeomDb(geo), mSCDb(sc), mElectronicsDb(el),
82 transformer(gStTpcDb),
86 mSignalThreshold(0.*volt),
87 mSuppressEmptyTimeBins(true)
91 mSigma1 = mElectronicsDb->shapingTime();
93 mTau = mElectronicsDb->tau();
94 mGain = mElectronicsDb->nominalGain();
96 mSamplingFrequency = mElectronicsDb->samplingFrequency();
101 mAddNoiseUnderSignalOnly =
false;
106 mTimeShiftOfSignalCentroid =mElectronicsDb->tZero();
107 PR(mTimeShiftOfSignalCentroid/nanosecond);
111 void StTrsAnalogSignalGenerator::fractionSampled()
119 double to = 1.5*nanosecond;
120 double tmax = 62500.*nanosecond;
122 mFractionSampled = ::log(1+mSigma1/to)/::log(1+tmax/to);