Skip to content

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
lwang046 committed Mar 3, 2020
1 parent c62ccf1 commit e000458
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SimCalorimetry/HcalSimAlgos/src/HcalTDC.cc
Expand Up @@ -49,7 +49,7 @@ void HcalTDC::timing(const CaloSamples& lf, QIE11DataFrame& digi) const {
}

if (risingReady) {
if (i != (lf.size()*tdcBins-1) && i != 0 && (lf.preciseAt(i + 1) - lf.preciseAt(i - 1)) > TDC_Threshold) {
if (i != (lf.size() * tdcBins - 1) && i != 0 && (lf.preciseAt(i + 1) - lf.preciseAt(i - 1)) > TDC_Threshold) {
risingReady = false;
TDC_RisingEdge = i - preciseBegin;
} else if (i == 0 && (lf.preciseAt(i + 1) - lf.preciseAt(i)) / 0.5 > TDC_Threshold) {
Expand All @@ -59,7 +59,7 @@ void HcalTDC::timing(const CaloSamples& lf, QIE11DataFrame& digi) const {
TDC_RisingEdge = theTDCParameters.noTransitionCode();
}

if ((!risingReady) && (i == (preciseEnd - 1)) && (i != (lf.size()*tdcBins-1))) {
if ((!risingReady) && (i == (preciseEnd - 1)) && (i != (lf.size() * tdcBins - 1))) {
if (((lf.preciseAt(i + 1) - lf.preciseAt(i - 1)) < TDC_Threshold)) {
risingReady = true;
}
Expand Down

0 comments on commit e000458

Please sign in to comment.