From 312b8fde601abc978cf8d364dde999c4e94dcefc Mon Sep 17 00:00:00 2001 From: Te-Chuan Huang Date: Wed, 13 Dec 2023 11:14:56 -0600 Subject: [PATCH] Fix job crashing for 9 time-bin FST data (#634) Issue #631 was due to an inconsistent number of time bins used in the data and the codes. In most FST data and in the codes, we used 3 time bins, while some data used 9 time bins. Only changing a constant in `StRoot/StEvent/StFstConsts.h` is needed to fix this issue. Co-authored-by: Te-Chuan Huang --- StRoot/StEvent/StFstConsts.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/StRoot/StEvent/StFstConsts.h b/StRoot/StEvent/StFstConsts.h index 422bcd2702d..fd84cc5ed12 100644 --- a/StRoot/StEvent/StFstConsts.h +++ b/StRoot/StEvent/StFstConsts.h @@ -52,7 +52,7 @@ const float kFstrStart[kFstNumRStripsPerWedge]= {5.000, 7.875, 10.750, 13.625, 1 const float kFstrStop[kFstNumRStripsPerWedge] = {7.875, 10.750, 136.25, 16.500, 19.375, 22.250, 25.125, 28.000}; // in cm //general APV chip constants -const unsigned char kFstNumTimeBins = 3; // 3 time bins for ADC sampling (maximum time bin number) +const unsigned char kFstNumTimeBins = 9; // 9 time bins for ADC sampling (maximum time bin number, 3 or 9) const unsigned char kFstDefaultTimeBin = 2; // the default time bin number (2nd time bin) for FST raw hits const int kFstMaxAdc = 4096; // ADC value should be less than 4096 (12 bits ADC)