7 #include "CLHEP/Random/RandGaussQ.h"
21 std::vector<ESSample> essamples =
encode(
cs, engine);
23 df.setSize(
cs.size());
24 for (
int i = 0;
i <
df.size();
i++) {
25 df.setSample(
i, essamples[
i]);
30 for (
int i = 0;
i <
df.size();
i++) {
39 <<
"ESElectroncSim requires the RandomNumberGeneratorService\n"
40 "which is not present in the configuration file. You must add the service\n"
41 "in the configuration file or remove the modules that require it.";
49 int baseline_ = (
int)it_ped->getMean();
50 double sigma_ = (double)it_ped->getRms();
51 double MIPADC_ = (double)(*it_mip);
56 for (
int i = 0;
i < timeframe.
size();
i++) {
61 noi = CLHEP::RandGaussQ::shoot(engine, 0., sigma_);
64 signal = timeframe[
i] * ADCGeV + noi + baseline_;