(First time poster) Hey, I’m trying to call some C++ code with Python. For Python, I have:
mm = ROOT.MuonMatcher
mm.Test()
I created a MuonMatcher class with C++ code with Test() being a method within it (it just returns a number; I just want to see it work. But I get:
AttributeError Traceback (most recent call last)
in
5
6 #mm = ROOT.MuonMatcher.MatchOppositelyChargedMuons(rvf, rvi)
----> 7 mm = ROOT.MuonMatcher
8
9 mm.Test()
/cvmfs/sft.cern.ch/lcg/views/LCG_100/x86_64-centos7-gcc8-opt/lib/ROOT/_facade.py in _fallback_getattr(self, name)
190 if res:
191 return res
→ 192 raise AttributeError(“Failed to get attribute {} from ROOT”.format(name))
193
194 def _finalSetup(self):
AttributeError: Failed to get attribute MuonMatcher from ROOT
I was wondering what the deal is. I got this to work once, but never again.
Please read tips for efficient and successful posting and posting code
ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided