Package cnuphys.snr.test
Class TestParameters
java.lang.Object
cnuphys.snr.test.TestParameters
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic boolean
used to "show clean datastatic boolean
used to show clusters -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
static Color
static Color
static int
static Color
static double
static double
static double
static double[]
Get the probability of increasing numbers of tracks.static Color
static Color
static Color
static Stroke
Gets a stroke appropriate for the line width and line type.static double
Get the maximum track tilt angle in degrees.static Color
static String
static void
setAccumulationIncrement
(int accumulationIncrement) static void
setAnalyzedNoiseColor
(Color analyzedNoiseColor) static void
setAnalyzedTrackColor
(Color analyzedTrackColor) static void
setGenericHitColor
(Color genericHitColor) static void
setNoiseRate
(double noiseRate) static void
setProbBadWire
(double probBadWire) static void
setProbTracks
(double[] probTracks) Set the probability of increasing numbers of tracks.static void
setRealityNoiseColor
(Color realityNoiseColor) static void
setRealityTrackColor
(Color realityTrackColor) static void
setThetaMax
(double thetaMax) Set the maximum track tilt angle.static void
setTrackColor
(Color trackColor)
-
Field Details
-
showClusters
public static boolean showClustersused to show clusters -
noiseOff
public static boolean noiseOffused to "show clean data
-
-
Constructor Details
-
TestParameters
public TestParameters()
-
-
Method Details
-
getThetaMax
public static double getThetaMax()Get the maximum track tilt angle in degrees.- Returns:
- the maximum track tilt angle in degrees.
-
paramString
-
setThetaMax
public static void setThetaMax(double thetaMax) Set the maximum track tilt angle.- Parameters:
thetaMax
- the maximum track tilt angle in degrees.
-
getProbTracks
public static double[] getProbTracks()Get the probability of increasing numbers of tracks.- Returns:
- an array that should be probabilities in descending order.
-
setProbTracks
public static void setProbTracks(double[] probTracks) Set the probability of increasing numbers of tracks.- Parameters:
probTracks
- an array that should be probabilities in descending order.
-
getGenericHitColor
-
setGenericHitColor
-
getRealityNoiseColor
-
getSavedNoiseColor
-
setRealityNoiseColor
-
getRealityTrackColor
-
setRealityTrackColor
-
getAnalyzedNoiseColor
-
setAnalyzedNoiseColor
-
getAnalyzedTrackColor
-
setAnalyzedTrackColor
-
getTrackColor
-
setTrackColor
-
getNoiseRate
public static double getNoiseRate() -
getProbBlob
public static double getProbBlob() -
getBlobSize
public static int getBlobSize() -
setNoiseRate
public static void setNoiseRate(double noiseRate) -
getProbBadWire
public static double getProbBadWire() -
setProbBadWire
public static void setProbBadWire(double probBadWire) -
getAccumulationIncrement
public static int getAccumulationIncrement() -
setAccumulationIncrement
public static void setAccumulationIncrement(int accumulationIncrement) -
getStroke
Gets a stroke appropriate for the line width and line type. Try the hash table first, if not found create the Stroke and place it in the hashtable for future use.- Parameters:
lineWidth
- the desired line width in pixels.lineStyle
- the desired line style.- Returns:
- the appropriate stroke.
-