WaveformPrep Class Reference

Ratpac-two: RAT::WaveformPrep Class Reference
Ratpac-two

Process the digitized waveforms. More...

#include <WaveformPrep.hh>

Inheritance diagram for RAT::WaveformPrep:
RAT::Processor

Public Member Functions

 WaveformPrep (std::string analyzer_name)
 
void Configure (const std::string &analyzer_name)
 
void RunAnalysis (DS::DigitPMT *digitpmt, int pmtID, Digitizer *fDigitizer, double timeOffset=0.0)
 
void RunAnalysis (DS::DigitPMT *digitpmt, int pmtID, DS::Digit *dsdigit, double timeOffset=0.0)
 
double RunAnalysisOnTrigger (int pmtID, Digitizer *fDigitizer)
 
void ZeroSuppress (DS::EV *ev, DS::DigitPMT *digitpmt, int pmtID)
 
virtual Processor::Result Event (DS::Root *ds, DS::EV *ev)
 
virtual void SetS (std::string param, std::string value)
 
virtual void SetD (std::string param, double value)
 
virtual void SetI (std::string param, int value)
 
- Public Member Functions inherited from RAT::Processor
 Processor (std::string _name)
 
virtual ~Processor ()
 
std::string GetName () const
 
virtual void SetF (std::string param, float value)
 
virtual Processor::Result DSEvent (DS::Root *ds)
 
virtual void BeginOfRun (DS::Run *run)
 
virtual void EndOfRun (DS::Run *run)
 

Protected Member Functions

void DoAnalysis (DS::DigitPMT *pmt, const std::vector< UShort_t > &DigitWfm, double timeOffset)
 

Protected Attributes

DBLinkPtr fDigit
 
double fTimeStep
 
double fVoltageRes
 
double fTermOhms
 
int fPedWindowLow
 
int fPedWindowHigh
 
double fLookback
 
int fIntWindowLow
 
int fIntWindowHigh
 
double fConstFrac
 
int fLowIntWindow
 
int fHighIntWindow
 
double fVoltageCrossing
 
double fThreshold
 
int fSlidingWindow
 
double fChargeThresh
 
int fApplyCableOffset
 
int fZeroSuppress
 
- Protected Attributes inherited from RAT::Processor
std::string name
 

Additional Inherited Members

- Public Types inherited from RAT::Processor
enum  Result { OK = 0 , FAIL = 1 , ABORT = 2 }
 

Detailed Description

Process the digitized waveforms.

Author
Tanner Kaptanoglu tanne.nosp@m.rbk@.nosp@m.berke.nosp@m.ley..nosp@m.edu
Ravi Pitelka rpite.nosp@m.lka@.nosp@m.sas.u.nosp@m.penn.nosp@m..edu

REVISION HISTORY:
25 Oct 2022: Initial commit 14 Oct 2024: Refactored from WaveformAnalysis to WaveformPrep

This class provides full support for analysis of the digitized waveform, providing tools to do timing at the threshold crossing, integrated charge, etc. Refactored from implementation in WaveformAnalysis.

Member Function Documentation

◆ Event()

Processor::Result RAT::WaveformPrep::Event ( DS::Root ds,
DS::EV ev 
)
virtual

Process one triggered event.

If you do not override DSEvent(), then this method is called once per triggered event. As a convenience, a reference is also provided to the root of the data structure associated with the triggered event.

Do not override this method if you also plan to override DSEvent().

Parameters
[in]dsRoot of data structure
[in,out]evTriggered event data structure
Returns
Status code for successs/failure in processing this event.

Reimplemented from RAT::Processor.

◆ SetD()

void RAT::WaveformPrep::SetD ( std::string  param,
double  value 
)
virtual

Set double parameter

Parameters
[in]paramName of parameter.
[in]valueValue of parameter.
Exceptions
ParamUnknownif param is not recognized.
ParamInvalidif value is not allowed for param.

Reimplemented from RAT::Processor.

◆ SetI()

void RAT::WaveformPrep::SetI ( std::string  param,
int  value 
)
virtual

Set integer parameter.

Parameters
[in]paramName of parameter.
[in]valueValue of parameter.
Exceptions
ParamUnknownif param is not recognized.
ParamInvalidif value is not allowed for param.

Reimplemented from RAT::Processor.

◆ SetS()

void RAT::WaveformPrep::SetS ( std::string  param,
std::string  value 
)
virtual

Set string parameter.

Parameters
[in]paramName of parameter.
[in]valueValue of parameter.
Exceptions
ParamUnknownif param is not recognized.
ParamInvalidif value is not allowed for param.

Reimplemented from RAT::Processor.


The documentation for this class was generated from the following files:
  • /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/daq/include/RAT/WaveformPrep.hh
  • /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/daq/src/WaveformPrep.cc