ATLAS Offline Software
|
#include <SimpleShape.h>
Public Member Functions | |
SimpleShape (const std::vector< double > &values, const std::vector< double > &errors, double timeInterval=25, double startTime=0) | |
Constructor More... | |
SimpleShape (unsigned int nPoints, double timeInterval=25, double startTime=0) | |
SimpleShape (const SimpleShape &other) | |
SimpleShape (const ShapeInfo &shapeInfo, double scale=1, double shift=0, bool samplingTimeOnly=false) | |
SimpleShape (const AbsShape &other, double scale=1, double shift=0) | |
virtual | ~SimpleShape () |
double | timeInterval () const |
double | startTime () const |
unsigned int | nPoints () const |
double | value (unsigned int i) const |
double | time (unsigned int i) const |
double | covariance (unsigned int i, unsigned int j) const |
void | set (unsigned int i, double value, double error=-1) |
void | setError (unsigned int i, double error) |
SimpleShape * | diff () const |
bool | add (unsigned int k, double value, double error) |
SimpleShape * | add (const AbsShape &other, double scale=1, double shift=0) |
SimpleShape * | createEmpty () const |
TH1D * | histogram (const char *name="shape", const char *title="", bool timeInUnitOfSamples=false) const |
virtual double | error (unsigned int i) const |
TVectorD | values (int lwb, int upb) const |
int | findTimeInterval (double time) const |
int | interpolate (double time, double &value, double &error) const |
bool | interpolate (const AbsShape &other, TVectorD &values, CovMatrix &errors, int lwb=-1, int upb=-1) const |
int | interpolateDiff (double time, double &diff) const |
bool | interpolateDiff (const AbsShape &other, TVectorD &diffs, int lwb=-1, int upb=-1) const |
CovMatrix | covarianceMatrix (int lwb=-1, int upb=-1, const CovMatrix &refErr=CovMatrix(), bool withCorrs=true) const |
CovMatrix | covarianceMatrix (unsigned int nPoints, bool withCorrs=true) const |
CovMatrix | invCovarianceMatrix (int lwb=-1, int upb=-1, const CovMatrix &refErr=CovMatrix(), bool withCorrs=true) const |
CovMatrix | invCovarianceMatrix (unsigned int nPoints, bool withCorrs=true) const |
double | maxValue (bool withErrors=false) const |
double | minValue (bool withErrors=false) const |
int | maxPosition () const |
int | minPosition () const |
TGraphErrors * | graph (bool timeInUnitOfSamples=false) const |
SimpleShape * | resample (unsigned int nPts) const |
Static Public Member Functions | |
static bool | add (std::unique_ptr< SimpleShape > &s1, const AbsShape &s2) |
static bool | scaleAndShift (std::unique_ptr< SimpleShape > &s1, double scale, double shift=0) |
Private Member Functions | |
SimpleShape & | operator= (const SimpleShape &) |
Private Attributes | |
std::vector< double > | m_values |
std::vector< double > | m_errors |
double | m_timeInterval {} |
double | m_startTime {} |
Definition at line 25 of file SimpleShape.h.
SimpleShape::SimpleShape | ( | const std::vector< double > & | values, |
const std::vector< double > & | errors, | ||
double | timeInterval = 25 , |
||
double | startTime = 0 |
||
) |
SimpleShape::SimpleShape | ( | unsigned int | nPoints, |
double | timeInterval = 25 , |
||
double | startTime = 0 |
||
) |
Definition at line 23 of file SimpleShape.cxx.
|
inline |
Definition at line 35 of file SimpleShape.h.
SimpleShape::SimpleShape | ( | const ShapeInfo & | shapeInfo, |
double | scale = 1 , |
||
double | shift = 0 , |
||
bool | samplingTimeOnly = false |
||
) |
Definition at line 42 of file SimpleShape.cxx.
Definition at line 30 of file SimpleShape.cxx.
|
inlinevirtual |
Definition at line 43 of file SimpleShape.h.
SimpleShape * SimpleShape::add | ( | const AbsShape & | other, |
double | scale = 1 , |
||
double | shift = 0 |
||
) |
Definition at line 74 of file SimpleShape.cxx.
|
static |
Definition at line 124 of file SimpleShape.cxx.
bool SimpleShape::add | ( | unsigned int | k, |
double | value, | ||
double | error | ||
) |
|
inlinevirtual |
Implements LArSamples::AbsShape.
Definition at line 51 of file SimpleShape.h.
|
inherited |
Definition at line 198 of file AbsShape.cxx.
|
inherited |
Definition at line 223 of file AbsShape.cxx.
SimpleShape * SimpleShape::createEmpty | ( | ) | const |
Definition at line 98 of file SimpleShape.cxx.
SimpleShape * SimpleShape::diff | ( | ) | const |
Definition at line 62 of file SimpleShape.cxx.
|
virtualinherited |
Reimplemented in LArSamples::ScaledShiftedShape.
Definition at line 24 of file AbsShape.cxx.
|
inherited |
|
inherited |
Definition at line 186 of file AbsShape.cxx.
TH1D * SimpleShape::histogram | ( | const char * | name = "shape" , |
const char * | title = "" , |
||
bool | timeInUnitOfSamples = false |
||
) | const |
Definition at line 104 of file SimpleShape.cxx.
|
inherited |
Definition at line 147 of file AbsShape.cxx.
|
inherited |
Definition at line 83 of file AbsShape.cxx.
|
inherited |
Definition at line 168 of file AbsShape.cxx.
|
inherited |
|
inherited |
Definition at line 215 of file AbsShape.cxx.
|
inherited |
Definition at line 230 of file AbsShape.cxx.
|
inherited |
Definition at line 52 of file AbsShape.cxx.
|
inherited |
|
inherited |
Definition at line 61 of file AbsShape.cxx.
|
inherited |
|
inlinevirtual |
|
private |
|
inherited |
Definition at line 237 of file AbsShape.cxx.
|
static |
Definition at line 137 of file SimpleShape.cxx.
|
inline |
|
inline |
Definition at line 54 of file SimpleShape.h.
|
inline |
Definition at line 46 of file SimpleShape.h.
|
virtual |
Implements LArSamples::AbsShape.
Definition at line 56 of file SimpleShape.cxx.
|
inline |
Definition at line 45 of file SimpleShape.h.
|
inlinevirtual |
Implements LArSamples::AbsShape.
Definition at line 49 of file SimpleShape.h.
|
inherited |
|
private |
Definition at line 68 of file SimpleShape.h.
|
private |
Definition at line 69 of file SimpleShape.h.
|
private |
Definition at line 69 of file SimpleShape.h.
|
private |
Definition at line 68 of file SimpleShape.h.