#include <ShapeErrorData.h>
|
| ShapeErrorData (const TVectorD &xi=TVectorD(), const TVectorD &xip=TVectorD(), const CovMatrix &xiErr=CovMatrix(), const CovMatrix &xipErr=CovMatrix(), double tbar=Definitions::none, int n=-1) |
| Constructor
More...
|
|
| ShapeErrorData (const ShapeErrorData &other) |
|
virtual | ~ShapeErrorData () |
|
unsigned int | nSamples () const |
|
const TVectorD & | xi () const |
|
const TVectorD & | xip () const |
|
const CovMatrix & | xiErr () const |
|
const CovMatrix & | xipErr () const |
|
int | lwb () const |
|
int | upb () const |
|
const TVectorD | xi (int first, int last) const |
|
const TVectorD | xip (int first, int last) const |
|
const CovMatrix | xiErr (int first, int last) const |
|
const CovMatrix | xipErr (int first, int last) const |
|
double | tbar () const |
|
int | n () const |
|
ShapeErrorData * | add (const ShapeErrorData &other) const |
|
ShapeErrorType | shapeErrorType () const |
|
void | setShapeErrorType (ShapeErrorType type) |
|
bool | isInRange (int i) const |
|
bool | hasSameRange (int lw, int up) const |
|
bool | hasSameRange (const IndexRange &other) const |
|
bool | hasSameRange (const TVectorD &v) const |
|
bool | providesRange (int lw, int up) const |
|
bool | providesRange (const IndexRange &other) const |
|
bool | providesRange (const TVectorD &v) const |
|
TString | rangeStr () const |
|
int | commonLwb (const IndexRange &other) const |
|
int | commonUpb (const IndexRange &other) const |
|
bool | checkRange (int &l, int &h) const |
|
Definition at line 19 of file ShapeErrorData.h.
◆ ShapeErrorData() [1/2]
◆ ShapeErrorData() [2/2]
◆ ~ShapeErrorData()
virtual LArSamples::ShapeErrorData::~ShapeErrorData |
( |
| ) |
|
|
inlinevirtual |
◆ add()
Definition at line 58 of file ShapeErrorData.cxx.
62 if (newUpb < newLwb)
return nullptr;
63 TVectorD newXi =
xi(newLwb, newUpb) +
other.xi(newLwb, newUpb);
64 TVectorD newXip =
xip(newLwb, newUpb) +
other.xip(newLwb, newUpb);
67 int newN =
n() +
other.n();
68 return new ShapeErrorData(newXi, newXip, newXiErr, newXipErr, newN);
◆ checkRange()
bool IndexRange::checkRange |
( |
int & |
l, |
|
|
int & |
h |
|
) |
| const |
|
inherited |
Definition at line 14 of file IndexRange.cxx.
19 cout <<
"IndexRange::checkRange : lower bound " <<
l <<
" is out of bounds" << endl;
26 cout <<
"IndexRange::checkRange : upper bound " <<
h <<
" is out of bounds" << endl;
◆ commonLwb()
◆ commonUpb()
◆ hasSameRange() [1/3]
bool LArSamples::IndexRange::hasSameRange |
( |
const IndexRange & |
other | ) |
const |
|
inlineinherited |
◆ 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::ShapeErrorData::lwb |
( |
| ) |
const |
|
inlinevirtual |
◆ n()
int LArSamples::ShapeErrorData::n |
( |
| ) |
const |
|
inline |
◆ nSamples()
unsigned int LArSamples::ShapeErrorData::nSamples |
( |
| ) |
const |
|
inline |
◆ providesRange() [1/3]
bool LArSamples::IndexRange::providesRange |
( |
const IndexRange & |
other | ) |
const |
|
inlineinherited |
◆ 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 |
◆ setShapeErrorType()
void LArSamples::ShapeErrorData::setShapeErrorType |
( |
ShapeErrorType |
type | ) |
|
|
inline |
◆ shapeErrorType()
◆ tbar()
double LArSamples::ShapeErrorData::tbar |
( |
| ) |
const |
|
inline |
◆ upb()
int LArSamples::ShapeErrorData::upb |
( |
| ) |
const |
|
inlinevirtual |
◆ xi() [1/2]
const TVectorD& LArSamples::ShapeErrorData::xi |
( |
| ) |
const |
|
inline |
◆ xi() [2/2]
const TVectorD ShapeErrorData::xi |
( |
int |
first, |
|
|
int |
last |
|
) |
| const |
Definition at line 14 of file ShapeErrorData.cxx.
17 cout <<
"ShapeErrorData::xi : range error" << endl;
◆ xiErr() [1/2]
◆ xiErr() [2/2]
Definition at line 36 of file ShapeErrorData.cxx.
39 cout <<
"ShapeErrorData::xiErr : range error" << endl;
◆ xip() [1/2]
const TVectorD& LArSamples::ShapeErrorData::xip |
( |
| ) |
const |
|
inline |
◆ xip() [2/2]
const TVectorD ShapeErrorData::xip |
( |
int |
first, |
|
|
int |
last |
|
) |
| const |
Definition at line 25 of file ShapeErrorData.cxx.
28 cout <<
"ShapeErrorData::xip : range error" << endl;
◆ xipErr() [1/2]
◆ xipErr() [2/2]
Definition at line 47 of file ShapeErrorData.cxx.
50 cout <<
"ShapeErrorData::xipErr : range error" << endl;
◆ m_n
int LArSamples::ShapeErrorData::m_n {} |
|
private |
◆ m_shapeErrorType
◆ m_tbar
double LArSamples::ShapeErrorData::m_tbar {} |
|
private |
◆ m_xi
TVectorD LArSamples::ShapeErrorData::m_xi |
|
private |
◆ m_xiErr
CovMatrix LArSamples::ShapeErrorData::m_xiErr |
|
private |
◆ m_xip
TVectorD LArSamples::ShapeErrorData::m_xip |
|
private |
◆ m_xipErr
CovMatrix LArSamples::ShapeErrorData::m_xipErr |
|
private |
The documentation for this class was generated from the following files:
ShapeErrorData(const TVectorD &xi=TVectorD(), const TVectorD &xip=TVectorD(), const CovMatrix &xiErr=CovMatrix(), const CovMatrix &xipErr=CovMatrix(), double tbar=Definitions::none, int n=-1)
Constructor