Rootmap

Hi,
I have a problem: I define a library containing an event which includes some vectors.
If I create a rootmap file, then I have a strange behavior in root when I try to use TTree::Draw as follow:

root [1] tree->Draw ("evnum")               
Warning in <TStreamerInfo::BuildOld>: Cannot convert BxLaben::raw_hits from type:vector<BxLabenRawHit> to type:vector<BxLabenRawHit>, skip element

If I remove the following line from the rootmap it works:

Library.std@@vector<BxLabenRawHit>:         rootechidna.so

Have any idea?

Thanks

Yes. version of ROOT older than v5.18 did not handle well (to say the least :slight_smile:) STL container in a rootmap file. Which version of ROOT are you using?

Cheers,
Philippe.

The wrong one I would say :neutral_face:
I will try with a newer version.
Thank you

I installed version 5.20 and it works :slight_smile:

Just a point: is there a way to ask to old root versions (5.16) to ignore the rootmap file? I would like to put in rootlogon.C something like:

if (root::version < 5.20) {
  ignore rootmap
  load library
}

Thanks
Alessandro

Hi,

There is no easy to disable the loading of the rootmap file short of simply deleting them for the disk.

Cheers,
Philippe.