Calculate accumulated errors inside Geant4
- Up to now, we are already calculating the individual error at each point inside Geant4.
* This task consists on calculating the accumulated errors (r_error and max(x_error)) inside Geant4.
* To calculate r_error, which includes an averaging of a large number of possibly small number, take into account the following algorithm (which is also described in Knuth's books) in order to avoid numerical errors:
http://stackoverflow.com/questions/28820904/how-to-efficiently-compute-average-on-the-fly-moving-average * Also, the accumulated errors should be printed to output when different distances are covered by the particle. This should probably be hardcoded for the moment.