Skip to content
Snippets Groups Projects
Commit a059934b authored by Andre Sailer's avatar Andre Sailer
Browse files

LCIOReader: protect against missing Gean4InputAction, like in test_eventreader

parent d2868d52
No related branches found
No related tags found
No related merge requests found
...@@ -121,7 +121,10 @@ LCIOEventReader::readParticles(int event_number, ...@@ -121,7 +121,10 @@ LCIOEventReader::readParticles(int event_number,
int genStatus = mcp->getGeneratorStatus(); int genStatus = mcp->getGeneratorStatus();
// Copy raw generator status // Copy raw generator status
p->genStatus = genStatus&G4PARTICLE_GEN_STATUS_MASK; p->genStatus = genStatus&G4PARTICLE_GEN_STATUS_MASK;
m_inputAction->setGeneratorStatus(genStatus, status); if(m_inputAction) {
// in some tests we do not set up the inputAction
m_inputAction->setGeneratorStatus(genStatus, status);
}
//fg: we simply add all particles without parents as with their own vertex. //fg: we simply add all particles without parents as with their own vertex.
// This might include the incoming beam particles, e.g. in // This might include the incoming beam particles, e.g. in
......
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