Belle II Software development
DefaultWave Class Reference

A functor to provide a simple model of APV25 strip response. More...

#include <WaveFitter.h>

Public Member Functions

 DefaultWave (double tau=s_default_tau)
 Constructor takes waveform decay time as parameter.
 
double getValue (double t) const
 getValue() returns the value at desired time and time shift.
 
double getTau () const
 return the decay time
 

Static Public Attributes

static double s_default_tau = 50
 Default waveform decay time.
 

Private Attributes

double m_tau
 Waveform decay time.
 

Detailed Description

A functor to provide a simple model of APV25 strip response.

Definition at line 25 of file WaveFitter.h.

Constructor & Destructor Documentation

◆ DefaultWave()

DefaultWave ( double  tau = s_default_tau)
inline

Constructor takes waveform decay time as parameter.

Parameters
tauwaveform decay time

Definition at line 31 of file WaveFitter.h.

31: m_tau(tau) {}
double m_tau
Waveform decay time.
Definition: WaveFitter.h:54

Member Function Documentation

◆ getTau()

double getTau ( ) const
inline

return the decay time

Definition at line 51 of file WaveFitter.h.

51{ return m_tau; }

◆ getValue()

double getValue ( double  t) const
inline

getValue() returns the value at desired time and time shift.

It is normalized to unit amplitude (value at maximum).

Parameters
ttime at which wave has to be calculated
Returns
waveform at time t

Definition at line 40 of file WaveFitter.h.

41 {
42 if (t < 0)
43 return 0.0;
44 else {
45 double z = t / m_tau;
46 return z * std::exp(1.0 - z);
47 }
48 }

Member Data Documentation

◆ m_tau

double m_tau
private

Waveform decay time.

Definition at line 54 of file WaveFitter.h.

◆ s_default_tau

double s_default_tau = 50
static

Default waveform decay time.

Definition at line 33 of file WaveFitter.h.


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