#include <ScaledErrorData.h>
|
| ScaledErrorData (const ShapeErrorData &sed, double scale=1, double time=0) |
| Constructor
More...
|
|
| ScaledErrorData (const ScaledErrorData &other) |
|
virtual | ~ScaledErrorData () |
|
double | scale () const |
|
double | time () const |
|
const TVectorD | offsets (int first=-1, int last=-1) const |
|
const CovMatrix | errors (int first=-1, int last=-1) const |
|
unsigned int | nSamples () const |
|
const TVectorD & | xi () const |
|
const TVectorD | xi (int first, int last) const |
|
const TVectorD & | xip () const |
|
const TVectorD | xip (int first, int last) const |
|
const CovMatrix & | xiErr () const |
|
const CovMatrix | xiErr (int first, int last) const |
|
const CovMatrix & | xipErr () const |
|
const CovMatrix | xipErr (int first, int last) const |
|
int | lwb () const |
|
int | upb () 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 17 of file ScaledErrorData.h.
◆ ScaledErrorData() [1/2]
LArSamples::ScaledErrorData::ScaledErrorData |
( |
const ShapeErrorData & |
sed, |
|
|
double |
scale = 1 , |
|
|
double |
time = 0 |
|
) |
| |
|
inline |
◆ ScaledErrorData() [2/2]
◆ ~ScaledErrorData()
virtual LArSamples::ScaledErrorData::~ScaledErrorData |
( |
| ) |
|
|
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()
◆ errors()
const CovMatrix ScaledErrorData::errors |
( |
int |
first = -1 , |
|
|
int |
last = -1 |
|
) |
| const |
Definition at line 31 of file ScaledErrorData.cxx.
34 cout <<
"ScaledErrorData::errors : range error" << endl;
◆ 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 |
|
inlinevirtualinherited |
◆ n()
int LArSamples::ShapeErrorData::n |
( |
| ) |
const |
|
inlineinherited |
◆ nSamples()
unsigned int LArSamples::ShapeErrorData::nSamples |
( |
| ) |
const |
|
inlineinherited |
◆ offsets()
const TVectorD ScaledErrorData::offsets |
( |
int |
first = -1 , |
|
|
int |
last = -1 |
|
) |
| const |
Definition at line 14 of file ScaledErrorData.cxx.
17 cout <<
"ScaledErrorData::offsets : range error" << endl;
◆ 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 |
◆ scale()
double LArSamples::ScaledErrorData::scale |
( |
| ) |
const |
|
inline |
◆ setShapeErrorType()
void LArSamples::ShapeErrorData::setShapeErrorType |
( |
ShapeErrorType |
type | ) |
|
|
inlineinherited |
◆ shapeErrorType()
◆ tbar()
double LArSamples::ShapeErrorData::tbar |
( |
| ) |
const |
|
inlineinherited |
◆ time()
double LArSamples::ScaledErrorData::time |
( |
| ) |
const |
|
inline |
◆ upb()
int LArSamples::ShapeErrorData::upb |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ xi() [1/2]
const TVectorD& LArSamples::ShapeErrorData::xi |
( |
| ) |
const |
|
inlineinherited |
◆ xi() [2/2]
const TVectorD ShapeErrorData::xi |
( |
int |
first, |
|
|
int |
last |
|
) |
| const |
|
inherited |
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 |
|
inlineinherited |
◆ xip() [2/2]
const TVectorD ShapeErrorData::xip |
( |
int |
first, |
|
|
int |
last |
|
) |
| const |
|
inherited |
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 {} |
|
privateinherited |
◆ m_scale
double LArSamples::ScaledErrorData::m_scale |
|
private |
◆ m_shapeErrorType
◆ m_tbar
double LArSamples::ShapeErrorData::m_tbar {} |
|
privateinherited |
◆ m_time
double LArSamples::ScaledErrorData::m_time |
|
private |
◆ m_xi
TVectorD LArSamples::ShapeErrorData::m_xi |
|
privateinherited |
◆ m_xiErr
CovMatrix LArSamples::ShapeErrorData::m_xiErr |
|
privateinherited |
◆ m_xip
TVectorD LArSamples::ShapeErrorData::m_xip |
|
privateinherited |
◆ m_xipErr
CovMatrix LArSamples::ShapeErrorData::m_xipErr |
|
privateinherited |
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