TClass interpretation via python not working
Summary
Bug was reported in the Forum: https://allpix-squared-forum.web.cern.ch/t/pyroot-dictionary-for-allpix-mcparticle-missing/262
Allpix Squared objects cannot be accessed from python via the object library, although the path was set properly. I tested it quickly with v2.0.3
, which still works. Not working on recent master
.
Steps to reproduce
Run a simulation that exports i.a. MCParticle
data via the ROOTObjectWriter
, e.g. the eudet_rd53a
example. Then use tools/root_analysis_macro/display_mc_hits.py
to read the data, like
python3 display_mc_hits.py -l ../../lib/libAllpixObjects.so -f ../../examples/eudet_rd53a/output/eudet_rd53a_data.root -d dut_0
This will lead to error messages, mainly reading
Error in <TClass::LoadClassInfo>: no interpreter information for class allpix::MCParticle is available even though it has a TClass initialization routine.
Build environment information
From the forum:
Allpix Squared version v2.0.0-686-gf2d12a42
built on 2022-02-16, 16:33:56 UTC
using Boost.Random 1.77.0
ROOT 6.24/06
Geant4 1100
As mentioned, on tagged version v2.0.3 it does work.