Hi experts,
I have a question about AddWhiteNoise() function. In my code I am trying to add a white noise to the induced current signal of sense wire in a diamond detector. The core code is like this:
for (const auto& cluster : track.GetClusters()) {
++nc;
nesum += cluster.electrons.size();
drift.DisablePlotting();
for (const auto& electron : cluster.electrons) {
drift.DriftElectron(electron.x, electron.y, electron.z, electron.t);
}
for (const auto& hole : cluster.ions) {
drift.DriftHole(hole.x, hole.y, hole.z, hole.t);
}
}
std::cout << nesum << " electrons, "
<< nesum * ElementaryCharge << " fC.\n";
sensor.AddWhiteNoise("sign",100.,true,1.0);
//sensor.ConvoluteSignals();
outfile << "x0 = " << x0 << " " << "y0 = " << y0 <<"\n";
outfile << "********************************************" << "\n";
I didn’t convolute the signal with transfer function, and I hope to see some fuzzing shape in the signal… but I didn’t, here is the signal I got, it is smooth, and I tried to change ENC and q0, also not working.
Do you know what could be wrong with it?
Thanks!
Huazhen