PAASS
Software suite to Acquire and Analyze Data from Pixie16
|
#include <ChannelEvent.hpp>
Public Member Functions | |
ChannelEvent () | |
The low level pixie event. More... | |
ChannelEvent (XiaData *event_) | |
Constructor from a XiaData. ChannelEvent will take ownership of the XiaData. More... | |
~ChannelEvent () | |
Destructor. More... | |
float | CorrectBaseline () |
float | FindLeadingEdge (const float &thresh_=0.05) |
Find the leading edge of the pulse at a given percentage of pulse maximum. More... | |
float | IntegratePulse (const size_t &start_=0, const size_t &stop_=0) |
Integrate the baseline corrected trace in the range [start_, stop_] and return the result. More... | |
float | FindQDC (const size_t &start_=0, const size_t &stop_=0) |
Integrate the baseline corrected trace in the range [start_, stop_] and return the result. More... | |
float | AnalyzeCFD (const float &F_=0.5, const size_t &D_=1, const size_t &L_=1) |
Perform CFD analysis on the waveform. More... | |
void | Clear () |
Clear all variables and clear the trace vector and arrays. More... | |
Data Fields | |
bool | valid_chan |
double | hires_energy |
True if the high resolution energy and time are valid. More... | |
double | hires_time |
High resolution energy from the integration of pulse fits. More... | |
float * | xvals |
High resolution time taken from pulse fits (in ns). More... | |
float * | yvals |
x values used for fitting. More... | |
float * | cfdvals |
y values used for fitting (baseline corrected trace). More... | |
size_t | size |
y values for the cfd analyzed waveform. More... | |
float | phase |
Size of xvals and yvals arrays and of trace vector. More... | |
float | baseline |
Phase (leading edge) of trace (in ADC clock ticks (4E-9 Hz for 250 MHz digitizer)). More... | |
float | stddev |
The baseline of the trace. More... | |
float | maximum |
Standard deviation of the baseline. More... | |
float | qdc |
The baseline corrected maximum value of the trace. More... | |
float | cfdCrossing |
The calculated (baseline corrected) qdc. More... | |
size_t | max_index |
The zero-crossing point of the cfd waveform. More... | |
bool | baseline_corrected |
The index of the maximum trace bin (in ADC clock ticks). More... | |
bool | ignore |
True if the trace has been baseline corrected. More... | |
XiaData * | event |
Ignore this event. More... | |
Definition at line 12 of file ChannelEvent.hpp.
ChannelEvent::ChannelEvent | ( | ) |
The low level pixie event.
Default constructor.
Definition at line 10 of file ChannelEvent.cpp.
ChannelEvent::ChannelEvent | ( | XiaData * | event_ | ) |
Constructor from a XiaData. ChannelEvent will take ownership of the XiaData.
Definition at line 19 of file ChannelEvent.cpp.
ChannelEvent::~ChannelEvent | ( | ) |
Destructor.
Definition at line 33 of file ChannelEvent.cpp.
float ChannelEvent::AnalyzeCFD | ( | const float & | F_ = 0.5 , |
const size_t & | D_ = 1 , |
||
const size_t & | L_ = 1 |
||
) |
Perform CFD analysis on the waveform.
Definition at line 118 of file ChannelEvent.cpp.
void ChannelEvent::Clear | ( | ) |
Clear all variables and clear the trace vector and arrays.
Definition at line 158 of file ChannelEvent.cpp.
float ChannelEvent::CorrectBaseline | ( | ) |
These methods need to be removed. At a later date. Correct the trace baseline, baseline standard deviation, and find the pulse maximum.
Definition at line 39 of file ChannelEvent.cpp.
float ChannelEvent::FindLeadingEdge | ( | const float & | thresh_ = 0.05 | ) |
Find the leading edge of the pulse at a given percentage of pulse maximum.
Definition at line 74 of file ChannelEvent.cpp.
float ChannelEvent::FindQDC | ( | const size_t & | start_ = 0 , |
const size_t & | stop_ = 0 |
||
) |
Integrate the baseline corrected trace in the range [start_, stop_] and return the result.
Definition at line 109 of file ChannelEvent.cpp.
float ChannelEvent::IntegratePulse | ( | const size_t & | start_ = 0 , |
const size_t & | stop_ = 0 |
||
) |
Integrate the baseline corrected trace in the range [start_, stop_] and return the result.
Definition at line 96 of file ChannelEvent.cpp.
float ChannelEvent::baseline |
Phase (leading edge) of trace (in ADC clock ticks (4E-9 Hz for 250 MHz digitizer)).
Definition at line 25 of file ChannelEvent.hpp.
bool ChannelEvent::baseline_corrected |
The index of the maximum trace bin (in ADC clock ticks).
Definition at line 32 of file ChannelEvent.hpp.
float ChannelEvent::cfdCrossing |
The calculated (baseline corrected) qdc.
Definition at line 29 of file ChannelEvent.hpp.
float* ChannelEvent::cfdvals |
y values used for fitting (baseline corrected trace).
Definition at line 21 of file ChannelEvent.hpp.
XiaData* ChannelEvent::event |
Ignore this event.
Definition at line 35 of file ChannelEvent.hpp.
double ChannelEvent::hires_energy |
True if the high resolution energy and time are valid.
Definition at line 16 of file ChannelEvent.hpp.
double ChannelEvent::hires_time |
High resolution energy from the integration of pulse fits.
Definition at line 17 of file ChannelEvent.hpp.
bool ChannelEvent::ignore |
True if the trace has been baseline corrected.
Definition at line 33 of file ChannelEvent.hpp.
size_t ChannelEvent::max_index |
The zero-crossing point of the cfd waveform.
Definition at line 30 of file ChannelEvent.hpp.
float ChannelEvent::maximum |
Standard deviation of the baseline.
Definition at line 27 of file ChannelEvent.hpp.
float ChannelEvent::phase |
Size of xvals and yvals arrays and of trace vector.
Definition at line 24 of file ChannelEvent.hpp.
float ChannelEvent::qdc |
The baseline corrected maximum value of the trace.
Definition at line 28 of file ChannelEvent.hpp.
size_t ChannelEvent::size |
y values for the cfd analyzed waveform.
Definition at line 22 of file ChannelEvent.hpp.
float ChannelEvent::stddev |
The baseline of the trace.
Definition at line 26 of file ChannelEvent.hpp.
bool ChannelEvent::valid_chan |
Definition at line 14 of file ChannelEvent.hpp.
float* ChannelEvent::xvals |
High resolution time taken from pulse fits (in ns).
Definition at line 19 of file ChannelEvent.hpp.
float* ChannelEvent::yvals |
x values used for fitting.
Definition at line 20 of file ChannelEvent.hpp.