public final class ScalerUtilities extends Object
Currently this is used only for computing live time measurements from standard scaler data.
Modifier and Type | Class and Description |
---|---|
static class |
ScalerUtilities.LiveTimeIndex
Indices for getting live time measurements.
|
Modifier | Constructor and Description |
---|---|
private |
ScalerUtilities()
Disallow class instantiation.
|
Modifier and Type | Method and Description |
---|---|
static double |
getLiveTime(ScalerData data,
ScalerUtilities.LiveTimeIndex index)
Get a specific live time measurement by index.
|
static double[] |
getLiveTimes(ScalerData data)
Get the live time measurements from standard scaler data.
|
public static double getLiveTime(ScalerData data, ScalerUtilities.LiveTimeIndex index)
index
- the enum of the index typeScalerUtilities.LiveTimeIndex
public static double[] getLiveTimes(ScalerData data)
This is returned as a double array of size 3 containing:
[0] = FCUP TDC measurement [1] = FCUP TRG measurement [2] = CLOCK measurementThis method assumes the standard scaler data structure as outlined in HPSJAVA-470.
data
- the scaler dataCopyright © 2019. All rights reserved.