ALERT
|
ahdc signal simulation More...
#include <ahdcSignal.h>
Public Member Functions | |
ahdcSignal ()=default | |
Default constructor. | |
ahdcSignal (MHit *aHit, int _hitn, double _tmin, double _tmax, double _timeOffset, double _samplingTime, double _Landau_width) | |
Constructor. | |
~ahdcSignal () | |
Destructor. | |
double | GetElectronYield () |
Return the value of the attribut electronYield | |
std::vector< double > | GetEdep () |
Return the content of the attribut Edep | |
std::vector< double > | GetG4Time () |
Return the content of the attribut G4Time | |
std::vector< double > | GetDoca () |
Return the content of the attribut Doca | |
std::vector< double > | GetDriftTime () |
Return the content of the attribut DriftTime | |
std::vector< short > | GetNoise () |
Return the content of the attribut Noise | |
std::vector< short > | GetDgtz () |
Return the content of the attribut Dgtz | |
void | SetElectronYield (double electronYield_) |
Set the electron yield. | |
double | operator() (double timePoint) |
Overloaded () operator to get the value of the signal at a given time. | |
void | Digitize () |
Digitize the simulated signal. | |
void | GenerateNoise (double mean, double stdev) |
Generate gaussian noise. | |
double | GetMCTime () |
double | GetMCEtot () |
std::map< std::string, double > | Extract (bool expression=true) |
Extract various informations from the digitized signal. | |
void | PrintBeforeProcessing (bool expression=true) |
void | PrintAllShapes (bool expression=true) |
void | PrintAfterProcessing (bool expression=true) |
void | PrintNoise (bool expression=true) |
void | PrintSignal (bool expression=true) |
ahdc signal simulation
This class simulates the waveform of the ahdc signal and provide algorithms to extract relevant informations from this signal.
As it is written, it can only be used on the ifarm :-(
void ahdcSignal::Digitize | ( | ) |
Digitize the simulated signal.
This method perfoms several steps
samplingTime
)electronYield
)Dgtz
and Noise
std::map< std::string, double > ahdcSignal::Extract | ( | bool | expression = true | ) |
Extract various informations from the digitized signal.
This method computes
binMax
, binOffset
, adcMax
, timeMax
, integral
timeRiseCFA
, timeFallCFA
, timeOverThresholdCFA
, timeCFD
void ahdcSignal::GenerateNoise | ( | double | mean, |
double | stdev ) |
Generate gaussian noise.
Noise
|
inline |
Overloaded ()
operator to get the value of the signal at a given time.
t | Time at which to calculate the signal's value |
t
|
inline |
Set the electron yield.
Only relevant before the use of the method Digitize