diff --git a/Analysis/DumpEvent/src/DumpSimHitAlg.cpp b/Analysis/DumpEvent/src/DumpSimHitAlg.cpp index 1a1500fa4693b0a62cf6178f89b49db60beede03..5c9a3d1f22f99b75f7d4e987e4befa9e5066e30e 100644 --- a/Analysis/DumpEvent/src/DumpSimHitAlg.cpp +++ b/Analysis/DumpEvent/src/DumpSimHitAlg.cpp @@ -54,7 +54,18 @@ StatusCode DumpSimHitAlg::execute() { auto vxdCol = m_VXDCol.get(); for (auto hit: *vxdCol) { - + auto mcparticle = hit.getMCParticle(); + + if (mcparticle.getGeneratorStatus() != 1) { + error() << "Found generator status is not 1 for hit. " << endmsg; + } + + info() << "hit -> " + << " mcparticle (" + << " ID: " << mcparticle.getObjectID().index << "; " + << " generator status: " << mcparticle.getGeneratorStatus() << "; " + << " simulator status: " << mcparticle.getSimulatorStatus() << ") " + << endmsg; } return StatusCode::SUCCESS;