+ /* Retrieve ZS parameters from data*/
+ if(failZS) {
+ short value = stream.GetAltroCFG1();
+ bool ZeroSuppressionEnabled = (value >> 15) & 0x1;
+ bool AutomaticBaselineSubtraction = (value >> 14) & 0x1;
+ if(ZeroSuppressionEnabled) {
+ offset = (value >> 10) & 0xf;
+ threshold = value & 0x3ff;
+ fitter.SubtractPedestals(kFALSE);
+ fitter.SetAmpOffset(offset);
+ fitter.SetAmpThreshold(threshold);
+ }
+ }
+