#include <Residual.h>
◆ ResidualCalculator() [1/3]
| LArSamples::ResidualCalculator::ResidualCalculator |
( |
| ) |
|
|
inline |
◆ ResidualCalculator() [2/3]
| LArSamples::ResidualCalculator::ResidualCalculator |
( |
unsigned int | l, |
|
|
unsigned int | u, |
|
|
bool | weigh = false ) |
|
inline |
◆ ResidualCalculator() [3/3]
| LArSamples::ResidualCalculator::ResidualCalculator |
( |
const Averager & | regresser, |
|
|
bool | weigh = false ) |
|
inline |
◆ ~ResidualCalculator()
| virtual LArSamples::ResidualCalculator::~ResidualCalculator |
( |
| ) |
|
|
inlinevirtual |
◆ add()
| bool ResidualCalculator::add |
( |
int | run, |
|
|
int | event ) |
◆ append()
◆ checkRange()
| bool IndexRange::checkRange |
( |
int & | l, |
|
|
int & | h ) const |
|
inherited |
Definition at line 14 of file IndexRange.cxx.
15{
16 if (l < 0)
19 cout <<
"IndexRange::checkRange : lower bound " <<
l <<
" is out of bounds" << endl;
20 return false;
21 }
22
23 if (h < 0)
26 cout <<
"IndexRange::checkRange : upper bound " <<
h <<
" is out of bounds" << endl;
27 return false;
28 }
29
30 return true;
31}
virtual int lwb() const =0
bool isInRange(int i) const
virtual int upb() const =0
l
Printing final latex table to .tex output file.
◆ commonLwb()
| int LArSamples::IndexRange::commonLwb |
( |
const IndexRange & | other | ) |
const |
|
inlineinherited |
◆ commonUpb()
| int LArSamples::IndexRange::commonUpb |
( |
const IndexRange & | other | ) |
const |
|
inlineinherited |
◆ description()
| TString ResidualCalculator::description |
( |
| ) |
const |
◆ event()
| int LArSamples::ResidualCalculator::event |
( |
unsigned int | i | ) |
const |
|
inline |
◆ fill()
| bool ResidualCalculator::fill |
( |
const Residual & | residual | ) |
|
◆ fill_with_weight()
| bool ResidualCalculator::fill_with_weight |
( |
const Residual & | residual, |
|
|
double | w ) |
|
private |
◆ find()
| int ResidualCalculator::find |
( |
int | run, |
|
|
int | event ) const |
◆ hasSameRange() [1/3]
| bool LArSamples::IndexRange::hasSameRange |
( |
const IndexRange & | other | ) |
const |
|
inlineinherited |
Definition at line 30 of file IndexRange.h.
bool hasSameRange(int lw, int up) const
◆ hasSameRange() [2/3]
| bool LArSamples::IndexRange::hasSameRange |
( |
const TVectorD & | v | ) |
const |
|
inlineinherited |
◆ hasSameRange() [3/3]
| bool LArSamples::IndexRange::hasSameRange |
( |
int | lw, |
|
|
int | up ) const |
|
inlineinherited |
◆ isInRange()
| bool LArSamples::IndexRange::isInRange |
( |
int | i | ) |
const |
|
inlineinherited |
◆ lwb()
| int LArSamples::ResidualCalculator::lwb |
( |
| ) |
const |
|
inlinevirtual |
◆ providesRange() [1/3]
| bool LArSamples::IndexRange::providesRange |
( |
const IndexRange & | other | ) |
const |
|
inlineinherited |
Definition at line 34 of file IndexRange.h.
bool providesRange(int lw, int up) const
◆ providesRange() [2/3]
| bool LArSamples::IndexRange::providesRange |
( |
const TVectorD & | v | ) |
const |
|
inlineinherited |
◆ providesRange() [3/3]
| bool LArSamples::IndexRange::providesRange |
( |
int | lw, |
|
|
int | up ) const |
|
inlineinherited |
◆ rangeStr()
| TString LArSamples::IndexRange::rangeStr |
( |
| ) |
const |
|
inlineinherited |
◆ regresser()
| const Averager * LArSamples::ResidualCalculator::regresser |
( |
| ) |
const |
|
inline |
◆ remove()
| bool ResidualCalculator::remove |
( |
const Residual & | residual | ) |
|
◆ run()
| int LArSamples::ResidualCalculator::run |
( |
unsigned int | i | ) |
const |
|
inline |
◆ shapeErrorData()
Definition at line 236 of file LArCalorimeter/LArSamplesMon/src/Residual.cxx.
237{
241
243 if (denom < 1E-6) {
244 TVectorD xip(
lwb(),
upb());
246
247 if (
size() > 2) cout <<
"WARNING: variance of t < 1E-6, returning correction without derivative term. (V = " <<
denom <<
", N = " <<
size() <<
")" << endl;
248 return new ShapeErrorData(xi, xip, xiErr, xipErr, tbar,
regresser()->
nEntries());
249 }
250
251 TVectorD xip = TVectorD(
regresser()->covarianceMatrix()[
upb() + 1]).GetSub(
lwb(),
upb(),
"I");
253
254 TVectorD xipErrVect = TVectorD(
regresser()->covarianceMatrixErrors()[
upb() + 1]).GetSub(
lwb(),
upb(),
"I");
255 xipErrVect *= 1/
denom;
257 for (
int k1 =
lwb(); k1 <=
upb(); k1++) xipErr(k1, k1) = TMath::Power(xipErrVect(k1), 2);
258
259 return new ShapeErrorData(xi, xip, xiErr, xipErr, tbar,
regresser()->
nEntries());
260}
double mean(unsigned int i) const
CovMatrix meanErrorMatrix() const
CovMatrix covarianceMatrix() const
TMatrixTSym< double > CovMatrix
◆ size()
| unsigned int LArSamples::ResidualCalculator::size |
( |
| ) |
const |
|
inline |
◆ upb()
| int LArSamples::ResidualCalculator::upb |
( |
| ) |
const |
|
inlinevirtual |
◆ weigh()
| bool LArSamples::ResidualCalculator::weigh |
( |
| ) |
const |
|
inline |
◆ weight()
| double ResidualCalculator::weight |
( |
const Residual & | residual | ) |
const |
◆ m_events
| std::vector<int> LArSamples::ResidualCalculator::m_events |
|
private |
◆ m_regresser
| Averager LArSamples::ResidualCalculator::m_regresser |
|
private |
◆ m_runs
| std::vector<int> LArSamples::ResidualCalculator::m_runs |
|
private |
◆ m_weigh
| bool LArSamples::ResidualCalculator::m_weigh |
|
private |
The documentation for this class was generated from the following files: