LCCD
1.5.0
|
Example for a simple calibration class based on the LCFixedObject template. More...
#include <CalibrationConstant.hh>
Public Member Functions | |
CalibrationConstant (int cellID, float offset, float gain) | |
Convenient c'tor. | |
CalibrationConstant (LCObject *obj) | |
'Copy constructor' needed to interpret LCCollection read from file/database. | |
virtual | ~CalibrationConstant () |
Important for memory handling. | |
int | getCellID () |
float | getOffset () |
float | getGain () |
void | print (std::ostream &os) |
const std::string | getTypeName () const |
const std::string | getDataDescription () const |
Example for a simple calibration class based on the LCFixedObject template.
LCFixedObject uses an instance of LCGenericObjectImpl that holds the data, thus there is no overhead when the data is read from a database or file for copying it to some local structure (Decorator pattern).