Skip to content

Commit

Permalink
Reduce number of significant digits shown for RMS in MCPL stats.
Browse files Browse the repository at this point in the history
  • Loading branch information
tkittel committed Jun 18, 2024
1 parent de6229c commit 951d461
Show file tree
Hide file tree
Showing 3 changed files with 773 additions and 773 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1538,7 +1538,7 @@ def dump_stats(stats):
s=stats[statname]
assert s['type']=='hist'
su = '%s %s'%(statname.ljust(6),('[%s]'%s['unit']).rjust(5)) if s['unit'] else statname
print('%s : %15g %15g %15g %15g'%(su.ljust(12),s['mean'],s['rms'],s['min'],s['max']))
print('%s : %15g %15.5g %15g %15g'%(su.ljust(12),s['mean'],s['rms'],s['min'],s['max']))
for statname in _possible_freq_stats:
if not statname in stats:
continue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -444,9 +444,9 @@ ekin [MeV] : 0 0 0 0
x [cm] : 0 0 0 0
y [cm] : 0 0 0 0
z [cm] : 0 0 0 0
ux : 0.162236 0.510558 -0.897362 0.931058
uy : 0.0465362 0.569592 -0.74432 0.969813
uz : 0.246546 0.570635 -0.643018 0.914273
ux : 0.162236 0.51056 -0.897362 0.931058
uy : 0.0465362 0.56959 -0.74432 0.969813
uz : 0.246546 0.57063 -0.643018 0.914273
time [ms] : 0 0 0 0
weight : 1 0 1 1
polx : 0 0 0 0
Expand All @@ -467,16 +467,16 @@ sum(weights) : 5
------------------------------------------------------------------------------
: mean rms min max
------------------------------------------------------------------------------
ekin [MeV] : 0.7404 0.604534 0 1.234
ekin [MeV] : 0.7404 0.60453 0 1.234
x [cm] : 0 0 0 0
y [cm] : 0 0 0 0
z [cm] : 0.02 0.0141421 0 0.04
ux : 0.02 0.0141421 0 0.04
uy : 9.00201e-05 0.632313 -0.99955 1
uz : 0.19981 0.748102 -0.99995 0.9998
z [cm] : 0.02 0.014142 0 0.04
ux : 0.02 0.014142 0 0.04
uy : 9.00201e-05 0.63231 -0.99955 1
uz : 0.19981 0.7481 -0.99995 0.9998
time [ms] : 0 0 0 0
weight : 1 0 1 1
polx : -0.02 0.0141421 -0.04 -0
polx : -0.02 0.014142 -0.04 -0
poly : 0 0 0 0
polz : 0 0 0 0
------------------------------------------------------------------------------
Expand All @@ -494,17 +494,17 @@ sum(weights) : 159.9
: mean rms min max
------------------------------------------------------------------------------
ekin [MeV] : 3384.74 2975.1 0 6000
x [cm] : 3.33333 4.71405 0 10
y [cm] : 3.33333 4.71405 0 10
z [cm] : 3.33333 4.71405 0 10
ux : 0.0118824 0.577228 -1 1
x [cm] : 3.33333 4.714 0 10
y [cm] : 3.33333 4.714 0 10
z [cm] : 3.33333 4.714 0 10
ux : 0.0118824 0.57723 -1 1
uy : -0.000625391 0.57735 -1 1
uz : 0.000625391 0.57735 -1 1
time [ms] : 14634.1 25766.1 0 60000
time [ms] : 14634.1 25766 0 60000
weight : 0.82 0.36 0.1 1
polx : 0.0813008 0.273297 0 1
poly : 0.0813008 0.273297 0 1
polz : 0.0813008 0.273297 0 1
polx : 0.0813008 0.2733 0 1
poly : 0.0813008 0.2733 0 1
polz : 0.0813008 0.2733 0 1
------------------------------------------------------------------------------
pdgcode : 2112 (n) 12.3 ( 7.69%)
22 (gamma) 12.3 ( 7.69%)
Expand Down Expand Up @@ -1185,16 +1185,16 @@ sum(weights) : 5
------------------------------------------------------------------------------
: mean rms min max
------------------------------------------------------------------------------
ekin [MeV] : 0.7404 0.604534 0 1.234
ekin [MeV] : 0.7404 0.60453 0 1.234
x [cm] : 0 0 0 0
y [cm] : 0 0 0 0
z [cm] : 0.02 0.0141421 0 0.04
ux : 0.02 0.0141421 0 0.04
uy : 9.00201e-05 0.632313 -0.99955 1
uz : 0.19981 0.748102 -0.99995 0.9998
z [cm] : 0.02 0.014142 0 0.04
ux : 0.02 0.014142 0 0.04
uy : 9.00201e-05 0.63231 -0.99955 1
uz : 0.19981 0.7481 -0.99995 0.9998
time [ms] : 0 0 0 0
weight : 1 0 1 1
polx : -0.02 0.0141421 -0.04 -0
polx : -0.02 0.014142 -0.04 -0
poly : 0 0 0 0
polz : 0 0 0 0
------------------------------------------------------------------------------
Expand All @@ -1211,16 +1211,16 @@ sum(weights) : 5
------------------------------------------------------------------------------
: mean rms min max
------------------------------------------------------------------------------
ekin [MeV] : 0.7404 0.604534 0 1.234
ekin [MeV] : 0.7404 0.60453 0 1.234
x [cm] : 0 0 0 0
y [cm] : 0 0 0 0
z [cm] : 0.02 0.0141421 0 0.04
ux : 0.02 0.0141421 0 0.04
uy : 9.00201e-05 0.632313 -0.99955 1
uz : 0.19981 0.748102 -0.99995 0.9998
z [cm] : 0.02 0.014142 0 0.04
ux : 0.02 0.014142 0 0.04
uy : 9.00201e-05 0.63231 -0.99955 1
uz : 0.19981 0.7481 -0.99995 0.9998
time [ms] : 0 0 0 0
weight : 1 0 1 1
polx : -0.02 0.0141421 -0.04 -0
polx : -0.02 0.014142 -0.04 -0
poly : 0 0 0 0
polz : 0 0 0 0
------------------------------------------------------------------------------
Expand Down Expand Up @@ -1312,9 +1312,9 @@ ekin [MeV] : 0 0 0 0
x [cm] : 0 0 0 0
y [cm] : 0 0 0 0
z [cm] : 0 0 0 0
ux : 0.162236 0.510558 -0.897362 0.931058
uy : 0.0465362 0.569592 -0.74432 0.969813
uz : 0.246546 0.570635 -0.643018 0.914273
ux : 0.162236 0.51056 -0.897362 0.931058
uy : 0.0465362 0.56959 -0.74432 0.969813
uz : 0.246546 0.57063 -0.643018 0.914273
time [ms] : 0 0 0 0
weight : 1 0 1 1
polx : 0 0 0 0
Expand All @@ -1340,17 +1340,17 @@ sum(weights) : 159.9
: mean rms min max
------------------------------------------------------------------------------
ekin [MeV] : 3384.74 2975.1 0 6000
x [cm] : 3.33333 4.71405 0 10
y [cm] : 3.33333 4.71405 0 10
z [cm] : 3.33333 4.71405 0 10
ux : 0.0118824 0.577228 -1 1
x [cm] : 3.33333 4.714 0 10
y [cm] : 3.33333 4.714 0 10
z [cm] : 3.33333 4.714 0 10
ux : 0.0118824 0.57723 -1 1
uy : -0.000625391 0.57735 -1 1
uz : 0.000625391 0.57735 -1 1
time [ms] : 14634.1 25766.1 0 60000
time [ms] : 14634.1 25766 0 60000
weight : 0.82 0.36 0.1 1
polx : 0.0813008 0.273297 0 1
poly : 0.0813008 0.273297 0 1
polz : 0.0813008 0.273297 0 1
polx : 0.0813008 0.2733 0 1
poly : 0.0813008 0.2733 0 1
polz : 0.0813008 0.2733 0 1
------------------------------------------------------------------------------
pdgcode : 2112 (n) 12.3 ( 7.69%)
22 (gamma) 12.3 ( 7.69%)
Expand Down
Loading

0 comments on commit 951d461

Please sign in to comment.