Skip to content
Snippets Groups Projects
Commit 93b221c5 authored by lintao@ihep.ac.cn's avatar lintao@ihep.ac.cn
Browse files

WIP: print all hits

parent 7d98e86f
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment