fi.jyu.phys.grain.sort.detector
Class GrainDetectorCloverPosition

java.lang.Object
  extended by fi.jyu.phys.grain.sort.detector.GrainDetector
      extended by fi.jyu.phys.grain.sort.detector.GrainDetectorCloverPosition
All Implemented Interfaces:
java.lang.Cloneable

public class GrainDetectorCloverPosition
extends GrainDetector

Describes a crystal in the Great Clover Position readout.

Author:
pajura

Field Summary
 double e
          Gainmatched energy readout.
 int number
          The position number (0-15).
 double oe
          Ungainmatched energy readout.
 int x
          The x-coordinate (0-3).
 int y
          The y-coordinate (0-3).
 
Fields inherited from class fi.jyu.phys.grain.sort.detector.GrainDetector
fail, piledup, time, valid, vetoed
 
Constructor Summary
GrainDetectorCloverPosition(int offset)
          Creates a new instance of GrainDetectorCloverCrystal
GrainDetectorCloverPosition(int offset, GrainGreatDatum data)
          Creates a new instance of GrainDetectorCloverCrystal initialised to ADC data
 
Method Summary
 void feed(GrainGreatDatum data)
          Add data into the detector.
 void invalidate()
          Invalidates the detector.
 
Methods inherited from class fi.jyu.phys.grain.sort.detector.GrainDetector
clone, contains
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

e

public double e
Gainmatched energy readout.


oe

public double oe
Ungainmatched energy readout.


number

public int number
The position number (0-15).


x

public int x
The x-coordinate (0-3).


y

public int y
The y-coordinate (0-3).

Constructor Detail

GrainDetectorCloverPosition

public GrainDetectorCloverPosition(int offset)
Creates a new instance of GrainDetectorCloverCrystal

Parameters:
offset - Offset into the ADC address space.

GrainDetectorCloverPosition

public GrainDetectorCloverPosition(int offset,
                                   GrainGreatDatum data)
Creates a new instance of GrainDetectorCloverCrystal initialised to ADC data

Parameters:
offset - Offset into the ADC address space.
data - Parsed TDR ADC data.
Method Detail

invalidate

public void invalidate()
Invalidates the detector.

Overrides:
invalidate in class GrainDetector

feed

public void feed(GrainGreatDatum data)
Add data into the detector.

Overrides:
feed in class GrainDetector
Parameters:
data - Parsed TDR ADC data.