Commit 37ef8a2a authored by David Christopher Hall's avatar David Christopher Hall Committed by Graeme Stewart
Browse files

Report error if McEventCollection not properly initialised in GenBase (GeneratorModules-03-00-02)

	* Tagging: GeneratorModules-03-00-02

	* Report error if McEventCollection not properly initialised in GenBase
parent 2b953b38
......@@ -98,7 +98,8 @@ public:
/// Access the current event's McEventCollection (const)
const SG::RVar<McEventCollection> events_const() const {
/// @todo Throw an error if the collection hasn't been initialised yet?
if (!m_mcevents_const.isValid())
ATH_MSG_ERROR("No McEventCollection found in StoreGate with key " << m_mcEventKey);
return m_mcevents_const;
}
......
Markdown is supported
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