|
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 | iInt (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_, iInt(), 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(), iInt(), 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(), iInt(), max(), and setRiseFall().