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

java.lang.Object
  extended by fi.jyu.phys.grain.sort.detector.GrainDetector
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
GrainDetectorClover, GrainDetectorCloverCrystal, GrainDetectorCloverPosition, GrainDetectorDSSD, GrainDetectorGermanium, GrainDetectorGermaniumArray, GrainDetectorMWPC, GrainDetectorPin, GrainDetectorPinArray, GrainDetectorPlanarGe, GrainDetectorPMT, GrainDetectorPMTArray, GrainDetectorSacred, GrainDetectorSacredPixel, GrainDetectorSolarCell, GrainDetectorSolarCellArray, GrainDetectorStrip, GrainDetectorTAC

public class GrainDetector
extends java.lang.Object
implements java.lang.Cloneable

Base class of all the detectors in Grain TDR sorting.

Author:
pajura

Field Summary
 boolean fail
          Conversion failed data bit for this detector.
 boolean piledup
          Data was piled-up for this detector.
 long time
          Absolute time of the ADC trigger in ticks (10ns).
 boolean valid
          Valid data bit for this detector.
 boolean vetoed
          Data was vetoed for this detector.
 
Constructor Summary
GrainDetector()
          Creates a new instance of GrainDetector
 
Method Summary
 java.lang.Object clone()
          Clones the detector.
 boolean contains(int channel)
          Checks wheter given ADC address belongs to this detector.
 void feed(GrainGreatDatum data)
          Add data into the detector.
 void invalidate()
          Invalidates this detector.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

valid

public boolean valid
Valid data bit for this detector.


fail

public boolean fail
Conversion failed data bit for this detector.


piledup

public boolean piledup
Data was piled-up for this detector.


vetoed

public boolean vetoed
Data was vetoed for this detector.


time

public long time
Absolute time of the ADC trigger in ticks (10ns).

Constructor Detail

GrainDetector

public GrainDetector()
Creates a new instance of GrainDetector

Method Detail

invalidate

public void invalidate()
Invalidates this detector.


feed

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

Parameters:
data - Parsed TDR ADC data.

contains

public boolean contains(int channel)
Checks wheter given ADC address belongs to this detector.

Parameters:
channel - ADC channel address
Returns:
Channel belongs to this detector

clone

public java.lang.Object clone()
Clones the detector.

Overrides:
clone in class java.lang.Object
Returns:
Cloned GrainDetector object.