#include <emcTracedFEM.h>
Inherits emcCalFEM.
Inherited by emcGainFEM.
Inheritance diagram for emcTracedFEM:
It is used for Gains, TacPeds and TofT0s calibrations.
Definition at line 21 of file emcTracedFEM.h.
Public Types | |
typedef std::vector< emcTracedValue * > | emcItemVector |
Public Member Functions | |
emcTracedFEM (int absPosition) | |
ctor. | |
emcTracedFEM (int absPosition, const PHTimeStamp &t1, const PHTimeStamp &t2) | |
ctor. | |
emcTracedFEM (const emcTracedFEM &) | |
copy ctor. | |
emcTracedFEM & | operator= (const emcTracedFEM &) |
assignment operator. | |
virtual emcTracedFEM * | clone (void) const =0 |
virtual constructor. | |
virtual | ~emcTracedFEM () |
dtor. | |
virtual void | AddNewItem (int channel, emcTracedValue *item) |
Add a new item for a given channel. | |
virtual float | Compact (float epsilon)=0 |
Compact items that are consistent within epsilon. | |
virtual float | DefaultReturnValue (void) const |
Default value to be returned by getValue methods. | |
void | Delete (void) |
Delete all items. | |
void | FirstItem (int channel) const |
Initialize iterator for looping over items corresponding to channel. | |
virtual const char * | GetCategory (void) const =0 |
Still virtual at this point. | |
size_t | GetNumberOfChannels (void) const |
How many channels are handled by this object ? | |
size_t | GetNumberOfItems (void) const |
How many objects are kept by this object ? It's equal to sum_over_channel(number_of_item_for_channel). | |
size_t | GetNumberOfItems (int ichannel) const |
How many items for a given channel ? | |
virtual float | getValueFast (int ichannel, time_t x) const |
Get the value for a given channel at a given x. | |
virtual float | getValueFast (int ichannel, int x) const |
See getValue(int, int). | |
virtual bool | IsEqual (const emcCalFEM &obj) const |
comparison. | |
emcTracedValue * | LastItem (int channel) const |
Get last line of a given channel. | |
emcTracedValue * | NextItem (void) const |
Get next item of the loop initialized with FirstValue(item). | |
virtual std::ostream & | Print (std::ostream &out=std::cout, int level=0) const |
Print (for debug purposes). | |
void | RemoveLastItems (void) |
Remove last item for each channel. | |
virtual void | Reset (void) |
Reset the object. | |
virtual void | SetNumberOfChannels (int nchannels) |
Set the number of channels (recreating the object from scratch). | |
virtual void | writeDataToFile (FILE *fp) const |
Some text output on a file. | |
Protected Member Functions | |
void | Copy (emcTracedFEM &o) const |
Copy this into o. | |
emcTracedValue * | getTV (int channel, time_t absoluteX, size_t &thecase) const |
Protected Attributes | |
std::vector< emcItemVector * > | fItems |
size_t | fNItems |
Private Attributes | |
size_t | fCurrentItem |
size_t | fCurrentPosition |
|
Definition at line 120 of file emcTracedFEM.h. |
|
ctor.
Definition at line 36 of file emcTracedFEM.C. References classname, name, emcNamed::NameIt(), and title. |
|
ctor.
Definition at line 45 of file emcTracedFEM.C. References classname, name, emcNamed::NameIt(), and title. |
|
copy ctor.
Definition at line 55 of file emcTracedFEM.C. References Copy(). |
|
dtor.
Definition at line 101 of file emcTracedFEM.C. References Delete(). |
|
Add a new item for a given channel. The item is adopted (i.e. this object is responsible for the deletion of item). Reimplemented in emcGainFEM, and emcTacPedFEM. Definition at line 108 of file emcTracedFEM.C. References fItems, and emcTracedValue::GetX(). Referenced by emcTacPedFEM::AddNewItem(), emcGainFEM::AddNewItem(), and testTracedFEMMerger(). |
|
virtual constructor.
Implements emcCalFEM. Implemented in emcGainFEM, emcTacPedFEM, and emcTofT0FEM. |
|
Compact items that are consistent within epsilon. WARNING: not thoroughly tested yet. Use with care. Implemented in emcGainFEM, and emcTacPedFEM. |
|
Copy this into o.
Definition at line 74 of file emcTracedFEM.C. References emcCalFEM::Copy(), fItems, and j. Referenced by emcTracedFEM(), and operator=(). |
|
Default value to be returned by getValue methods.
Reimplemented from emcCalFEM. Definition at line 52 of file emcTracedFEM.h. |
|
Delete all items.
Definition at line 143 of file emcTracedFEM.C. Referenced by operator=(), Reset(), SetNumberOfChannels(), and ~emcTracedFEM(). |
|
Initialize iterator for looping over items corresponding to channel.
Definition at line 164 of file emcTracedFEM.C. References fCurrentItem, fCurrentPosition, and fItems. Referenced by dump(), IsEqual(), emcTracedFEMPlotter::MakeGraph(), emcCalibrationDataHelper::patch(), scale(), and emcDB::UpdateXValue(). |
|
Still virtual at this point. see emcGainFEM, emcTacPedFEM, emcTofT0FEM for concrete one. Implements emcCalFEM. Implemented in emcGainFEM, emcTacPedFEM, and emcTofT0FEM. Referenced by namer(). |
|
How many channels are handled by this object ?
Implements emcCalFEM. Definition at line 66 of file emcTracedFEM.h. References fItems. Referenced by emcGainFEM::Compact(), inspect(), LongTermGains(), emcTracedFEMMerger::merge(), and emcDB::UpdateXValue(). |
|
How many items for a given channel ?
Definition at line 174 of file emcTracedFEM.C. References fItems. |
|
How many objects are kept by this object ? It's equal to sum_over_channel(number_of_item_for_channel).
Definition at line 71 of file emcTracedFEM.h. References fNItems. Referenced by emcGainFEM::Compact(), inspect(), and LongTermGains(). |
|
Definition at line 184 of file emcTracedFEM.C. References fItems, and emcCalFEM::GetXmin(). Referenced by getValueFast(). |
|
See getValue(int, int).
Reimplemented from emcCalFEM. Definition at line 84 of file emcTracedFEM.h. References getValueFast(). |
|
Get the value for a given channel at a given x.
Reimplemented from emcCalFEM. Definition at line 254 of file emcTracedFEM.C. References emcTracedValue::GetConstant(), getTV(), emcTracedValue::getValue(), emcCalFEM::GetXmax(), and emcCalFEM::GetXmin(). Referenced by getValueFast(). |
|
comparison.
Implements emcCalFEM. Definition at line 312 of file emcTracedFEM.C. References compare(), FirstItem(), emcTracedValue::GetConstant(), emcTracedValue::GetSlope(), emcTracedValue::GetX(), emcTracedValue::isConstant(), NextItem(), and emcCalFEM::size(). |
|
Get last line of a given channel. Please note that you'll get the true pointer to our guts, so you can easily change things in place. That might be cool, but that's also dangerous, so be careful... Definition at line 353 of file emcTracedFEM.C. References fItems. |
|
Get next item of the loop initialized with FirstValue(item). See also comment for LastItem method. Definition at line 373 of file emcTracedFEM.C. References fCurrentItem, fCurrentPosition, fItems, and emcCalFEM::size(). Referenced by dump(), IsEqual(), emcTracedFEMPlotter::MakeGraph(), emcCalibrationDataHelper::patch(), scale(), and emcDB::UpdateXValue(). |
|
assignment operator.
Definition at line 63 of file emcTracedFEM.C. |
|
Print (for debug purposes).
Reimplemented from emcCalFEM. Definition at line 391 of file emcTracedFEM.C. References fItems, emcCalFEM::GetXmax(), emcCalFEM::GetXmin(), j, and emcCalFEM::Print(). Referenced by testTracedFEMMerger(). |
|
Remove last item for each channel. This is a fix for PbSc m_091001 calibration data set. Definition at line 411 of file emcTracedFEM.C. |
|
Reset the object.
Implements emcCalFEM. Definition at line 428 of file emcTracedFEM.C. References Delete(), emcCalFEM::SetXmax(), and emcCalFEM::SetXmin(). |
|
Set the number of channels (recreating the object from scratch).
Reimplemented from emcCalFEM. Definition at line 436 of file emcTracedFEM.C. References Delete(), and fItems. Referenced by emcTofT0FEM::Default(), emcTacPedFEM::Default(), emcGainFEM::Default(), and testTracedFEMMerger(). |
|
Some text output on a file.
Reimplemented in emcTofT0FEM. Definition at line 449 of file emcTracedFEM.C. References fItems, emcCalFEM::GetStartValTime(), and j. Referenced by emcGains::writeDataToFile(). |
|
Definition at line 139 of file emcTracedFEM.h. Referenced by FirstItem(), and NextItem(). |
|
Definition at line 141 of file emcTracedFEM.h. Referenced by FirstItem(), and NextItem(). |
|
Definition at line 133 of file emcTracedFEM.h. Referenced by AddNewItem(), emcTacPedFEM::Compact(), emcGainFEM::CompactOneChannelConstants(), emcGainFEM::CompactOneChannelLines(), Copy(), Delete(), FirstItem(), GetNumberOfChannels(), GetNumberOfItems(), getTV(), LastItem(), NextItem(), Print(), RemoveLastItems(), SetNumberOfChannels(), writeDataToFile(), and emcTofT0FEM::writeDataToFile(). |
|
Definition at line 135 of file emcTracedFEM.h. Referenced by emcTacPedFEM::Compact(), emcGainFEM::CompactOneChannelConstants(), GetNumberOfItems(), and RemoveLastItems(). |