I was expecting that ClassDef update of modified classes would solve this kind of problems in the future after ROOT schema evolution implementation.
Recently, TRestHits::fMod
and TRestHits::fCh
members were removed, affecting few other classes, as TRestG4Hits
, TRestTRack
, TRestVolumeHits
.
When reading a TRestTrackEvent
file processed with v2.2.11
we get the following error message.
Warning in <TBranchElement::InitializeOffsets>: No streamer element for branch: fTrack subbranch: fTrack.fHits.fMod
Warning in <TBranchElement::InitializeOffsets>: No streamer element for branch: fTrack subbranch: fTrack.fHits.fCh
Error in <TBufferFile::ReadClassBuffer>: Could not find the StreamerInfo for version 3 of the class TRestHits, object skipped at offset 83
Error in <TBufferFile::CheckByteCount>: object of class TRestHits read too few bytes: 2 instead of 1318
I imagine this error is not a big worry? It is just happening that V2.2.12 is ignoring the content of fMod
and fCh
? How to avoid getting this error message?
Do we need to have the definition of TRestHits version 3 anywhere?