Class TestParameters
java.lang.Object
cnuphys.snr.test.TestParameters
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic booleanused to "show clean datastatic booleanused to show clusters -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intstatic Colorstatic Colorstatic intstatic Colorstatic doublestatic doublestatic doublestatic double[]Get the probability of increasing numbers of tracks.static Colorstatic Colorstatic Colorstatic StrokeGets a stroke appropriate for the line width and line type.static doubleGet the maximum track tilt angle in degrees.static Colorstatic Stringstatic voidsetAccumulationIncrement(int accumulationIncrement) static voidsetAnalyzedNoiseColor(Color analyzedNoiseColor) static voidsetAnalyzedTrackColor(Color analyzedTrackColor) static voidsetGenericHitColor(Color genericHitColor) static voidsetNoiseRate(double noiseRate) static voidsetProbBadWire(double probBadWire) static voidsetProbTracks(double[] probTracks) Set the probability of increasing numbers of tracks.static voidsetRealityNoiseColor(Color realityNoiseColor) static voidsetRealityTrackColor(Color realityTrackColor) static voidsetThetaMax(double thetaMax) Set the maximum track tilt angle.static voidsetTrackColor(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.
-