#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.
|
| | 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]
Constructor.
Definition at line 24 of file ShapeErrorData.h.
const TVectorD & xi() const
const TVectorD & xip() const
const CovMatrix & xipErr() const
const CovMatrix & xiErr() const
◆ ShapeErrorData() [2/2]
| LArSamples::ShapeErrorData::ShapeErrorData |
( |
const ShapeErrorData & | other | ) |
|
|
inline |
◆ ~ShapeErrorData()
| virtual LArSamples::ShapeErrorData::~ShapeErrorData |
( |
| ) |
|
|
inlinevirtual |
◆ add()
Definition at line 58 of file ShapeErrorData.cxx.
59{
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);
69}
int commonLwb(const IndexRange &other) const
int commonUpb(const IndexRange &other) const
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.
TMatrixTSym< double > CovMatrix
◆ 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 |
◆ 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::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 |
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 |
◆ 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.
15{
17 cout << "ShapeErrorData::xi : range error" << endl;
18 return TVectorD();
19 }
20
21 return m_xi.GetSub(first, last,
"I");
22}
bool checkRange(int &l, int &h) const
◆ xiErr() [1/2]
| const CovMatrix & LArSamples::ShapeErrorData::xiErr |
( |
| ) |
const |
|
inline |
◆ xiErr() [2/2]
| const CovMatrix ShapeErrorData::xiErr |
( |
int | first, |
|
|
int | last ) const |
Definition at line 36 of file ShapeErrorData.cxx.
37{
39 cout << "ShapeErrorData::xiErr : range error" << endl;
41 }
42
43 return m_xiErr.GetSub(first, last, first, last,
"I");
44}
◆ 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.
26{
28 cout << "ShapeErrorData::xip : range error" << endl;
29 return TVectorD();
30 }
31
32 return m_xip.GetSub(first, last,
"I");
33}
◆ xipErr() [1/2]
| const CovMatrix & LArSamples::ShapeErrorData::xipErr |
( |
| ) |
const |
|
inline |
◆ xipErr() [2/2]
| const CovMatrix ShapeErrorData::xipErr |
( |
int | first, |
|
|
int | last ) const |
Definition at line 47 of file ShapeErrorData.cxx.
48{
50 cout << "ShapeErrorData::xipErr : range error" << endl;
52 }
53
54 return m_xipErr.GetSub(first, last, first, last,
"I");
55}
◆ 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: