Linear Collider Forum

Home » Software Tools » LCIO » schema evolution with LCGenericObject
Re: schema evolution with LCGenericObject [message #1792 is a reply to message #1791] Sat, 11 July 2009 08:22 Go to previous messageGo to previous message
Messages: 233
Registered: January 2004
Location: DESY, Hamburg
Hi Toto,

in principle one can read arbitrary LCGenericObjects from LCIO files, so of course one can also read older files where the number of LCGenericObject data members is different.
So it is up to your wrapper class to handle the 'schema evolution' when reading, e.g. by checking the number of ints before accessing them.
A small problem arises if you are using the LCFixedObject<I,J,K> template as this really requires the number of elements to be fixed. In this case you would have to modify your wrapper to use LCGenericObjectImpl, which should be somewhat straight forward.

Read Message
Read Message
Read Message yes.gif
Read Message
Read Message
Previous Topic:LCWriter error when inputfile and outpufile only differ in "_" changed to "."
Next Topic:Segmentation violation when copying ParticleIDs of ReconstructedParticle
Goto Forum:

Current Time: Sat Feb 29 05:02:50 Pacific Standard Time 2020
.:: Contact :: Home ::.

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