Skip to content

Commit

Permalink
Shortcut for zero hit
Browse files Browse the repository at this point in the history
  • Loading branch information
pandreetto committed Apr 21, 2023
1 parent d9f00da commit 5e37dbb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/MuonCVXDRealDigitiser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,9 @@ void MuonCVXDRealDigitiser::processEvent(LCEvent * evt)
if (STHcol == nullptr or STHcol->getNumberOfElements() == 0)
{
streamlog_out(MESSAGE) << "Number of produced hits: " << THcol->getNumberOfElements() << std::endl;
return;
}

std::string encoder_str { STHcol->getParameters().getStringVal(lcio::LCIO::CellIDEncoding) };
CellIDDecoder<TrackerHitPlaneImpl> cellid_decoder { encoder_str };

Expand Down

0 comments on commit 5e37dbb

Please sign in to comment.