Skip to content

Commit 990e237

Browse files
committed
Remove unnecessary round when converting from ChannelROI back to Wire.
1 parent 0368412 commit 990e237

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sbncode/HitFinder/ChannelROIToWire_module.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ void ChannelROIToWire::produce(art::Event& evt)
141141

142142
std::vector<float> dataVec(range.data().size());
143143

144-
for(size_t binIdx = 0; binIdx < range.data().size(); binIdx++) dataVec[binIdx] = std::round(range.data()[binIdx] / ADCScaleFactor);
144+
for(size_t binIdx = 0; binIdx < range.data().size(); binIdx++) dataVec[binIdx] = range.data()[binIdx] / ADCScaleFactor;
145145

146146
ROIVec.add_range(startTick, std::move(dataVec));
147147
}

0 commit comments

Comments
 (0)