#include <emcTracedValue.h>
The decision is made to store lines without upper bounds for validity periods (valid to infinity unless further lines exist).
Definition at line 16 of file emcTracedValue.h.
Public Member Functions | |
emcTracedValue (Float_t *bp=0, bool isconstant=false) | |
Ctor. | |
emcTracedValue (int thetime, float constant, float slope, bool isconstant=false) | |
ctor | |
emcTracedValue (const emcTracedValue &) | |
Copy ctor. | |
emcTracedValue & | operator= (const emcTracedValue &) |
assignment operator | |
~emcTracedValue () | |
Dtor. | |
bool | isConstant (void) const |
This object does not use it slope really. | |
int | GetX (void) const |
Get starting X for this line. | |
float | GetConstant (void) const |
Get the value of the constant of the line (intercept). | |
float | GetSlope (void) const |
Get the value of the slope of the line. | |
Float_t | getValue (void) |
Applicable if stored value was computed using EmcTraceAverage (constant within the period of validity). | |
Float_t | getValue (Float_t _x) |
Applicable if stored value was computed using EmcTraceLine (linear function with validity period). | |
Float_t | getValue (Int_t _x) |
Same as above but for integer x (which is the real type of this x). | |
void | MakeConstant (bool isconstant=true) |
Decide whether this object really uses its slope or not. | |
void | readData (FILE *) |
Read single line from input stream. | |
void | Set (int x, float constant, float slope, bool isconstant) |
void | Set (int x, float constant, float slope) |
void | writeData (FILE *) |
Write single line into output stream. | |
Bool_t | operator== (const Int_t &time) |
Bool_t | operator> (const Int_t &time) |
Bool_t | operator< (const Int_t &time) |
Bool_t | operator== (const emcTracedValue &GL) |
Bool_t | operator> (const emcTracedValue &GL) |
Bool_t | operator< (const emcTracedValue &GL) |
Protected Attributes | |
Float_t | GLine [3] |
{StartTime(integer in fact),constant,slope}. | |
bool | fIsConstant |
Friends | |
std::ostream & | operator<< (std::ostream &, const emcTracedValue &) |
|
Ctor.
Definition at line 22 of file emcTracedValue.C. References Set(). |
|
ctor
Definition at line 33 of file emcTracedValue.C. References Set(). |
|
Copy ctor.
Definition at line 40 of file emcTracedValue.C. References fIsConstant, and GLine. |
|
Dtor.
Definition at line 33 of file emcTracedValue.h. |
|
Get the value of the constant of the line (intercept).
Definition at line 42 of file emcTracedValue.h. References GLine. Referenced by emcGainFEM::CompactOneChannelConstants(), emcGainFEM::CompactOneChannelLines(), emcTracedFEM::getValueFast(), emcTracedFEM::IsEqual(), emcTracedFEMPlotter::MakeGraph(), emcCalibrationDataHelper::patch(), scale(), emcOMTracedFEMT< T, B >::ToPdbCalBank(), and emcDB::UpdateXValue(). |
|
Get the value of the slope of the line.
Definition at line 45 of file emcTracedValue.h. References GLine. Referenced by emcGainFEM::CompactOneChannelConstants(), emcTracedFEM::IsEqual(), emcCalibrationDataHelper::patch(), scale(), emcOMTracedFEMT< T, B >::ToPdbCalBank(), and emcDB::UpdateXValue(). |
|
Same as above but for integer x (which is the real type of this x).
Definition at line 57 of file emcTracedValue.h. References getValue(). |
|
Applicable if stored value was computed using EmcTraceLine (linear function with validity period).
Definition at line 61 of file emcTracedValue.C. References fIsConstant, and GLine. |
|
Applicable if stored value was computed using EmcTraceAverage (constant within the period of validity).
Definition at line 49 of file emcTracedValue.h. References GLine. Referenced by getValue(), emcTracedFEM::getValueFast(), and emcTracedFEMPlotter::MakeGraph(). |
|
Get starting X for this line.
Definition at line 39 of file emcTracedValue.h. References GLine. Referenced by emcTracedFEM::AddNewItem(), emcGainFEM::CompactOneChannelConstants(), emcGainFEM::CompactOneChannelLines(), emcTracedFEM::IsEqual(), emcTracedFEMPlotter::MakeGraph(), emcCalibrationDataHelper::patch(), scale(), and emcOMTracedFEMT< T, B >::ToPdbCalBank(). |
|
This object does not use it slope really.
Definition at line 36 of file emcTracedValue.h. References fIsConstant. Referenced by emcTracedFEM::IsEqual(), operator<<(), emcCalibrationDataHelper::patch(), and scale(). |
|
Decide whether this object really uses its slope or not.
Definition at line 61 of file emcTracedValue.h. References fIsConstant. Referenced by emcTacPedFEM::AddNewItem(), and emcGainFEM::AddNewItem(). |
|
Definition at line 91 of file emcTracedValue.h. References GLine. |
|
Definition at line 82 of file emcTracedValue.h. References GLine. |
|
assignment operator
Definition at line 50 of file emcTracedValue.C. References fIsConstant, and GLine. |
|
Definition at line 85 of file emcTracedValue.h. References GLine. |
|
Definition at line 76 of file emcTracedValue.h. References GLine. |
|
Definition at line 88 of file emcTracedValue.h. References GLine. |
|
Definition at line 79 of file emcTracedValue.h. References GLine. |
|
Read single line from input stream.
Definition at line 90 of file emcTracedValue.C. References GLine. |
|
Definition at line 72 of file emcTracedValue.C. References GLine. |
|
Definition at line 81 of file emcTracedValue.C. References fIsConstant. Referenced by emcGainFEM::CompactOneChannelConstants(), emcTracedValue(), emcCalibrationDataHelper::patch(), scale(), and emcDB::UpdateXValue(). |
|
Write single line into output stream.
Definition at line 96 of file emcTracedValue.C. References GLine. |
|
|
|
Definition at line 97 of file emcTracedValue.h. Referenced by emcTracedValue(), getValue(), isConstant(), MakeConstant(), operator=(), and Set(). |
|
{StartTime(integer in fact),constant,slope}.
Definition at line 96 of file emcTracedValue.h. Referenced by emcTracedValue(), GetConstant(), GetSlope(), getValue(), GetX(), operator<(), operator<<(), operator=(), operator==(), operator>(), readData(), Set(), and writeData(). |