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

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

public class GrainDetectorCloverCrystal
extends GrainDetector

Describes a crystal in the Great Clover.

Author:
pajura

Field Summary
 double e
          Gainmatched energy readout.
 int number
          The crystal number (0-3).
 double oe
          Ungainmatched energy readout.
 int x
          The x-coordinate (0-1).
 int y
          The y-coordinate (0-1).
 
Fields inherited from class fi.jyu.phys.grain.sort.detector.GrainDetector
fail, piledup, time, valid, vetoed
 
Constructor Summary
GrainDetectorCloverCrystal(int offset)
          Creates a new instance of GrainDetectorCloverCrystal
GrainDetectorCloverCrystal(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 crystal number (0-3).


x

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


y

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

Constructor Detail

GrainDetectorCloverCrystal

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

Parameters:
offset - Offset into the ADC address space.

GrainDetectorCloverCrystal

public GrainDetectorCloverCrystal(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.