PAASS
Software suite to Acquire and Analyze Data from Pixie16
ChannelEvent Class Reference

#include <ChannelEvent.hpp>

Collaboration diagram for ChannelEvent:

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...
 
XiaDataevent
 Ignore this event. More...
 

Detailed Description

Definition at line 12 of file ChannelEvent.hpp.

Constructor & Destructor Documentation

§ ChannelEvent() [1/2]

ChannelEvent::ChannelEvent ( )

The low level pixie event.

Default constructor.

Definition at line 10 of file ChannelEvent.cpp.

Here is the call graph for this function:

§ ChannelEvent() [2/2]

ChannelEvent::ChannelEvent ( XiaData event_)

Constructor from a XiaData. ChannelEvent will take ownership of the XiaData.

Definition at line 19 of file ChannelEvent.cpp.

Here is the call graph for this function:

§ ~ChannelEvent()

ChannelEvent::~ChannelEvent ( )

Destructor.

Definition at line 33 of file ChannelEvent.cpp.

Member Function Documentation

§ AnalyzeCFD()

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.

Here is the call graph for this function:

§ Clear()

void ChannelEvent::Clear ( )

Clear all variables and clear the trace vector and arrays.

Definition at line 158 of file ChannelEvent.cpp.

Here is the caller graph for this function:

§ CorrectBaseline()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

§ FindLeadingEdge()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

§ FindQDC()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

§ IntegratePulse()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

Field Documentation

§ baseline

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.

§ baseline_corrected

bool ChannelEvent::baseline_corrected

The index of the maximum trace bin (in ADC clock ticks).

Definition at line 32 of file ChannelEvent.hpp.

§ cfdCrossing

float ChannelEvent::cfdCrossing

The calculated (baseline corrected) qdc.

Definition at line 29 of file ChannelEvent.hpp.

§ cfdvals

float* ChannelEvent::cfdvals

y values used for fitting (baseline corrected trace).

Definition at line 21 of file ChannelEvent.hpp.

§ event

XiaData* ChannelEvent::event

Ignore this event.

Definition at line 35 of file ChannelEvent.hpp.

§ hires_energy

double ChannelEvent::hires_energy

True if the high resolution energy and time are valid.

Definition at line 16 of file ChannelEvent.hpp.

§ hires_time

double ChannelEvent::hires_time

High resolution energy from the integration of pulse fits.

Definition at line 17 of file ChannelEvent.hpp.

§ ignore

bool ChannelEvent::ignore

True if the trace has been baseline corrected.

Definition at line 33 of file ChannelEvent.hpp.

§ max_index

size_t ChannelEvent::max_index

The zero-crossing point of the cfd waveform.

Definition at line 30 of file ChannelEvent.hpp.

§ maximum

float ChannelEvent::maximum

Standard deviation of the baseline.

Definition at line 27 of file ChannelEvent.hpp.

§ phase

float ChannelEvent::phase

Size of xvals and yvals arrays and of trace vector.

Definition at line 24 of file ChannelEvent.hpp.

§ qdc

float ChannelEvent::qdc

The baseline corrected maximum value of the trace.

Definition at line 28 of file ChannelEvent.hpp.

§ size

size_t ChannelEvent::size

y values for the cfd analyzed waveform.

Definition at line 22 of file ChannelEvent.hpp.

§ stddev

float ChannelEvent::stddev

The baseline of the trace.

Definition at line 26 of file ChannelEvent.hpp.

§ valid_chan

bool ChannelEvent::valid_chan

Definition at line 14 of file ChannelEvent.hpp.

§ xvals

float* ChannelEvent::xvals

High resolution time taken from pulse fits (in ns).

Definition at line 19 of file ChannelEvent.hpp.

§ yvals

float* ChannelEvent::yvals

x values used for fitting.

Definition at line 20 of file ChannelEvent.hpp.


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