20 unsigned int thisSat = (ampls[0] >= 254), maxSat = thisSat;
21 for (
unsigned int i = 1,
n = ampls.size();
i <
n; ++
i) {
22 if (ampls[
i] >= 254) {
24 }
else if (thisSat > 0) {
25 maxSat = std::max<int>(maxSat, thisSat);
30 maxSat = std::max<int>(maxSat, thisSat);
37 unsigned int hitStripsTrim = ampls.size();
38 int sum = std::accumulate(ampls.begin(), ampls.end(), 0);
40 auto begin = ampls.begin();
41 auto last = ampls.end() - 1;
42 while (hitStripsTrim > 1 && (*begin < std::max<uint8_t>(trimCut,
trimMaxFracNeigh_ * (*(begin + 1))))) {
constexpr int32_t ceil(float num)
static constexpr double maxTrimmedSizeDiffNeg_
static constexpr double trimMaxFracTotal_
SiStripCluster const & amplitudes() const
Abs< T >::type abs(const T &t)
static constexpr double maxTrimmedSizeDiffPos_
SiStripApproximateCluster()
static constexpr double trimMaxFracNeigh_
static constexpr double trimMaxADC_