Skip to content

TeslaTools.TeslaTruthUtils.makeTruth

Michael Kent Wilkinson requested to merge mwilkins/fix_makeTruth into run2-patches

corrects bug that leads to the TypeError (see this email):

# DaVinci                   INFO    Append to Main Sequence has been called
Traceback (most recent call last):
File "/cvmfs/lhcb.cern.ch/lib/lhcb/GAUDI/GAUDI_v32r1/InstallArea/x86_64-centos7-gcc8-opt/scripts/gaudirun.py", line 525, in <module>
  exec (o, g, l)
File "<string>", line 1, in <module>
File "/workspace/build/GAUDI/GAUDI_v32r1/InstallArea/x86_64-centos7-gcc8-opt/python/GaudiKernel/ProcessJobOptions.py", line 490, in importOptions
File "/workspace/build/GAUDI/GAUDI_v32r1/InstallArea/x86_64-centos7-gcc8-opt/python/GaudiKernel/ProcessJobOptions.py", line 458, in _import_python
File "/afs/cern.ch/work/m/mwilkins/Xic0/options/Xic0.py", line 529, in <module>
  TeslaTruthUtils.makeTruth(tup, relations, mc_tools)
File "/workspace/build/PHYS/PHYS_v26r2/InstallArea/x86_64-centos7-gcc8-opt/python/TeslaTools/TeslaTruthUtils.py", line 80, in makeTruth
File "/workspace/build/PHYS/PHYS_v26r2/InstallArea/x86_64-centos7-gcc8-opt/python/PhysSelPython/Wrappers.py", line 1531, in addTool
File "/workspace/build/PHYS/PHYS_v26r2/InstallArea/x86_64-centos7-gcc8-opt/python/PhysSelPython/Wrappers.py", line 1525, in addTupleTool
File "/workspace/build/ANALYSIS/ANALYSIS_v21r2/InstallArea/x86_64-centos7-gcc8-opt/python/DecayTreeTuple/Configuration.py", line 68, in addTupleTool
TypeError: You are trying to add a default public tool-configurable to your ntuple: TupleToolMCTruth/TupleToolMCTruth This is dangerous so not allowed with addTTool. Either add it yourself manually, or, better, supply an instance name
Edited by Michael Kent Wilkinson

Merge request reports