27SAMPAProcessing::SAMPAProcessing() : mRandomNoiseRing()
38 mPedestalMap = &(cdb.getPedestals());
39 mPedestalMapCRU = &(cdb.getPedestalsCRU());
40 mNoiseMap = &(cdb.getNoise());
41 mZeroSuppression = &(cdb.getZeroSuppressionThreshold());
42 mVDrift = vdrift > 0 ? vdrift : mGasParam->
DriftV;
48 const float offset = driftTime - timeBinTime;
49 for (
float bin = 0; bin < mEleParam->
NShapedPoints; bin += Vc::float_v::Size) {
50 Vc::float_v binvector;
51 for (
int i = 0;
i < Vc::float_v::Size; ++
i) {
52 binvector[
i] = bin +
i;
54 Vc::float_v
time = timeBinTime + binvector * mEleParam->
ZbinWidth;
55 Vc::float_v signal =
getGamma4(
time, Vc::float_v(timeBinTime +
offset), Vc::float_v(ADCsignal));
56 for (
int i = 0;
i < Vc::float_v::Size; ++
i) {
57 signalArray[bin +
i] = signal[
i];
Simple interface to the CDB manager.
Definition of the SAMPA response.
static const ParameterGas & Instance()
static CDBInterface & instance()
void getShapedSignal(float ADCsignal, float driftTime, std::vector< float > &signalArray) const
float getTimeBinTime(float time) const
void updateParameters(float vdrift=0)
Update the OCDB parameters cached in the class. To be called once per event.
T getGamma4(T time, T startTime, T ADC) const
Global TPC definitions and constants.
float ZbinWidth
Width of a z bin [us].
float DriftV
Drift velocity [cm/us].