Skip to content

Commit 2f14e3f

Browse files
Merge pull request #592 from SBNSoftware/trj_bulletproof_choppyfilter_jan9_2025
FilterChoppy_module.cc
2 parents 62cd415 + 9e79dec commit 2f14e3f

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

sbndcode/Calibration/DQM/FilterChoppy_module.cc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,13 @@ namespace filt{
105105
// exit if the data isn't present
106106
if (!timestamp_handle.isValid()) {
107107
std::cerr << "Error: missing timestamps with producer (" << "daq" << ")" << std::endl;
108-
return false;
108+
return true; // don't want to filter out events missing TPC data (e.g. CRT-only runs)
109109
}
110+
if (timestamp_handle->size() == 0) {
111+
std::cerr << "Error: missing timestamps with producer (" << "daq" << ")" << std::endl;
112+
return true; // don't want to filter out events missing TPC data (e.g. CRT-only runs)
113+
}
114+
110115
art::fill_ptr_vector(raw_timestamps_handle, timestamp_handle);
111116

112117
// collect TS

0 commit comments

Comments
 (0)