chan_event Class Reference

A channel event. More...

#include <rawevent.h>

Collaboration diagram for chan_event:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void Set_id (int a)
void Set_energy (double a)
void Set_cal_energy (double a)
void Set_time (double a)
void Set_cal_time (double a)
void Set_ctime (double a)
void Set_etime_lo (double a)
void Set_etime_hi (double a)
void Add_trace (int a)
void Add_traceinfo (double a)
void Set_chanid (identifier a)
int Get_id ()
double Get_energy ()
double Get_cal_energy ()
double Get_time ()
double Get_cal_time ()
double Get_ctime ()
double Get_etime_lo ()
double Get_etime_hi ()
vector< int > Get_trace ()
vector< int > & Get_trace_ref ()
int Get_trace_val (int a)
double Get_traceinfo (int a)
identifier Get_chanid ()
 chan_event ()
void zerovar ()

Public Attributes

int id

Private Attributes

double energy
double cal_energy
double time
double cal_time
double ctime
double etime_lo
double etime_hi
vector< int > trace
vector< double > traceinfo
identifier chanid


Detailed Description

A channel event.

All data is grouped together into channels. For each pixie16 channel that fires the energy, time (both trigger time and event time), and trace (if applicable) are obtained. Additional information includes the channels identifier, calibrated energies, trace analysis information.


Constructor & Destructor Documentation

chan_event::chan_event (  ) 

channel event constructor

All numerical values are set to -1, and the trace, and traceinfo vectors are cleared and the channel identifier is zeroed using its identifier::zeroid method.


Member Function Documentation

void chan_event::Set_id ( int  a  )  [inline]

Set the channel id

void chan_event::Set_energy ( double  a  )  [inline]

Set the raw energy

void chan_event::Set_cal_energy ( double  a  )  [inline]

Set the calibrated energy

void chan_event::Set_time ( double  a  )  [inline]

Set the raw time

void chan_event::Set_cal_time ( double  a  )  [inline]

Set the calibrated time

void chan_event::Set_ctime ( double  a  )  [inline]

Set the pixie16 trigger time

void chan_event::Set_etime_lo ( double  a  )  [inline]

Set the lower 32 bits of the channel event time

void chan_event::Set_etime_hi ( double  a  )  [inline]

Set the upper 32 bits of the channel event time

void chan_event::Add_trace ( int  a  )  [inline]

Add one value to the end of the trace

void chan_event::Add_traceinfo ( double  a  )  [inline]

void chan_event::Set_chanid ( identifier  a  )  [inline]

int chan_event::Get_id (  )  [inline]

double chan_event::Get_energy (  )  [inline]

Get the raw energy

double chan_event::Get_cal_energy (  )  [inline]

Get the calibrated energy

double chan_event::Get_time (  )  [inline]

Get the raw time

double chan_event::Get_cal_time (  )  [inline]

Get the calibrated time

double chan_event::Get_ctime (  )  [inline]

Get the trigger time

double chan_event::Get_etime_lo (  )  [inline]

Get the lower 32 bits of event time

double chan_event::Get_etime_hi (  )  [inline]

Get the upper 32 bits of event time

vector<int> chan_event::Get_trace (  )  [inline]

Get the entire trace

vector<int>& chan_event::Get_trace_ref (  )  [inline]

Get a reference to the trace

int chan_event::Get_trace_val ( int  a  )  [inline]

Get a specific value of the trace

double chan_event::Get_traceinfo ( int  a  )  [inline]

Get a specific value from the traceinfo

identifier chan_event::Get_chanid (  )  [inline]

Get the channel identifier

void chan_event::zerovar (  ) 

channel event zeroing

All numerical values are set to -1, and the trace, and traceinfo vectors are cleared and the channel identifier is zeroed using its identifier::zeroid method.


Member Data Documentation

double chan_event::energy [private]

Raw channel energy

double chan_event::cal_energy [private]

Calibrated channel energy, calibration performed in the threshandcal function in the detector_driver.cpp

double chan_event::time [private]

Raw channel time, 64 bit from pixie16 channel event time

double chan_event::cal_time [private]

Calibrated time, currently unused

double chan_event::ctime [private]

Channel trigger time from pixie16 channel trigger time Channel trigger time and the lower 32 bits of the channel event time are not necessarly the same

double chan_event::etime_lo [private]

Lower 32 bits of variable time from pixie16 channel event time

double chan_event::etime_hi [private]

Upper 32 bits of variable time from pixie16 channel event time

vector<int> chan_event::trace [private]

Channel trace if present

vector<double> chan_event::traceinfo [private]

Values from trace analysis functions

The identifying information of this channel

Channel id defined as pixie module # * 16 + channel number


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