![]() |
Project
|
#include <SAMPAProcessing.h>
Public Member Functions | |
~SAMPAProcessing ()=default | |
Destructor. | |
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.
|
default |
Destructor.
|
inline |
For larger input values the SAMPA response is not linear which is taken into account by this function
signal | Input signal |
Definition at line 221 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 150 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 231 of file SAMPAProcessing.h.
Get the noise for a given channel
sector | sector number |
globalPadInSector | pad number in sector |
Definition at line 278 of file SAMPAProcessing.h.
|
inline |
Get the pedestal for a given channel
sector | sector number |
globalPadInSector | pad number in sector |
Definition at line 288 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 293 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.
|
inline |
Compute time bin from z position
zPos | z position of the charge |
Definition at line 248 of file SAMPAProcessing.h.
|
inline |
Compute time bin from time
time | time of the charge |
Definition at line 259 of file SAMPAProcessing.h.
|
inline |
Compute the time of a given time bin
time | Time of the charge |
Definition at line 273 of file SAMPAProcessing.h.
|
inline |
Compute time from time bin
timeBin | time bin of the charge |
Definition at line 268 of file SAMPAProcessing.h.
|
inline |
Get the zero suppression threshold for a given channel.
Definition at line 283 of file SAMPAProcessing.h.
|
inline |
Compute z position from time bin
Time | bin of the charge |
Side | of the TPC |
Definition at line 253 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 158 of file SAMPAProcessing.h.
void SAMPAProcessing::updateParameters | ( | float | vdrift = 0 | ) |
Update the OCDB parameters cached in the class. To be called once per event.
Definition at line 32 of file SAMPAProcessing.cxx.