Package cnuphys.snr.clas12
Class Clas12NoiseAnalysis
java.lang.Object
cnuphys.snr.clas12.Clas12NoiseAnalysis
One stop shopping for clas12 noise analysis. Should finally be thread safe.
- Author:
- heddle
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreate an analysis object for CLAS12 DCs.Create an analysis object for CLAS12 DCs -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clear all the datavoid
findNoise
(int[] sector, int[] superlayer, int[] layer, int[] wire, Clas12NoiseResult results) This methods takes the data arrays and generates the results.getParameters
(int sector, int supl) Get the parameters for a given 0-based superlayervoid
setParameters
(int sector, int supl, NoiseReductionParameters params) Set the parameters for a given 0-based superlayer
-
Field Details
-
rawHitCount
public int rawHitCountthe raw hit count
-
-
Constructor Details
-
Clas12NoiseAnalysis
public Clas12NoiseAnalysis()Create an analysis object for CLAS12 DCs. Uses the basic single stage. -
Clas12NoiseAnalysis
Create an analysis object for CLAS12 DCs
-
-
Method Details
-
getParameters
Get the parameters for a given 0-based superlayer- Parameters:
sector
- the 0-based sectorsupl
- the 0-based superlayer in question- Returns:
- the parameters for that superlayer
-
setParameters
Set the parameters for a given 0-based superlayer- Parameters:
sector
- the 0-based sectorsupl
- the 0-based superlayer in questionparams
- the parameters for that superlayer
-
clear
public void clear()Clear all the data -
findNoise
public void findNoise(int[] sector, int[] superlayer, int[] layer, int[] wire, Clas12NoiseResult results) This methods takes the data arrays and generates the results. The input arrays contain 1-based indices, just like in the clasio banks- Parameters:
sector
- the 1-based sector arraysuperlayer
- the 1-based superlayer arraylayer
- the 1-based layer arraywire
- the 1-based wire arrayresults
- container for the results
-