Skip to content

Commit 0768b08

Browse files
Merge pull request #533 from SBNSoftware/bugfix/pgreen_hitdumper_fix
Bug fix for running hitdumper without crt strip hits present
2 parents d750aea + 1d8ad8c commit 0768b08

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
@@ -584,9 +584,11 @@ void Hitdumper::analyze(const art::Event& evt)
584584
art::fill_ptr_vector(crtStripHitVector, crtStripHitHandle);
585585
_n_crt_strip_hits = crtStripHitVector.size();
586586
}
587-
else
587+
else {
588588
std::cout << "Failed to get sbnd::crt::CRTStripHit data product ("<<fCRTStripHitModuleLabel<<")." << std::endl;
589-
589+
_n_crt_strip_hits = 0;
590+
}
591+
590592
if (_n_crt_strip_hits > _max_crt_strip_hits) _n_crt_strip_hits = _max_crt_strip_hits;
591593

592594
ResetCRTStripHitVars();

0 commit comments

Comments
 (0)