Skip to content

Commit 028064b

Browse files
committed
fix for running without crt strip hits present
1 parent 53b6391 commit 028064b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

sbndcode/Commissioning/HitDumper_module.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -581,9 +581,11 @@ void Hitdumper::analyze(const art::Event& evt)
581581
art::fill_ptr_vector(crtStripHitVector, crtStripHitHandle);
582582
_n_crt_strip_hits = crtStripHitVector.size();
583583
}
584-
else
584+
else {
585585
std::cout << "Failed to get sbnd::crt::CRTStripHit data product ("<<fCRTStripHitModuleLabel<<")." << std::endl;
586-
586+
_n_crt_strip_hits = 0;
587+
}
588+
587589
if (_n_crt_strip_hits > _max_crt_strip_hits) _n_crt_strip_hits = _max_crt_strip_hits;
588590

589591
ResetCRTStripHitVars();

0 commit comments

Comments
 (0)