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

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

public class GrainDetectorStrip
extends GrainDetector

Describes a gereric detector Strip.

Author:
pajura

Field Summary
 int channel
          The ADC channel where the data originates from.
 int coord
          Index in the strip space.
 double e
          The gainmatched ADC readout value.
 double oe
          The non-gainmatched ADC readout value.
 double ovalue
          The non-gainmatched ADC readout value.
 double value
          The gainmatched ADC readout value.
 
Fields inherited from class fi.jyu.phys.grain.sort.detector.GrainDetector
fail, piledup, time, valid, vetoed
 
Constructor Summary
GrainDetectorStrip(int offset)
          Creates a new instance of GrainDetectorStrip
GrainDetectorStrip(int offset, int coordinate, GrainGreatDatum data)
          Creates a new instance of GrainDetectorStrip
 
Method Summary
 void feed(GrainGreatDatum data, int coordinate)
          Add data into the detector list.
 void invalidate()
          Invalidates the strip.
 
Methods inherited from class fi.jyu.phys.grain.sort.detector.GrainDetector
clone, contains, feed
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

channel

public int channel
The ADC channel where the data originates from.


value

public double value
The gainmatched ADC readout value.


ovalue

public double ovalue
The non-gainmatched ADC readout value.


e

public double e
The gainmatched ADC readout value.


oe

public double oe
The non-gainmatched ADC readout value.


coord

public int coord
Index in the strip space.

Constructor Detail

GrainDetectorStrip

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

Parameters:
offset - Offset into the ADC address space.

GrainDetectorStrip

public GrainDetectorStrip(int offset,
                          int coordinate,
                          GrainGreatDatum data)
Creates a new instance of GrainDetectorStrip

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

invalidate

public void invalidate()
Invalidates the strip.

Overrides:
invalidate in class GrainDetector

feed

public void feed(GrainGreatDatum data,
                 int coordinate)
Add data into the detector list.

Parameters:
data - Parsed TDR ADC data.