Skip to content

Commit 937bc64

Browse files
Fix for cases when there is no SPEC TDC
1 parent 012b13b commit 937bc64

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

sbndcode/LightPropagationCorrection/LightPropagationCorrection_module.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,8 @@ void sbnd::LightPropagationCorrection::produce(art::Event & e)
208208
e.getByLabel(fSPECTDCLabel, tdcHandle);
209209
if (!tdcHandle.isValid() || tdcHandle->size() == 0){
210210
std::cout << "No SPECTDC products found. Skip this event." << std::endl;
211-
return;
211+
ResetSliceInfo();
212+
continue;
212213
}
213214
else{
214215
const std::vector<sbnd::timing::DAQTimestamp> tdc_v(*tdcHandle);

0 commit comments

Comments
 (0)