Note that your object (on the file) are of type TMrbWindow2D and thus you can not assign their address to a TCutG* unless you load a library that implements TMrbWindow2D.
Hi Rene, Philippe,
thanks for your answers.
In fact our user doesnt know exactly how he produced this file
except he used my HistPresent . With f.Map() I see at least
a key StreamerInfo and with Inspect I see the variables of
class TMrbWindow2D : public TCutG.
root loads for me libTGMrbUtils.so containing class TMrbWindow2D automagically since I have a .root.map.
So I think you cant really help us since you dont have our machinery.
I attach a similiar file made with the “same” program for which all
works as expected :
Since I never saw this effect before I was curious.
Our user could not reproduce this either.
(related but In general, rather than the syntax:TCutG *cc;
cc = (TCutG*)f.Get("nickel"); We recommend to use TCutG *cc; f.GetObject("nickel",cc); where GetObject will set cc to the address of the objec if and only if the actual object is a type suitable to be stored in ‘cc’; otherwise cc is set to 0.