Skip to content

Commit

Permalink
clean the expression for nnlsWork_.bxOffset
Browse files Browse the repository at this point in the history
  • Loading branch information
jaehyeok committed Dec 19, 2018
1 parent e9ae96b commit 10874a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RecoLocalCalo/HcalRecAlgos/src/MahiFit.cc
Expand Up @@ -134,7 +134,7 @@ void MahiFit::doFit(std::array<float,3> &correctedOutput, int nbx) const {
}
else {
bxSize = bxSizeConf_;
nnlsWork_.bxOffset = bxOffsetConf_ + ((static_cast<int>(nnlsWork_.tsOffset) + activeBXs_[0]) >= 0 ? 0 : (nnlsWork_.tsOffset + activeBXs_[0]));
nnlsWork_.bxOffset = static_cast<int>(nnlsWork_.tsOffset) >= bxOffsetConf_ ? bxOffsetConf_ : nnlsWork_.tsOffset;
}

nnlsWork_.nPulseTot = bxSize;
Expand Down

0 comments on commit 10874a1

Please sign in to comment.