GET library
GETRunMean.hh
Go to the documentation of this file.
1 //======================================================================
2 /*! \file GETRunMean.hh
3  *
4  * Header file for functions related to the averaging of runs events.
5  */
6 //======================================================================
7 
8 #ifndef GET_RUN_MEAN_HH
9 #define GET_RUN_MEAN_HH
10 
11 #include "GETSystem.hh"
12 #include "GETSystemAnalyser.hh"
13 
14 //======================================================================
15 
16 extern u_int getEventCountInfo;
17 
18 // Compute samples average / RMS over run full events
19 extern int GETRunMean ( GETSystem & get, const string runfile, u_int nmax = 0 );
20 extern int GETRunRMS ( GETSystem & get, const string runfile, u_int nmax = 0, bool same = true );
21 
22 
23 // Compute samples average / RMS over run AsAd frames events
24 extern int GETRunAsAdMean ( GETSystem & get, const string runfile, u_int * ndat = NULL, u_int nmax = 0 );
25 extern int GETRunAsAdRMS ( GETSystem & get, const string runfile, u_int * ndat = NULL, u_int nmax = 0, bool same = true );
26 
27 // Compute samples average / RMS over run, for each hit channel
28 extern int GETRunHitChannelMean ( GETSystem & get, const string runfile, u_int * ndat = NULL, u_int nmax = 0 );
29 extern int GETRunHitChannelRMS ( GETSystem & get, const string runfile, u_int * ndat = NULL, u_int nmax = 0, bool same = true );
30 
31 
32 // Averaging events from files
33 extern int GETSystemMean ( GETSystem & get, const string & data_file, int nmax = 0 , bool outcorr = false);
34 extern int GETSystemMean ( GETSystem & get, const GStringList & file_list, int nmax = 0, bool outcorr = false );
35 
36 extern int GETSystemMeanPower ( GETSystem & get, const string & data_file, int nmax = 0, bool outcorr = false );
37 extern int GETSystemMeanPower ( GETSystem & get, const GStringList & file_list, int nmax = 0, bool outcorr = false );
38 
39 extern int GETSystemStdDeviation ( GETSystem & get, const string & data_file, int nmax = 0, bool outcorr = false, bool same = true );
40 extern int GETSystemStdDeviation ( GETSystem & get, const GStringList & file_list, int nmax = 0, bool outcorr = false, bool same = true );
41 
42 #include "icc/GETRunMean.icc"
43 
44 //======================================================================
45 #endif
int GETRunAsAdMean(GETSystem &get, const string runfile, u_int *ndat, u_int nmax)
Definition: GETRunMean.cpp:40
u_int getEventCountInfo
Definition: GETRunMean.cpp:11
int GETRunRMS(GETSystem &get, const string runfile, u_int nmax=0, bool same=true)
Definition: GETRunMean.icc:32
int GETRunHitChannelMean(GETSystem &get, const string runfile, u_int *ndat, u_int nmax)
Definition: GETRunMean.cpp:423
int GETSystemMean(GETSystem &get, const string &data_file, int nmax, bool outcorr)
Definition: GETRunMean.cpp:791
int GETRunAsAdRMS(GETSystem &get, const string runfile, u_int *ndat, u_int nmax, bool same)
Definition: GETRunMean.cpp:223
int GETRunHitChannelRMS(GETSystem &get, const string runfile, u_int *ndat, u_int nmax, bool same)
Definition: GETRunMean.cpp:601
int GETSystemMeanPower(GETSystem &get, const string &data_file, int nmax, bool outcorr)
Definition: GETRunMean.cpp:954
int GETSystemStdDeviation(GETSystem &get, const string &data_file, int nmax, bool outcorr, bool same)
Definition: GETRunMean.cpp:1141
int GETRunMean(GETSystem &get, const string runfile, u_int nmax=0)
Definition: GETRunMean.icc:17
Definition: GETSystem.hh:147