|
ATLAS Offline Software
|
Go to the documentation of this file.
16 : m_n(0), m_wTot(0), m_lwb(0)
18 for (
unsigned int i = 0;
i <
n;
i++)
add();
23 : m_n(0), m_wTot(0), m_lwb(lwb)
49 cout <<
"Cannot add more variables to the Averager, data filling has started already." << endl;
72 cout <<
"Filling with wrong indices!" << endl;
77 for (
int i1 =
lwb(); i1 <=
upb(); i1++) {
81 for (
int i2 =
lwb(); i2 <=
upb(); i2++) {
116 cout <<
"No entries filled yet!" << endl;
128 cout <<
"No entries filled yet!" << endl;
132 for (
int i1 =
lwb(); i1 <=
upb(); i1++)
142 cout <<
"No entries filled yet!" << endl;
146 for (
int i1 =
lwb(); i1 <=
upb(); i1++)
147 for (
int i2 =
lwb(); i2 <=
upb(); i2++)
157 cout <<
"No entries filled yet!" << endl;
160 for (
int i1 =
lwb(); i1 <=
upb(); i1++)
161 for (
int i2 =
lwb(); i2 <=
upb(); i2++)
171 cout <<
"No entries filled yet!" << endl;
175 for (
int i1 =
lwb(); i1 <=
upb(); i1++)
176 for (
int i2 =
lwb(); i2 <=
upb(); i2++) {
194 cout <<
"Index " <<
i <<
" out of range" << endl;
204 cout <<
"Index " <<
i <<
" out of range" << endl;
214 cout <<
"Index " <<
i <<
" out of range" << endl;
224 cout <<
"Indices (" <<
i <<
", " << j <<
") out of range" << endl;
234 cout <<
"Indices (" <<
i <<
", " << j <<
") out of range" << endl;
243 if (x < 0 && x > -1
E-10)
return 0;
244 return TMath::Sqrt(
x);
double meanError(unsigned int i) const
TMatrixTSym< double > CovMatrix
bool hasSameRange(int lw, int up) const
bool append(const Averager &other)
TVectorD meanErrors() const
bool fill(const TVectorD &values, double w=1)
double mean(unsigned int i) const
Averager & operator=(const Averager &other)
double covarianceError(unsigned int i, unsigned j) const
storage of the time histories of all the cells
double covariance(unsigned int i, unsigned j) const
CovMatrix meanErrorMatrix() const
bool isInRange(int i) const
CovMatrix covarianceMatrixErrors() const
CovMatrix covarianceMatrix() const
static double safeSqrt(double x)
unsigned int nEntries() const
std::vector< double > m_xMin
bool add(double xMin=-DBL_MAX, double xMax=DBL_MAX)
std::vector< double > m_xMax
Averager(unsigned int n=0)
Constructor
double rms(unsigned int i) const