Skip to content

Commit

Permalink
Fix shifting too little.
Browse files Browse the repository at this point in the history
  • Loading branch information
matz-e committed Oct 13, 2016
1 parent 1499038 commit 3361202
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ HcalTriggerPrimitiveAlgo::validChannel(const QIE10DataFrame& digi, int ts) const
if (digi[ts].adc() < adc_threshold)
return true;

return (1ul << (digi[ts].le_tdc() - 1)) & tdc_mask;
return (1ul << digi[ts].le_tdc()) & tdc_mask;
}

void HcalTriggerPrimitiveAlgo::analyzeHF2017(
Expand Down

0 comments on commit 3361202

Please sign in to comment.