ara-software / AraRoot

ARA data access framework
2 stars 7 forks source link

Adding new AraCalType v2 #28

Closed MyoungchulK closed 2 years ago

MyoungchulK commented 2 years ago

I added a few more calibration types for raw data debugging and changed names.

1. kLatestCalibWithOutZeroMean

Performs every calibration except the ADC and Voltage zero meaning. Since the zero meaning function is an additional correction for calibration, I added the mode to turn off the correction. By this mode, the user can check how much offset that WF can have from 0 after pedestal subtraction.

2. kOnlyPed, kOnlyPedWithOut1stBlock, kOnlyPedWithOut1stBlockAndBadSamples

Since there is no method to check what is the pedestal values for the corresponding WF through AraRoot, I implemented this method. So, users can easily get pedestal values by AraRoot If the user chooses this mode, PedestalSubtraction() will replace voltMapIt iterator with pedestal values

It will only turn on, 1) kOnlyPed: PedestalSubtraction() 2) kOnlyPedWithOut1stBlock: PedestalSubtraction() and TrimFirstBlock(). It is useful when a user makes a pedestal with their own custom repeder scripts 3) kOnlyPedWithOut1stBlockAndBadSamples: PedestalSubtraction(), TrimFirstBlock(), TimingCalibrationAndBadSampleReomval() and ApplyCableDelay() The number of samples and time width betweens samples will be the same as fully calibrated WF (kLatestCalib). So, users can easy to compare with it.

3. kOnlyADC, kOnlyADCWithOut1stBlock, kOnlyADCWithOut1stBlockAndBadSamples

It will print out the raw ADC WF with different mode

It will only turn on, 1) kOnlyADC: None. This is basically the same as kNoCalib. If this is redundant, I will remove it 2) kOnlyADCWithOut1stBlock: TrimFirstBlock(). 3) kOnlyADCWithOut1stBlockAndBadSamples: TrimFirstBlock(), TimingCalibrationAndBadSampleReomval() and ApplyCableDelay()