1 #ifndef CalibrationConstant_h
2 #define CalibrationConstant_h 1
5 #include "UTIL/LCFixedObject.h"
12 #define OFFSET_INDEX 0
15 using namespace lcio ;
34 obj()->setIntVal( ID_INDEX , cellID ) ;
35 obj()->setFloatVal( OFFSET_INDEX , offset ) ;
36 obj()->setFloatVal( GAIN_INDEX , gain ) ;
48 int getCellID() {
return obj()->getIntVal( ID_INDEX ) ; }
49 float getOffset() {
return obj()->getFloatVal( OFFSET_INDEX ) ; }
50 float getGain() {
return obj()->getFloatVal( GAIN_INDEX ) ; }
52 void print( std::ostream& os ) ;
57 const std::string getTypeName()
const {
58 return"CalibrationConstant" ;
61 const std::string getDataDescription()
const {
62 return "i:cellID,f:offset,f:gain" ;
CalibrationConstant(int cellID, float offset, float gain)
Convenient c'tor.
Definition: CalibrationConstant.hh:32
virtual ~CalibrationConstant()
Important for memory handling.
Definition: CalibrationConstant.hh:44
CalibrationConstant(LCObject *obj)
'Copy constructor' needed to interpret LCCollection read from file/database.
Definition: CalibrationConstant.hh:41
Example for a simple calibration class based on the LCFixedObject template.
Definition: CalibrationConstant.hh:26