Commit a166f250 authored by Mark Hodgkinson's avatar Mark Hodgkinson
Browse files

Move setting of FE data to after push_back to container. Avoids segmentation...

Move setting of FE data to after push_back to container. Avoids segmentation fault (presumably related to links to aux container).
parent 4fb11ac3
......@@ -59,8 +59,8 @@ void PFChargedFlowElementCreatorAlgorithm::createChargedFlowElements(const eflow
/* Create new xAOD::FlowElement and set the type to charged PFlow */
xAOD::FlowElement* thisFE = new xAOD::FlowElement();
thisFE->setSignalType(xAOD::FlowElement::SignalType::ChargedPFlow);
chargedFlowElementContainerWriteHandle->push_back(thisFE);
thisFE->setSignalType(xAOD::FlowElement::SignalType::ChargedPFlow);
/* Get the track elementLink and add it to the xAOD:FE.
Note we first have to convert it to an IParticle ElementLink. */
......
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