File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed
otsdaq-mu2e-crv/ArtModules Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -345,7 +345,14 @@ void CrvDQM::analyze(art::Event const& e)
345345 mu2e::CRVDataDecoder (subevent); // reference
346346 // const auto crvStatus =
347347 // crvData.GetCRVROCStatusPacket(bl);
348- auto hits = crvData.GetCRVHits (bl);
348+ std::vector<mu2e::CRVDataDecoder::CRVHit> hits;
349+ auto res = crvData.GetCRVHits (bl, hits);
350+ if (!res)
351+ {
352+ TLOG (TLVL_ERROR) << " Unable to get CRV hist!" ;
353+ continue ;
354+ }
355+
349356 for (auto & hit : hits)
350357 {
351358 // Fill histograms
Original file line number Diff line number Diff line change @@ -452,7 +452,14 @@ void CrvVstDemoViewer::analyze(art::Event const& event)
452452 {
453453 auto crvData = mu2e::CRVDataDecoder (subevent); // reference
454454 // const auto crvStatus = crvData.GetCRVROCStatusPacket(bl);
455- auto hits = crvData.GetCRVHits (bl);
455+ std::vector<mu2e::CRVDataDecoder::CRVHit> hits;
456+ auto res = crvData.GetCRVHits (bl, hits);
457+ if (!res)
458+ {
459+ TLOG (TLVL_ERROR) << " Unable to get CRV hist!" ;
460+ continue ;
461+ }
462+
456463 for (auto & hit : hits)
457464 {
458465 // if (newCanvas_) {
You can’t perform that action at this time.
0 commit comments