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

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

public class GrainDetectorGermanium
extends GrainDetector

Describes a single germanium crystal.

Author:
pajura

Field Summary
 double e
          The gainmathed readout of the ADC.
 int number
          Position number of this detector in the array.
 double oe
          The raw readout of the ADC.
 double phi
          Phi-angle of this detector in the array.
 int ring
          Ring number of this detector in the array.
 double theta
          Theta-angle of this detector in the array.
 
Fields inherited from class fi.jyu.phys.grain.sort.detector.GrainDetector
fail, piledup, time, valid, vetoed
 
Constructor Summary
GrainDetectorGermanium(int offset, GrainGreatDatum data)
          Creates a new instance of GrainDetectorGermanium.
GrainDetectorGermanium(int offset, GrainGreatDatum data, int number, int ring, double theta, double phi, double costheta)
          Creates a new instance of GrainDetectorGermanium.
GrainDetectorGermanium(int offset, int span)
          Creates a new instance of GrainDetectorGermanium.
 
Method Summary
 void feed(GrainGreatDatum data)
          Add data into the detector list.
 void invalidate()
          Invalidates this 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

theta

public double theta
Theta-angle of this detector in the array.


phi

public double phi
Phi-angle of this detector in the array.


e

public double e
The gainmathed readout of the ADC.


oe

public double oe
The raw readout of the ADC.


number

public int number
Position number of this detector in the array.


ring

public int ring
Ring number of this detector in the array.

Constructor Detail

GrainDetectorGermanium

public GrainDetectorGermanium(int offset,
                              int span)
Creates a new instance of GrainDetectorGermanium.

Parameters:
offset - Offset into the ADC address space.
span -

GrainDetectorGermanium

public GrainDetectorGermanium(int offset,
                              GrainGreatDatum data)
Creates a new instance of GrainDetectorGermanium.

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

GrainDetectorGermanium

public GrainDetectorGermanium(int offset,
                              GrainGreatDatum data,
                              int number,
                              int ring,
                              double theta,
                              double phi,
                              double costheta)
Creates a new instance of GrainDetectorGermanium.

Parameters:
offset - Offset into the ADC address space.
data - Parsed TDR ADC data.
number - Detector number in the array
ring - Detector ring
theta - Detector theta angle
phi - Detector phi angle
Method Detail

invalidate

public void invalidate()
Invalidates this detector.

Overrides:
invalidate in class GrainDetector

feed

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

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