Package org.jlab.rec.dc.timetodistance
Class TableLoader
java.lang.Object
org.jlab.rec.dc.timetodistance.TableLoader
- 
Field SummaryFieldsModifier 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 Loggerstatic intstatic intstatic final int[][][][]static intstatic intstatic intstatic intstatic final intstatic intstatic double[][]static booleanstatic double[][]static double[][]
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic doublecalc_Time(double x, double alpha, double bfield, int sector, int superlayer) static voidFill(IndexedTable t2dPressure, IndexedTable t2dPressRef, IndexedTable pressure) static voidstatic voidgetConstants(IndexedTable t2dPressure, IndexedTable t2dPressRef, IndexedTable pressure) static doublegetDeltaTimeBeta(double x, double beta, double distbeta, double v_0) static voidstatic voidtest()
- 
Field Details- 
LOGGER
- 
NBINSTpublic static final int NBINST- See Also:
 
- 
betaValuespublic static final double[] betaValues
- 
BfieldValuespublic static final double[] BfieldValues
- 
minBinIdxBpublic static int minBinIdxB
- 
maxBinIdxBpublic static int maxBinIdxB
- 
minBinIdxAlphapublic static int minBinIdxAlpha
- 
maxBinIdxAlphapublic static int maxBinIdxAlpha
- 
minBinIdxTpublic static int minBinIdxT
- 
maxBinIdxTpublic static final int[][][][] maxBinIdxT
- 
DISTFROMTIMEpublic static double[][][][][][] DISTFROMTIME
- 
timeBinWidthpublic static int timeBinWidth
- 
maxTBinpublic static int maxTBin
- 
usePpublic static boolean useP
- 
delta_T0public static double[][] delta_T0
- 
delta_bfield_coefficientpublic static double[][] delta_bfield_coefficient
- 
distbetapublic static double[][] distbeta
- 
vmidpublic static double[][] vmid
- 
v0public static double[][] v0
- 
b1public static double[][] b1
- 
b2public static double[][] b2
- 
b3public static double[][] b3
- 
b4public static double[][] b4
- 
Tmaxpublic static double[][] Tmax
- 
FracDmaxAtMinVelpublic static double[][] FracDmaxAtMinVel
 
- 
- 
Constructor Details- 
TableLoaderpublic TableLoader()
 
- 
- 
Method Details- 
main
- 
testpublic static void test()
- 
getConstantspublic static void getConstants(IndexedTable t2dPressure, IndexedTable t2dPressRef, IndexedTable pressure) 
- 
FillTablepublic static void FillTable()
- 
Fill
- 
calc_Timepublic static double calc_Time(double x, double alpha, double bfield, int sector, int superlayer) - Parameters:
- x- distance to wire in cm
- alpha- local angle in deg
- bfield- B field value a x in T
- sector- sector
- superlayer- superlayer
- Returns:
- returns time (ns) when given inputs of distance x (cm), local angle alpha (degrees) and magnitude of bfield (Tesla).
 
- 
getDeltaTimeBetapublic static double getDeltaTimeBeta(double x, double beta, double distbeta, double v_0) 
 
-