Pixie16 Analysis Software Suite
Analysis code for processing of .ldf files
|
A channel event. More...
#include <ChanEvent.hpp>
Public Member Functions | |
ChanEvent () | |
void | SetEnergy (double a) |
void | SetCalEnergy (double a) |
void | SetTime (double a) |
void | SetCorrectedTime (double a) |
void | SetCalTime (double a) |
void | SetHighResTime (double a) |
double | GetEnergy () const |
double | GetCalEnergy () const |
double | GetCorrectedTime () const |
double | GetTime () const |
double | GetCalTime () const |
double | GetHighResTime () const |
double | GetEventTime () const |
const Trace & | GetTrace () const |
Trace & | GetTrace () |
unsigned long | GetTrigTime () const |
unsigned long | GetEventTimeLo () const |
unsigned long | GetEventTimeHi () const |
unsigned long | GetRunTime0 () const |
unsigned long | GetRunTime1 () const |
unsigned long | GetRunTime2 () const |
bool | IsPileup () const |
bool | IsSaturated () const |
const Identifier & | GetChanID () const |
int | GetID () const |
unsigned long | GetQdcValue (int i) const |
void | ZeroVar () |
Private Member Functions | |
void | ZeroNums (void) |
Private Attributes | |
double | energy |
double | calEnergy |
double | calTime |
double | correctedTime |
double | highResTime |
Trace | trace |
pixie::word_t | trigTime |
pixie::word_t | cfdTime |
pixie::word_t | eventTimeLo |
pixie::word_t | eventTimeHi |
pixie::word_t | runTime0 |
pixie::word_t | runTime1 |
pixie::word_t | runTime2 |
pixie::word_t | qdcValue [numQdcs] |
double | time |
double | eventTime |
int | modNum |
int | chanNum |
bool | virtualChannel |
bool | pileupBit |
bool | saturatedBit |
Static Private Attributes | |
static const int | numQdcs = 8 |
Friends | |
int | ReadBuffDataA (pixie::word_t *, unsigned long *, std::vector< ChanEvent * > &) |
int | ReadBuffDataDF (pixie::word_t *, unsigned long *, std::vector< ChanEvent * > &) |
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. Note that this currently stores raw values internally through pixie word types but returns data values through native C types. This is potentially non-portable.
|
inline |
Default constructor that zeroes all values
|
inline |
<
|
inline |
<
const Identifier& ChanEvent::GetChanID | ( | ) | const |
|
inline |
<
|
inline |
<
|
inline |
<
|
inline |
<
|
inline |
<
|
inline |
<
int ChanEvent::GetID | ( | ) | const |
unsigned long ChanEvent::GetQdcValue | ( | int | i | ) | const |
[in] | i | : the QDC number to obtain, possible values [0,7] |
|
inline |
<
|
inline |
<
|
inline |
<
|
inline |
<
|
inline |
<
|
inline |
|
inline |
<
|
inline |
<
|
inline |
<
|
inline |
Set the calibrated energy
[in] | a | : the calibrated energy |
|
inline |
Set the Calibrated time
[in] | a | : the calibrated time |
|
inline |
Set the Walk corrected time
[in] | a | : the walk corrected time |
|
inline |
Set the raw energy in case we do not want to extract it from the trace ourselves
[in] | a | : the energy to set |
|
inline |
Set the high resolution time (Filter time + phase )
[in] | a | : the high resolution time |
|
inline |
Set the time
[in] | a | : the time to set |
|
private |
Zero members which do not have constructors associated with them
void ChanEvent::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.
|
friend |
Make the front end responsible for reading the data able to set the channel data directly from ReadBuffDataA - REVISION A
|
friend |
Make the front end responsible for reading the data able to set the channel data directly from ReadBuffDataA - REVISION D and F
|
private |
Calibrated channel energy, calibration performed in ThreshAndCal function in the detector_driver.cpp
|
private |
Calibrated time, currently unused
|
private |
CFD trigger time in units of 1/256 pixie clock ticks
|
private |
Channel number
|
private |
Energy-walk corrected time
|
private |
Raw channel energy
|
private |
The event time recorded by Pixie
|
private |
Upper 32 bits of pixie16 event time
|
private |
Lower 32 bits of pixie16 event time
|
private |
timing resolution less than 1 adc size
|
private |
Module number
|
staticprivate |
Number of QDCs onboard
|
private |
Pile-up flag from Pixie
|
private |
QDCs from onboard
|
private |
Lower bits of run time
|
private |
Upper bits of run time
|
private |
Higher bits of run time
|
private |
Saturation flag from Pixie
|
private |
Raw channel time, 64 bit from pixie16 channel event time
|
private |
Channel trace if present
|
private |
The channel trigger time, trigger time and the lower 32 bits of the event time are not necessarily the same but could be separated by a constant value.
|
private |
Flagged if generated virtually in Pixie DSP