namespace trk{
class Header : public TObject{ ... };
class Event : public TObject{
private:
Header _head;
Int_t _nClusters;
...
};
}
namespace tof{
class Header : public TObject{ ... };
class Event : public TObject{
private:
Header _head;
Int_t _nBars;
...
};
}
namespace glb{
class Event : public TObject{
private:
trk::Event _trkev;
tof::Event _tofev;
...
};
}
I can write a ROOT file with this structure.
But when I read this file I have this error:
Error in TBranchElement::GetDataMemberOffset: obsolete call with (trk::Event,_trkev._head)
Error in TBranchElement::GetDataMemberOffset: obsolete call with (trk::Event,._head)
Error in TBranchElement::GetDataMemberOffset: obsolete call with (trk::Event,._head)
Error in TBranchElement::GetDataMemberOffset: obsolete call with (tof::Event,_tofev._head)
Error in TBranchElement::GetDataMemberOffset: obsolete call with (tof::Event,._head)
Error in TBranchElement::GetDataMemberOffset: obsolete call with (tof::Event,._head)
Thank you for your help.
Alberto