Project

General

Profile

Bug #1415

PyROOT fails to load MAUS Spill

Added by Rogers, Chris over 7 years ago. Updated over 7 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
Category:
Data Structure
Target version:
Start date:
12 February 2014
Due date:
% Done:

0%

Estimated time:
Workflow:
New Issue

Description

I get an error as follows and a segmentation fault. Thanks ROOT!

Failed bunch_set_covariance_matrix_test with True True False True True
TStreamerInfo::BuildOld:0: RuntimeWarning: Cannot convert MAUS::Spill::_mc from type:MAUS::MCEventArray* to type:vector<MAUS::MCEvent*>, skip element
TStreamerInfo::BuildOld:0: RuntimeWarning: Cannot convert MAUS::Spill::_recon from type:MAUS::ReconEventArray* to type:vector<MAUS::ReconEvent*>, skip element
Error in <TStreamerSTL::GetSize>: Could not find the TClass for MAUS::MCEventArray*.
This is likely to have been a typedef, if possible please declare it in CINT to work around the issue

Error in <TStreamerSTL::GetSize>: Could not find the TClass for MAUS::ReconEventArray*.
This is likely to have been a typedef, if possible please declare it in CINT to work around the issue

 *** Break *** segmentation violation
    main()
    known_paths = addusersitepackages(known_paths)
    user_site = getusersitepackages()
    user_base = getuserbase() # this will also set USER_BASE
    USER_BASE = get_config_var('userbase')
    return get_config_vars().get(name)
    _init_posix(_CONFIG_VARS)
    makefile = _get_makefile_filename()
    return os.path.join(get_path('platstdlib').replace("/usr/local","/usr",1), "config" + (sys.pydebug and "_d" or ""), "Makefile")
Unhandled exception in test bunch_maus_root_io_test
Traceback (most recent call last):
  File "/home/cr67/MAUS/maus_merge/third_party/install/lib/python2.7/site-packages/xboa/test/TestTools.py", line 29, in run_test
    test_out = str(function(*args))
  File "xboa/test/BunchTest.py", line 668, in bunch_maus_root_io_test
    bunch = Bunch.new_from_read_builtin(format, sys.prefix+'/share/xboa/data/maus_test.root')
  File "/home/cr67/MAUS/maus_merge/third_party/install/lib/python2.7/site-packages/xboa/Bunch.py", line 246, in new_from_read_builtin
    hit_list = Bunch.read_maus_root_file(file_name, number_of_hits, list_of_maus_types=[file_type_string])
  File "/home/cr67/MAUS/maus_merge/third_party/install/lib/python2.7/site-packages/xboa/Bunch.py", line 359, in read_maus_root_file
    hits += Hit.new_list_from_maus_root_spill(list_of_maus_types, data, spill_number)
  File "/home/cr67/MAUS/maus_merge/third_party/install/lib/python2.7/site-packages/xboa/Hit.py", line 200, in new_list_from_maus_root_spill
    for i in range(spill.GetMCEventSize()):
SystemError: problem in C++; program state has been reset
#1

Updated by Rogers, Chris over 7 years ago

Nb, the python code snippet is

    hit_list = []
    spill = root_spill.GetSpill()
    for i in range(spill.GetMCEventSize()):
      for maus_root_type, getter in Hit.__maus_root_mc_types.iteritems():
        if maus_root_type in maus_types:
          new_hits = getter(spill.GetAnMCEvent(i), i)
          for hit in new_hits:
            hit['event_number'] = i
          hit_list += new_hits
    for i in range(spill.GetReconEventSize()):
      for maus_root_type, getter in Hit.__maus_root_recon_types.iteritems():
        if maus_root_type in maus_types:
          new_hits = getter(spill.GetAReconEvent(i), i)
          for hit in new_hits:
            hit['event_number'] = i
          hit_list += new_hits
    for hit in hit_list:
      hit['spill'] = spill_number
      if hit['pid'] == 0:
          print 'AARGH - pid = found'
    return hit_list
#2

Updated by Rogers, Chris over 7 years ago

  • Status changed from Open to Rejected

Looks like I was trying to analyse an old file.

Also available in: Atom PDF