Skip to content

Commit

Permalink
Fix job crashing for 9 time-bin FST data (star-bnl#634)
Browse files Browse the repository at this point in the history
Issue star-bnl#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 <[email protected]>
  • Loading branch information
2 people authored and dkapukchyan committed Mar 11, 2024
1 parent 37add97 commit 312b8fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion StRoot/StEvent/StFstConsts.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 312b8fd

Please sign in to comment.