public class CalibrationConstant extends Object implements LCGenericObject
| Constructor and Description |
|---|
CalibrationConstant(int cellId,
float offset,
float gain)
Convenience c'tor
|
CalibrationConstant(LCObject obj)
Convenience wrapper for LCGenericObjects read from file
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDataDescription()
The description string.
|
double |
getDoubleVal(int index)
Returns the double value for the given index.
|
float |
getFloatVal(int index)
Returns the float value for the given index.
|
int |
getIntVal(int index)
Returns the integer value for the given index.
|
int |
getNDouble()
Number of double values stored in this object.
|
int |
getNFloat()
Number of float values stored in this object.
|
int |
getNInt()
Number of integer values stored in this object.
|
String |
getTypeName()
The type name of the user class (typically the class name)
This type name is stored as a collection parameter "TypeName"
with every collection of LCGenericObject subclasses.
|
boolean |
isFixedSize()
True if objects of the implementation class have a fixed size, i.e
getNInt, getNFloat and getNDouble will return values that are constant during
the lifetime of the object.
|
public CalibrationConstant(int cellId,
float offset,
float gain)
public int getNInt()
LCGenericObjectgetNInt in interface LCGenericObjectpublic int getNFloat()
LCGenericObjectgetNFloat in interface LCGenericObjectpublic int getNDouble()
LCGenericObjectgetNDouble in interface LCGenericObjectpublic int getIntVal(int index)
LCGenericObjectgetIntVal in interface LCGenericObjectpublic float getFloatVal(int index)
LCGenericObjectgetFloatVal in interface LCGenericObjectpublic double getDoubleVal(int index)
LCGenericObjectgetDoubleVal in interface LCGenericObjectpublic boolean isFixedSize()
LCGenericObjectisFixedSize in interface LCGenericObjectpublic String getTypeName()
LCGenericObjectgetTypeName in interface LCGenericObjectpublic String getDataDescription()
LCGenericObjectgetDataDescription in interface LCGenericObjectJas4pp 1.5 © Java Analysis Studio for Particle Physics