Package org.jlab.rec.dc.timetodistance
Class TableLoader
java.lang.Object
org.jlab.rec.dc.timetodistance.TableLoader
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic double[][]
static double[][]
static double[][]
static double[][]
static final double[]
static final double[]
static double[][]
static double[][]
static double[][]
static double[][][][][][]
static double[][]
static final Logger
static int
static int
static final int[][][][]
static int
static int
static int
static int
static final int
static int
static double[][]
static boolean
static double[][]
static double[][]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic double
calc_Time
(double x, double alpha, double bfield, int sector, int superlayer) static void
Fill
(IndexedTable t2dPressure, IndexedTable t2dPressRef, IndexedTable pressure) static void
static void
getConstants
(IndexedTable t2dPressure, IndexedTable t2dPressRef, IndexedTable pressure) static double
getDeltaTimeBeta
(double x, double beta, double distbeta, double v_0) static void
static void
test()
-
Field Details
-
LOGGER
-
NBINST
public static final int NBINST- See Also:
-
betaValues
public static final double[] betaValues -
BfieldValues
public static final double[] BfieldValues -
minBinIdxB
public static int minBinIdxB -
maxBinIdxB
public static int maxBinIdxB -
minBinIdxAlpha
public static int minBinIdxAlpha -
maxBinIdxAlpha
public static int maxBinIdxAlpha -
minBinIdxT
public static int minBinIdxT -
maxBinIdxT
public static final int[][][][] maxBinIdxT -
DISTFROMTIME
public static double[][][][][][] DISTFROMTIME -
timeBinWidth
public static int timeBinWidth -
maxTBin
public static int maxTBin -
useP
public static boolean useP -
delta_T0
public static double[][] delta_T0 -
delta_bfield_coefficient
public static double[][] delta_bfield_coefficient -
distbeta
public static double[][] distbeta -
vmid
public static double[][] vmid -
v0
public static double[][] v0 -
b1
public static double[][] b1 -
b2
public static double[][] b2 -
b3
public static double[][] b3 -
b4
public static double[][] b4 -
Tmax
public static double[][] Tmax -
FracDmaxAtMinVel
public static double[][] FracDmaxAtMinVel
-
-
Constructor Details
-
TableLoader
public TableLoader()
-
-
Method Details
-
main
-
test
public static void test() -
getConstants
public static void getConstants(IndexedTable t2dPressure, IndexedTable t2dPressRef, IndexedTable pressure) -
FillTable
public static void FillTable() -
Fill
-
calc_Time
public static double calc_Time(double x, double alpha, double bfield, int sector, int superlayer) - Parameters:
x
- distance to wire in cmalpha
- local angle in degbfield
- B field value a x in Tsector
- sectorsuperlayer
- superlayer- Returns:
- returns time (ns) when given inputs of distance x (cm), local angle alpha (degrees) and magnitude of bfield (Tesla).
-
getDeltaTimeBeta
public static double getDeltaTimeBeta(double x, double beta, double distbeta, double v_0)
-