Class Clas12NoiseAnalysis

java.lang.Object
cnuphys.snr.clas12.Clas12NoiseAnalysis

public class Clas12NoiseAnalysis extends Object
One stop shopping for clas12 noise analysis. Should finally be thread safe.
Author:
heddle
  • Field Details

    • rawHitCount

      public int rawHitCount
      the raw hit count
  • Constructor Details

    • Clas12NoiseAnalysis

      public Clas12NoiseAnalysis()
      Create an analysis object for CLAS12 DCs. Uses the basic single stage.
    • Clas12NoiseAnalysis

      public Clas12NoiseAnalysis(SNRAnalysisLevel level)
      Create an analysis object for CLAS12 DCs
  • Method Details

    • getParameters

      public NoiseReductionParameters getParameters(int sector, int supl)
      Get the parameters for a given 0-based superlayer
      Parameters:
      sector - the 0-based sector
      supl - the 0-based superlayer in question
      Returns:
      the parameters for that superlayer
    • setParameters

      public void setParameters(int sector, int supl, NoiseReductionParameters params)
      Set the parameters for a given 0-based superlayer
      Parameters:
      sector - the 0-based sector
      supl - the 0-based superlayer in question
      params - 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 array
      superlayer - the 1-based superlayer array
      layer - the 1-based layer array
      wire - the 1-based wire array
      results - container for the results