Skip to content

Commit 47a949d

Browse files
authored
Merge pull request #9 from Mu2e/scorrodi/patchForV3_04_00
adjusted to changes in CRV decoders: restoring changes in commit 2231156
2 parents e9f5d0c + 7ff3671 commit 47a949d

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

otsdaq-mu2e-crv/ArtModules/CrvDQM_module.cc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff 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

otsdaq-mu2e-crv/ArtModules/CrvVstDemoViewer_module.cc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff 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_) {

0 commit comments

Comments
 (0)