Skip to content

Commit e831e52

Browse files
committed
Bug fix: empty fPMT_Channels fix
1 parent 990f123 commit e831e52

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

sbndcode/OpDetSim/opDetDigitizerSBND_module.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,7 @@ namespace opdet {
298298
}
299299

300300
// get PMT channels
301-
for (const auto& wvf : fWaveforms) {
302-
auto ch = wvf.ChannelNumber();
301+
for (unsigned int ch = 0; ch < nChannels; ++ch) {
303302
if (map.isPDType(ch, "pmt_uncoated") || map.isPDType(ch, "pmt_coated")) fPMT_Channels.push_back(ch);
304303
}
305304

0 commit comments

Comments
 (0)