Commit b3b639b9 authored by Ruth Pottgen's avatar Ruth Pottgen Committed by Atlas Nightlybuild
Browse files

Merge branch '21.0_HepMCTruthReaderPatch' into '21.0'

Protecting HepMCTruthReader against null signal vertex

See merge request !27673

(cherry picked from commit 413f51a1)

31ccba88 Protecting HepMCTruthReader against null signal vertex
parent 37e1db32
Pipeline #1213054 passed with stage
in 0 seconds
......@@ -56,9 +56,10 @@ StatusCode HepMCTruthReader::execute() {
if (cntr==0) {
HepMC::GenVertex* signalProcessVtx = genEvt->signal_process_vertex();
ATH_MSG_INFO("Signal process vertex position: (" << signalProcessVtx->position().x()
<< ", " << signalProcessVtx->position().y() << ", " << signalProcessVtx->position().z() << "). Pointer: "
<< signalProcessVtx);
ATH_MSG_INFO("Signal process vertex position: (" << (signalProcessVtx?signalProcessVtx->position().x():0)
<< ", " << (signalProcessVtx?signalProcessVtx->position().y():0)
<< ", " << (signalProcessVtx?signalProcessVtx->position().z():0)
<< "). Pointer: " << signalProcessVtx);
}
printEvent(genEvt);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment