Linear Collider Forum



Home » Software Tools » LCIO » Segmentation violation when copying ParticleIDs of ReconstructedParticle
Re: Segmentation violation when copying ParticleIDs of ReconstructedParticle [message #1906 is a reply to message #1905] Thu, 21 January 2010 08:53 Go to previous messageGo to previous message
gaede
Messages: 233
Registered: January 2004
Location: DESY, Hamburg
Dear Phillipe,

the ReconstructedParticle owns its ParticleIDs, thus when copying a ReconstructedObject one has to also copy the PArticleIDs.

Could you try the following:

// replace
// recoPFO->addParticleID( aPFO->getParticleIDs()[k] ) ;
// with

recoPFO->addParticleID( new ParticleIDImpl( aPFO->getParticleIDs()[k])  ) ;



Frank.
 
Read Message
Read Message
Read Message
Previous Topic:schema evolution with LCGenericObject
Next Topic:Error Using LCIOWriter
Goto Forum:
  


Current Time: Tue Nov 13 12:18:33 Pacific Standard Time 2018
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.1.
Copyright ©2001-2010 FUDforum Bulletin Board Software