Linear Collider Forum

Home » Software Tools » LCIO » schema evolution with LCGenericObject
schema evolution with LCGenericObject [message #1791] Sat, 11 July 2009 07:26 Go to previous message
Messages: 66
Registered: January 2007
Location: INFN - Roma3

Dear all,

almost two years ago we decided to derive a class from LCGenericObject to store a set of information. This is quite a simple structure made by N double values.

Now we realized that, in some case, it would be better to have at least one additional information, say one more integer value.

This is done very simply by replacing this code

MyStructure(int n) : LCGenericObject( 0, 0, n) {




MyStructure(int n) : LCGenericObject( 1, 0, n) {



The question is: will we be able to read old object with new definition? We don't need to be able to write the old object, but at least to read back the ones we have already created.

Thanks for your help,


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 04:03:06 Pacific Standard Time 2020
.:: Contact :: Home ::.

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