GET library
GETRunMean.icc File Reference

Functions

int GETRunMean (GETSystem &get, const string runfile, u_int nmax)
 
int GETRunRMS (GETSystem &get, const string runfile, u_int nmax, bool same)
 

Detailed Description

Inline code file for functions related to the averaging of runs events.

Function Documentation

int GETRunMean ( GETSystem get,
const string  runfile,
u_int  nmax 
)
inline

Function reading a run file, and summing signals from all events in order to compute the average, that is stored in the output samples of the GET system channels. The function returns the number of events read.

Parameters
getGET system object
runfilerun file pattern
nmaxmaximum number of events to read (0 for all)

References GETSystemMean().

int GETRunRMS ( GETSystem get,
const string  runfile,
u_int  nmax,
bool  same 
)
inline

Function reading a run file, and computing the standard deviation from all events compared to the (average) samples initially stored in the output samples of the GET system channels. The resulting RMS samples are then stored in the output samples of the GET system channels, replacing the average samples. The function returns the number of events read,.

Parameters
getGET system object
runfilerun file pattern
nmaxmaximum number of events to read (0 for all)
samewhether the RMS is computed from same data than the average (then the sum is divided by N-1 instead of N)

References GETSystemStdDeviation().