ALERT
Loading...
Searching...
No Matches
ahdcSignal Class Reference

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)
 

Public Attributes

int hitn
 n-th MHit of the event, also corresponds to the n-th activated wire
 
int sector
 sector, first wire identifier
 
int layer
 layer, second wire identifer
 
int component
 component, third wire identifier
 
int nsteps
 number of steps in this MHit, i.e number of Geant4 calculation steps in the sensitive area of the wire
 

Detailed Description

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 :-(

Author
Felix Touchte Codjo

Member Function Documentation

◆ Digitize()

void ahdcSignal::Digitize ( )

Digitize the simulated signal.

This method perfoms several steps

  • step 1 : it produces samples from the simulated signal (using samplingTime)
  • step 2 : it converts keV/ns in ADC units (using electronYield)
  • step 3 : it adds noise
Returns
Fill the attributs Dgtz and Noise

◆ Extract()

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

◆ GenerateNoise()

void ahdcSignal::GenerateNoise ( double mean,
double stdev )

Generate gaussian noise.

Returns
Fill the attribut Noise

◆ operator()()

double ahdcSignal::operator() ( double timePoint)
inline

Overloaded () operator to get the value of the signal at a given time.

Parameters
tTime at which to calculate the signal's value
Returns
Value of the signal at the time t

◆ SetElectronYield()

void ahdcSignal::SetElectronYield ( double electronYield_)
inline

Set the electron yield.

Only relevant before the use of the method Digitize


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