JeffersonLab / hcana

Hall C++ Analyzer
7 stars 118 forks source link

Updated THcNPSArray to have flag to output raw waveform sample #494

Closed MarkKJones closed 1 year ago

MarkKJones commented 1 year ago

Added parameter nps_cal_arr_OutputSampRawWaveform ; If nps_cal_arr_OutputSampRawWaveform = 1 then output raw (Adc Chan) 4ns samples in the waveform ; If nps_cal_arr_OutputSampRawWaveform = 0 then output pedestal subtracted (converted to mV) 4ns samples in the waveform ; Default is nps_cal_arr_OutputSampRawWaveform=0 if nps_cal_arr_OutputSampRawWaveform is not set in parameter file

Modified THcNPSArray to fill fOutputSampRawWaveform with new parameter 1) fSampWaveform in loaded with raw ADC chan values if nps_cal_arr_OutputSampRawWaveform = 1 2) fSampWaveform in loaded with pedsubtracted ADC values converted to mV if nps_cal_arr_OutputSampRawWaveform = 0