![]() |
Project
|
#include <SAMPAProcessing.h>
Public Member Functions | |
| SAMPAProcessing (TRandom *rng=nullptr) | |
| ~SAMPAProcessing ()=default | |
| Destructor. | |
| void | setRandomRingPositions (TRandom &rng) |
| Move the random ring to a new position drawn from rng. | |
| void | updateParameters (float vdrift=0) |
| Update the OCDB parameters cached in the class. To be called once per event. | |
| template<typename T > | |
| T | getADCvalue (T nElectrons) const |
| float | getADCSaturation (const float signal) const |
| template<DigitzationMode MODE> | |
| float | makeSignal (float ADCcounts, const int sector, const int globalPadInSector, const float commonMode, float &pedestal, float &noise, float tot=0) |
| void | getShapedSignal (float ADCsignal, float driftTime, std::vector< float > &signalArray) const |
| template<typename T > | |
| T | getGamma4 (T time, T startTime, T ADC) const |
| TimeBin | getTimeBin (float zPos) const |
| float | getZfromTimeBin (float timeBin, Side s) const |
| TimeBin | getTimeBinFromTime (float time) const |
| float | getTimeFromBin (TimeBin timeBin) const |
| float | getTimeBinTime (float time) const |
| float | getNoise (const int sector, const int globalPadInSector) |
| float | getZeroSuppression (const int sector, const int globalPadInSector) const |
| Get the zero suppression threshold for a given channel. | |
| float | getPedestal (const int sector, const int globalPadInSector) const |
| float | getPedestalCRU (const int sector, const int globalPadInSector) const |
Static Public Member Functions | |
| static SAMPAProcessing & | instance () |
This class takes care of the signal processing in the Front-End Cards (FECs), i.e. the shaping and the digitization Further effects such as saturation of the FECs are implemented.
Definition at line 40 of file SAMPAProcessing.h.
|
explicit |
Constructor
| rng | random generator to fill the random ring from, gRandom if null |
Definition at line 27 of file SAMPAProcessing.cxx.
|
default |
Destructor.
For larger input values the SAMPA response is not linear which is taken into account by this function
| signal | Input signal |
Definition at line 217 of file SAMPAProcessing.h.
|
inline |
Conversion from a given number of electrons into ADC value without taking into account saturation (vectorized)
| nElectrons | Number of electrons in time bin |
Definition at line 156 of file SAMPAProcessing.h.
|
inline |
Value of the Gamma4 shaping function at a given time (vectorized)
| time | Time of the ADC value with respect to the first bin in the pulse |
| startTime | First bin in the pulse |
| ADC | ADC value of the corresponding time bin |
55 is for normalization: 1/Integral(Gamma4)
Definition at line 227 of file SAMPAProcessing.h.
|
inline |
Get the noise for a given channel
| sector | sector number |
| globalPadInSector | pad number in sector |
Definition at line 274 of file SAMPAProcessing.h.
|
inline |
Get the pedestal for a given channel
| sector | sector number |
| globalPadInSector | pad number in sector |
Definition at line 284 of file SAMPAProcessing.h.
|
inline |
Get the pedestal for a given channel as used in the CRU with 10+2bit precision
| sector | sector number |
| globalPadInSector | pad number in sector |
Definition at line 289 of file SAMPAProcessing.h.
| void SAMPAProcessing::getShapedSignal | ( | float | ADCsignal, |
| float | driftTime, | ||
| std::vector< float > & | signalArray | ||
| ) | const |
A delta signal is shaped by the FECs and thus spread over several time bins This function returns an array with the signal spread into the following time bins
| ADCsignal | Signal of the incoming charge |
| driftTime | t0 of the incoming charge |
Definition at line 45 of file SAMPAProcessing.cxx.
Compute time bin from z position
| zPos | z position of the charge |
Definition at line 244 of file SAMPAProcessing.h.
Compute time bin from time
| time | time of the charge |
Definition at line 255 of file SAMPAProcessing.h.
Compute the time of a given time bin
| time | Time of the charge |
Definition at line 269 of file SAMPAProcessing.h.
Compute time from time bin
| timeBin | time bin of the charge |
Definition at line 264 of file SAMPAProcessing.h.
|
inline |
Get the zero suppression threshold for a given channel.
Definition at line 279 of file SAMPAProcessing.h.
Compute z position from time bin
| Time | bin of the charge |
| Side | of the TPC |
Definition at line 249 of file SAMPAProcessing.h.
|
inlinestatic |
Definition at line 43 of file SAMPAProcessing.h.
|
inline |
Make the full signal including noise and pedestals from the OCDB
| ADCcounts | ADC value of the signal (common mode already subtracted) |
| sector | Sector number |
| globalPadInSector | global pad number in the sector |
| commonMode | value of the common mode |
Definition at line 164 of file SAMPAProcessing.h.
|
inline |
Move the random ring to a new position drawn from rng.
Definition at line 56 of file SAMPAProcessing.h.
Update the OCDB parameters cached in the class. To be called once per event.
Definition at line 32 of file SAMPAProcessing.cxx.