[Rivet] yoda2root problem

Andy Buckley andy.buckley at cern.ch
Sun Nov 22 18:32:40 GMT 2015


Hi Vlad,

This error reflects that the conversion from ROOT to YODA objects may 
fail for some reason, resulting in a null "None" object.

As it happens, I yesterday updated the ROOT <-> YODA interaction to add 
a root2yoda script and to protect yoda2root against this possible None 
value. YODA 1.5.6 was just released with these improvements included, so 
you can try that... or if that's not an option, try grabbing a local 
copy of your current yoda2root and adding a "if obj is None" filtering 
before the converted objects are used.

This doesn't solve the problem that some objects cannot be converted to 
ROOT equivalents. I'm not sure why the failure is happening -- if you're 
able to send us a copy of your problematic .yoda file, we can look into 
it and hopefully put further improvements in the *next* YODA release.

Best wishes,
Andy


On 22/11/15 14:53, Vladyslav Danilov wrote:
> Hello!
>
> My name is Vlad, i work in ATLAS group at DESY on my magister thesis.
>
> I need to convert .yoda file to .root file, but after using
>
>    >> yoda2root name.yoda name.root
>
> i get an error and nobody knows what it causes,
> could you please have a look?
> Maybe it's some sort of a bug or i'm doing smth wrong?
>
> The error looks like:
>
>
>      Traceback (most recent call last):
>      File "/cvmfs/atlas.cern.ch/repo/sw/software/x86_64-slc6-gcc47-opt/19.2.4/AtlasProduction/19.2.4.14/InstallArea/share/bin/yoda2root", line 34, in <module>
>      parts = obj.GetName().split("/")
>      AttributeError: 'NoneType' object has no attribute 'GetName'
>
> Please see in attachment the yoda file itself(it's small) and the log file of producing the yoda file.
> If you have any additional questions - please write me an email.
>
>
> Best regards,
>     Vlad
>
>
>
> _______________________________________________
> Rivet mailing list
> Rivet at projects.hepforge.org
> https://www.hepforge.org/lists/listinfo/rivet
>


-- 
Dr Andy Buckley, Lecturer / Royal Society University Research Fellow
Particle Physics Expt Group, University of Glasgow


More information about the Rivet mailing list