emcTracedValue Class Reference
[Tower calibration]

#include <emcTracedValue.h>

List of all members.


Detailed Description

Stores the data on a single tracing line.

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 &)


Constructor & Destructor Documentation

emcTracedValue::emcTracedValue (  Float_t *  bp = 0,
bool  isconstant = false
) 
 

Ctor.

Definition at line 22 of file emcTracedValue.C.

References Set().

emcTracedValue::emcTracedValue (  int  thetime,
float  constant,
float  slope,
bool  isconstant = false
) 
 

ctor

Definition at line 33 of file emcTracedValue.C.

References Set().

emcTracedValue::emcTracedValue (  const emcTracedValue &   ) 
 

Copy ctor.

Definition at line 40 of file emcTracedValue.C.

References fIsConstant, and GLine.

emcTracedValue::~emcTracedValue (   )  [inline]
 

Dtor.

Definition at line 33 of file emcTracedValue.h.


Member Function Documentation

float emcTracedValue::GetConstant (  void   )  const [inline]
 

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().

float emcTracedValue::GetSlope (  void   )  const [inline]
 

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().

Float_t emcTracedValue::getValue (  Int_t  _x  )  [inline]
 

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().

Float_t emcTracedValue::getValue (  Float_t  _x  ) 
 

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.

Float_t emcTracedValue::getValue (  void   )  [inline]
 

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().

int emcTracedValue::GetX (  void   )  const [inline]
 

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().

bool emcTracedValue::isConstant (  void   )  const [inline]
 

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().

void emcTracedValue::MakeConstant (  bool  isconstant = true  )  [inline]
 

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().

Bool_t emcTracedValue::operator< (  const emcTracedValue &  GL  )  [inline]
 

Definition at line 91 of file emcTracedValue.h.

References GLine.

Bool_t emcTracedValue::operator< (  const Int_t &  time  )  [inline]
 

Definition at line 82 of file emcTracedValue.h.

References GLine.

emcTracedValue & emcTracedValue::operator= (  const emcTracedValue &   ) 
 

assignment operator

Definition at line 50 of file emcTracedValue.C.

References fIsConstant, and GLine.

Bool_t emcTracedValue::operator== (  const emcTracedValue &  GL  )  [inline]
 

Definition at line 85 of file emcTracedValue.h.

References GLine.

Bool_t emcTracedValue::operator== (  const Int_t &  time  )  [inline]
 

Definition at line 76 of file emcTracedValue.h.

References GLine.

Bool_t emcTracedValue::operator> (  const emcTracedValue &  GL  )  [inline]
 

Definition at line 88 of file emcTracedValue.h.

References GLine.

Bool_t emcTracedValue::operator> (  const Int_t &  time  )  [inline]
 

Definition at line 79 of file emcTracedValue.h.

References GLine.

void emcTracedValue::readData (  FILE *   ) 
 

Read single line from input stream.

Definition at line 90 of file emcTracedValue.C.

References GLine.

void emcTracedValue::Set (  int  x,
float  constant,
float  slope
) 
 

Definition at line 72 of file emcTracedValue.C.

References GLine.

void emcTracedValue::Set (  int  x,
float  constant,
float  slope,
bool  isconstant
) 
 

Definition at line 81 of file emcTracedValue.C.

References fIsConstant.

Referenced by emcGainFEM::CompactOneChannelConstants(), emcTracedValue(), emcCalibrationDataHelper::patch(), scale(), and emcDB::UpdateXValue().

void emcTracedValue::writeData (  FILE *   ) 
 

Write single line into output stream.

Definition at line 96 of file emcTracedValue.C.

References GLine.


Friends And Related Function Documentation

std::ostream& operator<< (  std::ostream &  ,
const emcTracedValue & 
)  [friend]
 


Member Data Documentation

bool emcTracedValue::fIsConstant [protected]
 

Definition at line 97 of file emcTracedValue.h.

Referenced by emcTracedValue(), getValue(), isConstant(), MakeConstant(), operator=(), and Set().

Float_t emcTracedValue::GLine[3] [protected]
 

{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().


The documentation for this class was generated from the following files: