Correlator Class Reference

correlate decays with previous implants More...

#include <correlator.h>

Collaboration diagram for Correlator:

Collaboration graph

List of all members.

Public Member Functions

void init ()
void correlate (rawevent &)
void correlatemtc (rawevent &)
void correlategenaric (rawevent &, string &, int &, int &, double &)
void correlateplot (rawevent &)
 plots correlated spectra
 Correlator ()

Private Attributes

Correlation_structure implant [MAX_STRIP][MAX_STRIP]
Correlation_structure decay [MAX_STRIP][MAX_STRIP]
double minimptime
double corrtime

Detailed Description

correlate decays with previous implants

The class controls the correlations of decays with previous implants. The are two two-dimensional Correlation_structure arrays of size MAX_STRIP x MAX_STRIP that are called implants and decays. When an event has been identified as either an implant or decay its information is placed in the appropriate array based on its pixel location. If a decay was identified it is correlated with a previous implant. The correlator checks to make sure that the time between implants is sufficiently long (defined by the variable minimptime) and that the correlation time has not been exceeded (defined by the variable corrtime) before correlating an implant with a decay.

Constructor & Destructor Documentation

Correlator::Correlator (  ) 

Correlator constructor

When the correlator is constructed the implant and decay matrices are zeroed.

Member Function Documentation

void Correlator::init (  ) 

Correlator initialization

Initialization consists of zeroing the implant and decay correlation matrices and defining the minimum time between implants (minimptime) and the maximum correaltion time (corrtime).

void Correlator::correlate ( rawevent revt  ) 

Early correlator function used for NSCL, currently obsolete

void Correlator::correlatemtc ( rawevent revt  ) 

Early correlator function, currently obsolete

void Correlator::correlategenaric ( rawevent revt,
string &  type,
int &  frontch,
int &  backch,
double &  evtime 

Generic correlator function to be used in analysis

Defines a genaric correlator function that can be used in both RMS and MTC runs. The logic in the detector_driver decides if an event is either an implant or decay. The genaric correlator is then called and passed the event (revt), whether it is an implant or decay (type), the front and back channel where the event was located to define the location in the correlation matrix to place the information (frontch and backch), and the time of the event (evtime). For an MTC run the variables frontch and backch are set to one for all events.

Status of correlator is plotted in spectrum 6000 with the following values:

  • 4 - invalid implant decay location (if observed something is wrong with code)
  • 12 - valid implant
  • 16 - valid decay
  • 32 - back-to-back implant (most implants should have this value)
  • 48 - decay is beyond the set correlation time
  • 52 - time between implants is too short
  • 100- event is neither an implant nor decay

void Correlator::correlateplot ( rawevent revt  ) 

plots correlated spectra

Plots correlated spectra, currently the plots being produced are those in the 750's which plot the correlation time of a decay against the energy from the front of the DSSD from 10ns/ch (spectrum 750) to 100ms/ch (spectrum 757).

Member Data Documentation

Correlation_structure Correlator::implant[MAX_STRIP][MAX_STRIP] [private]

2D array containing the most recent implant information in each pixel that is correlated with a subsequent decay

Correlation_structure Correlator::decay[MAX_STRIP][MAX_STRIP] [private]

2D array containing the most recent decay information in each pixel that is correlated with a previous implant

double Correlator::minimptime [private]

The minimum amount of time that must pass before an implant will be considered for correlation. Variable in units of 10ns

double Correlator::corrtime [private]

The maximum amount of time allowed (in units of 10ns) between a decay and its previous implant for a correlation between the two to occur.

The documentation for this class was generated from the following files:

Generated on Wed May 14 10:07:06 2008 for pixie16 by  doxygen 1.5.5