All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | List of all members
icarus::trigger::WaveformWithBaseline Struct Reference

Object to carry around waveform ant its baseline. More...

#include <TriggerGateBuilder.h>

Inheritance diagram for icarus::trigger::WaveformWithBaseline:

Public Types

using Waveform_t = raw::OpDetWaveform
 
using Baseline_t = icarus::WaveformBaseline
 
using Base_t = std::tuple< Waveform_t const *, Baseline_t const * >
 

Public Member Functions

Waveform_t const & waveform () const
 Returns a reference to the waveform. More...
 
Baseline_t const & baseline () const
 Returns a reference to the waveform baseline. More...
 
Waveform_t const * waveformPtr () const
 Returns a pointer to the waveform. More...
 
Baseline_t const * baselinePtr () const
 Returns a pointer to the waveform baseline. More...
 
bool hasBaseline () const
 Returns whether the baseline is available for this waveform. More...
 
 operator Waveform_t const & () const
 
 operator Waveform_t const * () const
 
 operator Baseline_t const & () const
 
 operator Baseline_t const * () const
 

Detailed Description

Object to carry around waveform ant its baseline.

Definition at line 56 of file TriggerGateBuilder.h.

Member Typedef Documentation

Definition at line 62 of file TriggerGateBuilder.h.

Definition at line 61 of file TriggerGateBuilder.h.

Definition at line 60 of file TriggerGateBuilder.h.

Member Function Documentation

Baseline_t const& icarus::trigger::WaveformWithBaseline::baseline ( ) const
inline

Returns a reference to the waveform baseline.

Definition at line 70 of file TriggerGateBuilder.h.

70 { return *baselinePtr(); }
Baseline_t const * baselinePtr() const
Returns a pointer to the waveform baseline.
Baseline_t const* icarus::trigger::WaveformWithBaseline::baselinePtr ( ) const
inline

Returns a pointer to the waveform baseline.

Definition at line 77 of file TriggerGateBuilder.h.

78  { return std::get<Baseline_t const*>(*this); }
bool icarus::trigger::WaveformWithBaseline::hasBaseline ( ) const
inline

Returns whether the baseline is available for this waveform.

Definition at line 81 of file TriggerGateBuilder.h.

81 { return baselinePtr() != nullptr; }
Baseline_t const * baselinePtr() const
Returns a pointer to the waveform baseline.
icarus::trigger::WaveformWithBaseline::operator Baseline_t const & ( ) const
inline

Definition at line 87 of file TriggerGateBuilder.h.

87 { return baseline(); }
Baseline_t const & baseline() const
Returns a reference to the waveform baseline.
icarus::trigger::WaveformWithBaseline::operator Baseline_t const * ( ) const
inline

Definition at line 88 of file TriggerGateBuilder.h.

88 { return baselinePtr(); }
Baseline_t const * baselinePtr() const
Returns a pointer to the waveform baseline.
icarus::trigger::WaveformWithBaseline::operator Waveform_t const & ( ) const
inline

Definition at line 85 of file TriggerGateBuilder.h.

85 { return waveform(); }
Waveform_t const & waveform() const
Returns a reference to the waveform.
icarus::trigger::WaveformWithBaseline::operator Waveform_t const * ( ) const
inline

Definition at line 86 of file TriggerGateBuilder.h.

86 { return waveformPtr(); }
Waveform_t const * waveformPtr() const
Returns a pointer to the waveform.
Waveform_t const& icarus::trigger::WaveformWithBaseline::waveform ( ) const
inline

Returns a reference to the waveform.

Definition at line 67 of file TriggerGateBuilder.h.

67 { return *waveformPtr(); }
Waveform_t const * waveformPtr() const
Returns a pointer to the waveform.
Waveform_t const* icarus::trigger::WaveformWithBaseline::waveformPtr ( ) const
inline

Returns a pointer to the waveform.

Definition at line 73 of file TriggerGateBuilder.h.

74  { return std::get<Waveform_t const*>(*this); }

The documentation for this struct was generated from the following file: