Diana Software
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
QPulse Class Reference

Raw event: sampled waveform. More...

Inheritance diagram for QPulse:

Public Member Functions

 QPulse ()
 default constructor More...
 
 QPulse (const QPulse &other)
 copy constructor More...
 
virtual ~QPulse ()
 destructor More...
 
const Diana::QVector & GetSamples () const
 Get Samples casted to double (QVector instead of QVectorI). Use this method in place of GetSamplesADC. More...
 
void SetSamplesADC (const Diana::QVectorI &samples)
 Set Samples acquired from ADC. More...
 
const Diana::QVectorI & GetSamplesADC () const
 Get Samples acquired from ADC. Beware that fSamplesADC may by empty if fFiller is valid
More...
 
void SetPulseFiller (const QPulseFiller &filler)
 Set QPulseFiller as input from continuous files. More...
 
const QPulseFillerGetPulseFiller () const
 Get QPulseFiller. More...
 
QPulseFillerGetPulseFiller ()
 Get QPulseFiller. More...
 
void Consolidate ()
 Consolidate. Store samples from the fFiller into fSamplesADC
More...
 
void DeleteADC ()
 Consolidate. Store samples from the fFiller into fSamplesADC
More...
 
void Clear ()
 Clear() More...
 
const QPulseoperator= (const QPulse &)
 
void Dump (std::ostream &o) const
 

Protected Member Functions

 QObjectDef (QPulse, 5)
 

Protected Attributes

Diana::QVector * fSamples
 Acquired Samples casted to double. More...
 
bool fSamplesAreSet
 boolean for samples caching mechanism More...
 
Diana::QVectorI fSamplesADC
 Acquired Samples. More...
 
QPulseFillerfFiller_ptr
 pulse filler
More...
 

Detailed Description

Raw event: sampled waveform.

Author
MV SDD
Examples
MTutorialAveragePulse.cc, MTutorialPulseShape.cc, and ScanEvents.C.

Definition at line 22 of file QPulse.hh.

Constructor & Destructor Documentation

◆ QPulse() [1/2]

QPulse::QPulse ( )

default constructor

◆ QPulse() [2/2]

QPulse::QPulse ( const QPulse other)

copy constructor

Definition at line 21 of file QPulse.cc.

References Clear(), and operator=().

◆ ~QPulse()

QPulse::~QPulse ( )
virtual

destructor

Definition at line 28 of file QPulse.cc.

References fFiller_ptr, and fSamples.

Member Function Documentation

◆ Clear()

void QPulse::Clear ( )

Clear()

Definition at line 13 of file QPulse.cc.

References QPulseFiller::Clear(), fFiller_ptr, fSamples, fSamplesADC, and fSamplesAreSet.

Referenced by QObjectImp(), QPulse(), and SetPulseFiller().

◆ Consolidate()

void QPulse::Consolidate ( )

Consolidate. Store samples from the fFiller into fSamplesADC

Definition at line 90 of file QPulse.cc.

References DianaThrow, err, fFiller_ptr, QPulseFiller::Fill(), fSamplesADC, and QERR_SUCCESS.

Referenced by MQPulseManager::Do().

◆ DeleteADC()

void QPulse::DeleteADC ( )

Consolidate. Store samples from the fFiller into fSamplesADC

Definition at line 98 of file QPulse.cc.

References fSamplesADC.

Referenced by MQPulseManager::Do().

◆ Dump()

void QPulse::Dump ( std::ostream &  o) const

Definition at line 106 of file QPulse.cc.

References fSamplesADC.

◆ GetPulseFiller() [1/2]

QPulseFiller* QPulse::GetPulseFiller ( )
inline

Get QPulseFiller.

Definition at line 51 of file QPulse.hh.

References fFiller_ptr.

◆ GetPulseFiller() [2/2]

const QPulseFiller* QPulse::GetPulseFiller ( ) const
inline

Get QPulseFiller.

Definition at line 48 of file QPulse.hh.

References fFiller_ptr.

Referenced by MCustomWaveform::Do().

◆ GetSamples()

const Diana::QVector & QPulse::GetSamples ( ) const

◆ GetSamplesADC()

const Diana::QVectorI & QPulse::GetSamplesADC ( ) const

Get Samples acquired from ADC. Beware that fSamplesADC may by empty if fFiller is valid

Definition at line 69 of file QPulse.cc.

References fSamplesADC.

Referenced by MTestFetchContinuousIO::Do(), QCreateSidePulseByPulseSplitting::FillList(), and GetSamples().

◆ operator=()

const QPulse & QPulse::operator= ( const QPulse other)

◆ QObjectDef()

QPulse::QObjectDef ( QPulse  ,
 
)
protected

◆ SetPulseFiller()

void QPulse::SetPulseFiller ( const QPulseFiller filler)

Set QPulseFiller as input from continuous files.

Definition at line 81 of file QPulse.cc.

References Clear(), fFiller_ptr, QPulseFiller::Fill(), and fSamplesADC.

Referenced by MCustomWaveform::Do().

◆ SetSamplesADC()

void QPulse::SetSamplesADC ( const Diana::QVectorI &  samples)

Set Samples acquired from ADC.

Definition at line 74 of file QPulse.cc.

References fSamplesADC, and fSamplesAreSet.

Referenced by MDecorrelator::Do(), MDownSampling::Do(), and QCreateSidePulseByPulseSplitting::FillList().

Member Data Documentation

◆ fFiller_ptr

QPulseFiller* QPulse::fFiller_ptr
protected

pulse filler

Definition at line 77 of file QPulse.hh.

Referenced by Clear(), Consolidate(), GetPulseFiller(), GetSamples(), operator=(), SetPulseFiller(), and ~QPulse().

◆ fSamples

Diana::QVector* QPulse::fSamples
mutableprotected

Acquired Samples casted to double.

Definition at line 68 of file QPulse.hh.

Referenced by Clear(), GetSamples(), and ~QPulse().

◆ fSamplesADC

Diana::QVectorI QPulse::fSamplesADC
protected

Acquired Samples.

Definition at line 74 of file QPulse.hh.

Referenced by Clear(), Consolidate(), DeleteADC(), Dump(), GetSamples(), GetSamplesADC(), operator=(), SetPulseFiller(), and SetSamplesADC().

◆ fSamplesAreSet

bool QPulse::fSamplesAreSet
mutableprotected

boolean for samples caching mechanism

Definition at line 71 of file QPulse.hh.

Referenced by Clear(), GetSamples(), operator=(), and SetSamplesADC().


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