|
| | WaveformAnalyzerBase ()=delete |
| |
| | WaveformAnalyzerBase (std::string _procname, std::string config_name) |
| |
| virtual void | Configure (const std::string &config_name) |
| |
| virtual void | SetS (std::string param, std::string value) override |
| |
| virtual void | SetD (std::string param, double value) override |
| |
| virtual void | SetI (std::string param, int value) override |
| |
| virtual void | RunAnalysis (DS::DigitPMT *digitpmt, int pmtID, Digitizer *fDigitizer) |
| |
| virtual void | RunAnalysis (DS::DigitPMT *digitpmt, int pmtID, DS::Digit *dsdigit) |
| |
| Processor::Result | Event (DS::Root *ds, DS::EV *ev) override |
| |
| virtual void | DoAnalysis (DS::DigitPMT *digitpmt, const std::vector< UShort_t > &digitwfm)=0 |
| |
| virtual std::string | GetAnalyzerName () const |
| |
| | 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) |
| |
|
|
double | fTimeStep |
| |
|
double | fVoltageRes |
| |
|
double | fTermOhms |
| |
|
double | fMinTotalCharge = std::numeric_limits<double>::lowest() |
| |
|
double | fMaxTotalCharge = std::numeric_limits<double>::max() |
| |
|
std::string | name |
| |
◆ WaveformAnalyzerBase() [1/2]
| RAT::WaveformAnalyzerBase::WaveformAnalyzerBase |
( |
| ) |
|
|
delete |
Default constructor. Disabled as this class should only be inherited, not instantiated.
◆ WaveformAnalyzerBase() [2/2]
| RAT::WaveformAnalyzerBase::WaveformAnalyzerBase |
( |
std::string |
_procname, |
|
|
std::string |
config_name |
|
) |
| |
|
inline |
Create a new waveform analyzer.
- Parameters
-
| _procname | Name of the processor. It correspond the processor registered in ProcBlockManager, as well as the one called in macros. |
| _procname | A configuration index used to specify a set of parameters. See Configure(). |
◆ Configure()
| void WaveformAnalyzerBase::Configure |
( |
const std::string & |
config_name | ) |
|
|
virtual |
◆ DoAnalysis()
| virtual void RAT::WaveformAnalyzerBase::DoAnalysis |
( |
DS::DigitPMT * |
digitpmt, |
|
|
const std::vector< UShort_t > & |
digitwfm |
|
) |
| |
|
pure virtual |
◆ Event()
Main function called for each event.
Reimplemented from RAT::Processor.
◆ GetAnalyzerName()
| std::string WaveformAnalyzerBase::GetAnalyzerName |
( |
| ) |
const |
|
virtual |
Short name under which this analyzer's WaveformAnalysisResult is stored (e.g. "Lognormal"). Used both inside DoAnalysis() and to guarantee a result is always created, even when analysis is skipped (e.g. due to the charge thresholds). By default this is the processor name with the leading "WaveformAnalysis" stripped (so WaveformAnalysisLognormal -> "Lognormal"). Override if an analyzer's processor name does not follow that convention.
◆ RunAnalysis() [1/2]
Function that sets up the digitizer object and calls DoAnalysis() appropriately.
- Parameters
-
| digitpmt | Pointer to the digitpmt that the current waveform correspond to. |
| pmtID | The ID of the current PMT. These may not correspond to real PMTs, should an analysis is requested by a channel (LCN) that does not map to a PMT. |
| fDigitizer | digitizer that contains the waveforms. This function sets up the following class variables: fTimeStep: nanoseconds that correspond to a time step in the waveform. fVoltageRes: mV that correespond to one ADC in the waveform. fTermOhms: termination resistance of the voltage. Recall that charge is voltage / termination integrated over time. |
◆ RunAnalysis() [2/2]
Function that sets up the digitizer object and calls DoAnalysis() appropriately.
- Parameters
-
| digitpmt | Pointer to the digitpmt that the current waveform correspond to. |
| pmtID | The ID of the current PMT. These may not correspond to real PMTs, should an analysis is requested by a channel (LCN) that does not map to a PMT. |
| dsdigit | digitizer that contains the waveforms. |
This function sets up the following class variables: fTimeStep: nanoseconds that correspond to a time step in the waveform. fVoltageRes: mV that correespond to one ADC in the waveform. fTermOhms: termination resistance of the voltage. Recall that charge is voltage / termination integrated over time.
◆ SetD()
| void WaveformAnalyzerBase::SetD |
( |
std::string |
param, |
|
|
double |
value |
|
) |
| |
|
overridevirtual |
◆ SetI()
| void WaveformAnalyzerBase::SetI |
( |
std::string |
param, |
|
|
int |
value |
|
) |
| |
|
overridevirtual |
◆ SetS()
| void WaveformAnalyzerBase::SetS |
( |
std::string |
param, |
|
|
std::string |
value |
|
) |
| |
|
overridevirtual |
Functions that gets called for /procset lines in the macro. Base class calls allows you to set a config name and call Configure().
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/WaveformAnalyzerBase.hh
- /home/docs/checkouts/readthedocs.org/user_builds/ratpac/checkouts/latest/src/daq/src/WaveformAnalyzerBase.cc