LDMX Software
|
piece-wise exponential pulse, modelled as an output of a capacitor More...
#include <QIEInputPulse.h>
Public Member Functions | |
Expo () | |
The default constructor. | |
Expo (float k, float tmax) | |
Main constructor. | |
virtual | ~Expo ()=default |
main constructor | |
float | GetRise () |
Get Rise time of the pulse. | |
float | GetFall () |
Get Fall time of the pulse. | |
void | SetRiseFall (float rr, float ff) |
Set Rise and Fall time of the pulse. | |
float | EvalSingle (float T, int id) override |
Evaluate the pulse at time T. | |
float | Integrate (float T1, float T2) override |
Integrate the pulse from T1 to T2. | |
float | Max (int id) override |
maximum of the pulse | |
float | Derivative (float T, int id) override |
Differentiate pulse at time T. | |
Public Member Functions inherited from trigscint::QIEInputPulse | |
virtual | ~QIEInputPulse ()=default |
Destructor. | |
float | Eval (float T) |
Evaluate the pulse train at time T. | |
void | AddPulse (float toff, float ampl) |
To add a pulse to the collection. | |
int | GetNPulses () |
Get the number of pulses in the collection. | |
Private Member Functions | |
float | I_Int (float T, int id) |
Indefinite integral at time T. | |
Private Attributes | |
float | k_ |
1/RC time constant (for the capacitor) | |
float | tmax_ |
time when pulse attains maximum | |
float | rt_ {-1} |
Rise Time. | |
float | ft_ {-1} |
Fall Time. | |
Additional Inherited Members | |
Protected Attributes inherited from trigscint::QIEInputPulse | |
std::vector< float > | toff_ |
collection of pulse time offsets | |
std::vector< float > | ampl_ |
collection of pulse amplitudes | |
piece-wise exponential pulse, modelled as an output of a capacitor
Definition at line 122 of file QIEInputPulse.h.
trigscint::Expo::Expo | ( | ) |
trigscint::Expo::Expo | ( | float | k, |
float | tmax | ||
) |
Main constructor.
k | = 1/(RC time const) |
tmax | = relative time of the pulse maximum (in ns) |
Definition at line 107 of file QIEInputPulse.cxx.
|
virtualdefault |
main constructor
Destructor
|
overridevirtual |
Differentiate pulse at time T.
Implements trigscint::QIEInputPulse.
Definition at line 157 of file QIEInputPulse.cxx.
References trigscint::QIEInputPulse::ampl_, k_, tmax_, and trigscint::QIEInputPulse::toff_.
|
overridevirtual |
Evaluate the pulse at time T.
Implements trigscint::QIEInputPulse.
Definition at line 124 of file QIEInputPulse.cxx.
References trigscint::QIEInputPulse::ampl_, k_, tmax_, and trigscint::QIEInputPulse::toff_.
|
inline |
|
inline |
|
private |
Indefinite integral at time T.
Definition at line 169 of file QIEInputPulse.cxx.
References trigscint::QIEInputPulse::ampl_, k_, tmax_, and trigscint::QIEInputPulse::toff_.
Referenced by Integrate().
|
overridevirtual |
Integrate the pulse from T1 to T2.
Implements trigscint::QIEInputPulse.
Definition at line 147 of file QIEInputPulse.cxx.
References trigscint::QIEInputPulse::ampl_, I_Int(), and trigscint::QIEInputPulse::toff_.
|
overridevirtual |
maximum of the pulse
Implements trigscint::QIEInputPulse.
Definition at line 141 of file QIEInputPulse.cxx.
References trigscint::QIEInputPulse::ampl_, k_, and tmax_.
void trigscint::Expo::SetRiseFall | ( | float | rr, |
float | ff | ||
) |
|
private |
Fall Time.
Definition at line 185 of file QIEInputPulse.h.
Referenced by Expo(), GetFall(), and SetRiseFall().
|
private |
1/RC time constant (for the capacitor)
Definition at line 179 of file QIEInputPulse.h.
Referenced by Derivative(), EvalSingle(), Expo(), I_Int(), Max(), and SetRiseFall().
|
private |
Rise Time.
Definition at line 183 of file QIEInputPulse.h.
Referenced by Expo(), GetRise(), and SetRiseFall().
|
private |
time when pulse attains maximum
Definition at line 181 of file QIEInputPulse.h.
Referenced by Derivative(), EvalSingle(), Expo(), I_Int(), Max(), and SetRiseFall().