Berkeley Nuclear Data Software
Static Public Member Functions | List of all members
CLYCWFTools< T > Class Template Reference

#include <CLYCWFTools.h>

Inheritance diagram for CLYCWFTools< T >:
Inheritance graph
[legend]
Collaboration diagram for CLYCWFTools< T >:
Collaboration graph
[legend]

Static Public Member Functions

static CLYCTOTWFResults processWaveform (T *a_wf, int a_numSamples, float a_baseline, double a_ampThreshold, double a_minSamplesOver, int a_daqEvStartSample, int a_totalIntegralOffset, int a_intP1, int a_intP2, int a_intP3, int a_intP4, int a_smearingWindow, int a_numIterations, bool a_doFit=false, TF1 *a_fitFun=nullptr, bool a_buildCDF=false)
 
static CLYCTOTWFResults processWaveform (T *a_wf, int a_numSamples, float a_baseline, double a_ampThreshold, double a_minSamplesOver, int a_daqEvStartSample, int a_totalIntegralOffset, int a_earlyGate, int a_lateGate, int a_lgOffset, int a_smearingWindow, int a_numIterations, bool a_doFit=false, TF1 *a_fitFun=nullptr)
 
static void runTOT (T *a_wf, int a_numSamples, float a_baseline, double a_ampThreshold, double a_minSamplesOver, int a_daqEvStartSample, int a_totalIntegralOffset, CLYCTOTWFResults &a_res, int a_smearingWindow, int a_numIterations)
 
static void doMultiGatePSD (T *a_wf, int a_numSamples, float a_baseline, int a_totalIntegralOffset, CLYCTOTWFResults &a_res, int a_earlyGate, int a_lateGate, int a_lgOffset)
 
static TF1 * getFourBiExpFitFunWithLimits ()
 

Detailed Description

template<class T>
class CLYCWFTools< T >

this class is intended to handle waveform processing routines specifid to waveforms from CLYC

Member Function Documentation

◆ doMultiGatePSD()

template<class T >
void CLYCWFTools< T >::doMultiGatePSD ( T *  a_wf,
int  a_numSamples,
float  a_baseline,
int  a_totalIntegralOffset,
CLYCTOTWFResults a_res,
int  a_earlyGate,
int  a_lateGate,
int  a_lgOffset 
)
static

this function takes a waveform and a populated result of the above TOT algorithm and populates the PID parameters DON'T CALL THIS WITHOUT A PARTIALLY FILLED CLYCTOTWFResults

Here is the caller graph for this function:

◆ getFourBiExpFitFunWithLimits()

template<class T >
TF1 * CLYCWFTools< T >::getFourBiExpFitFunWithLimits
static

returns the pseudopenultimate wf fit function with paramter limits set for fitting the waveforms

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

◆ processWaveform() [1/2]

template<class T >
CLYCTOTWFResults CLYCWFTools< T >::processWaveform ( T *  a_wf,
int  a_numSamples,
float  a_baseline,
double  a_ampThreshold,
double  a_minSamplesOver,
int  a_daqEvStartSample,
int  a_totalIntegralOffset,
int  a_earlyGate,
int  a_lateGate,
int  a_lgOffset,
int  a_smearingWindow,
int  a_numIterations,
bool  a_doFit = false,
TF1 *  a_fitFun = nullptr 
)
static

this routine starts with a time over threshold estimation of the start time of the scintillation event it then generates two integral gates with a specified offset. The integrals of the two gates are stored in m_P1int, and m_P2int

run the time over threshold bits to get start for integrals

◆ processWaveform() [2/2]

template<class T >
CLYCTOTWFResults CLYCWFTools< T >::processWaveform ( T *  a_wf,
int  a_numSamples,
float  a_baseline,
double  a_ampThreshold,
double  a_minSamplesOver,
int  a_daqEvStartSample,
int  a_totalIntegralOffset,
int  a_intP1,
int  a_intP2,
int  a_intP3,
int  a_intP4,
int  a_smearingWindow,
int  a_numIterations,
bool  a_doFit = false,
TF1 *  a_fitFun = nullptr,
bool  a_buildCDF = false 
)
static

this routine starts with a time over threshold estimation of the start time of the scintillation event it then generates four tail integrals with length specified by PN

run the time over threshold bits to get start for integrals

accumulate the fit parameters in the returned class

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

◆ runTOT()

template<class T >
void CLYCWFTools< T >::runTOT ( T *  a_wf,
int  a_numSamples,
float  a_baseline,
double  a_ampThreshold,
double  a_minSamplesOver,
int  a_daqEvStartSample,
int  a_totalIntegralOffset,
CLYCTOTWFResults a_res,
int  a_smearingWindow,
int  a_numIterations 
)
static

this function runs the time over threshold routine stores the relevant results in the a_res reference handed to the algorithm

getting the max peak amplitude

getting the sample corresponding to max amplitude

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

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