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

#include <PixieSupport.h>

Inheritance diagram for GetTraces:
Collaboration diagram for GetTraces:

Public Member Functions

 GetTraces (unsigned short *total_data_, size_t total_size_, unsigned short *trace_data_, size_t trace_size_, int threshold_=0, bool correct_baselines_=false)
 
int GetAttempts ()
 
float GetBaseline (size_t chan_)
 
float GetMaximum (size_t chan_)
 
bool GetStatus ()
 
void Help ()
 
bool operator() (PixieFunctionParms< int > &par)
 
- Public Member Functions inherited from PixieFunction< int >
virtual ~PixieFunction ()
 
virtual ~PixieFunction ()
 

Private Member Functions

double FitTau (const unsigned short *trace, size_t b0, size_t b1, size_t x0, size_t x1)
 Correct the baselines of the output traces. More...
 

Private Attributes

unsigned short * total_data
 
unsigned short * trace_data
 Array for storing all 16 channels of a module. More...
 
int threshold
 Array for storing a single trace. More...
 
size_t total_len
 The trigger threshold above baseline. More...
 
size_t trace_len
 Length of total data array. More...
 
int attempts
 Length of trace data array. More...
 
float baseline [NUMBER_OF_CHANNELS]
 Number of attempts to reach threshold. More...
 
float maximum [NUMBER_OF_CHANNELS]
 Calculated baseline for each channel. More...
 
bool status
 The maximum ADC value above baseline for each channel. More...
 
bool correct_baselines
 Set to true when a valid trace is found. More...
 

Detailed Description

Definition at line 134 of file PixieSupport.h.

Constructor & Destructor Documentation

§ GetTraces()

GetTraces::GetTraces ( unsigned short *  total_data_,
size_t  total_size_,
unsigned short *  trace_data_,
size_t  trace_size_,
int  threshold_ = 0,
bool  correct_baselines_ = false 
)

Definition at line 213 of file PixieSupport.cpp.

Member Function Documentation

§ FitTau()

double GetTraces::FitTau ( const unsigned short *  trace,
size_t  b0,
size_t  b1,
size_t  x0,
size_t  x1 
)
private

Correct the baselines of the output traces.

Fit... tau?

Definition at line 174 of file PixieSupport.cpp.

§ GetAttempts()

int GetTraces::GetAttempts ( )
inline

Definition at line 156 of file PixieSupport.h.

Here is the caller graph for this function:

§ GetBaseline()

float GetTraces::GetBaseline ( size_t  chan_)
inline

Definition at line 158 of file PixieSupport.h.

Here is the caller graph for this function:

§ GetMaximum()

float GetTraces::GetMaximum ( size_t  chan_)
inline

Definition at line 160 of file PixieSupport.h.

Here is the caller graph for this function:

§ GetStatus()

bool GetTraces::GetStatus ( )
inline

Definition at line 162 of file PixieSupport.h.

Here is the caller graph for this function:

§ Help()

void GetTraces::Help ( )

Definition at line 231 of file PixieSupport.cpp.

§ operator()()

bool GetTraces::operator() ( PixieFunctionParms< int > &  par)
virtual

Implements PixieFunction< int >.

Definition at line 234 of file PixieSupport.cpp.

Here is the call graph for this function:

Field Documentation

§ attempts

int GetTraces::attempts
private

Length of trace data array.

Definition at line 144 of file PixieSupport.h.

§ baseline

float GetTraces::baseline[NUMBER_OF_CHANNELS]
private

Number of attempts to reach threshold.

Definition at line 145 of file PixieSupport.h.

§ correct_baselines

bool GetTraces::correct_baselines
private

Set to true when a valid trace is found.

Definition at line 148 of file PixieSupport.h.

§ maximum

float GetTraces::maximum[NUMBER_OF_CHANNELS]
private

Calculated baseline for each channel.

Definition at line 146 of file PixieSupport.h.

§ status

bool GetTraces::status
private

The maximum ADC value above baseline for each channel.

Definition at line 147 of file PixieSupport.h.

§ threshold

int GetTraces::threshold
private

Array for storing a single trace.

Definition at line 139 of file PixieSupport.h.

§ total_data

unsigned short* GetTraces::total_data
private

Definition at line 136 of file PixieSupport.h.

§ total_len

size_t GetTraces::total_len
private

The trigger threshold above baseline.

Definition at line 141 of file PixieSupport.h.

§ trace_data

unsigned short* GetTraces::trace_data
private

Array for storing all 16 channels of a module.

Definition at line 137 of file PixieSupport.h.

§ trace_len

size_t GetTraces::trace_len
private

Length of total data array.

Definition at line 142 of file PixieSupport.h.


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