Support #1129
using xboa with Maus ROOT output
100%
Description
I'm using filetype = maus_virtual_hit (same result with 'maus_primary'), and get the following error:
~/maus2/Harp python Plot.py Sim_6mm_1MeVc_1000mu_1e-08nsec_IV_none__t_.root
done
First loading the data...
Traceback (most recent call last):
File "Plot.py", line 14, in <module>
bunch_list = Bunch.new_list_from_read_builtin(filetype, filename)
File "/home/carlisle/maus2/devel_2/third_party/install/lib/python2.7/site-packages/xboa/Bunch.py", line 205, in new_list_from_read_builtin
bunch_dict = Bunch.new_dict_from_read_builtin(file_type_string, file_name, sort_variable)
File "/home/carlisle/maus2/devel_2/third_party/install/lib/python2.7/site-packages/xboa/Bunch.py", line 177, in new_dict_from_read_builtin
elif file_type_string.find('maus') > -1: bunch = Bunch.read_maus_file(file_name, list_of_maus_types=[file_type_string])
File "/home/carlisle/maus2/devel_2/third_party/install/lib/python2.7/site-packages/xboa/Bunch.py", line 331, in read_maus_file
raise IOError("Failed to parse json spill "+str(spill_index)+" in file "+file_name+"\n"+line)
IOError: Failed to parse json spill 0 in file Sim_6mm_1MeVc_1000mu_1e-08nsec_IV_none__t_.root
rootÏ
dÏ÷Ï[²▒ó1fø
á-£¾ï¾mFLµ2QdTFile/Sim_6mm_1MeVc_1000mu_1e-08nsec_IV_none__t_.root/Sim_6mm_1MeVc_1000mu_1e-08ns1føIV_none__t_.rootFLµ2FL¶¨dÏ
á-£¾ï®éìGËÔFL¶¦J"dTBasket_spillSpillGÌèGÌZÎûkÿÿÿxì½y8V_ÿ÷mç)sæ)ó<{¥RQ)Mf'2$CJQ(¡ÉT¦hvi2K¤"2æÙ¾W×u®KÝÇñÜÿüç>îöq¼Õ÷8_ßÏgíÏZkïµ×¹½3·m|°@kÌ7:ûîÚEcnÛXNCKæühXihè?▒'*¿ÆÒ:Ü+0Ð8NÒÐ▒PêgëB|ÜBöÑì ¡5l=éA|6va"#w¥ÎÛ>JÒÐTc
í©áSZµÁ(OùÞÁv4)ÜÿiBH±2äU
ÈcGç=`%²ÛÖZLü/Ìí¥a#ÄN'!.BÜñâ#ÄOH !!BË BD[i"$MH,!9B)R"¤LHÐ
What am I doing wrong? I understand the XBOA should burrow down into the ROOT file to locate the VirtualHits...
Thanks,
Tim
Files
Updated by Rogers, Chris over 10 years ago
Try "maus_root_virtual_hit" as your filetype. If you type in some nonsense as the filetype you will get an error message that lists the available ones. maus_root_* is only available if libMausCpp.so is in your PYTHONPATH (usually just means you need to source env.sh
and have a successfully compiled version of MAUS installed).
Updated by Carlisle, Timothy over 10 years ago
using filetype: maus_root_virtual_hit, but Maus doesn't seem to recognise it...
~/maus2/Harp python Plot.py Sim_6mm_1MeVc_1000mu_1e-08nsec_IV_none__t_.root
based on === XBOA example 2 ===
done
First loading the data...
Traceback (most recent call last):
File "Plot.py", line 16, in <module>
bunch_list = Bunch.new_list_from_read_builtin(filetype, filename)
File "/home/carlisle/maus2/devel_2/third_party/install/lib/python2.7/site-packages/xboa/Bunch.py", line 205, in new_list_from_read_builtin
bunch_dict = Bunch.new_dict_from_read_builtin(file_type_string, file_name, sort_variable)
File "/home/carlisle/maus2/devel_2/third_party/install/lib/python2.7/site-packages/xboa/Bunch.py", line 175, in new_dict_from_read_builtin
if not file_type_string in Hit.file_types(): raise IOError('Attempt to load file of unknown file type '+str(file_type_string)+' - try one of '+str(Hit.file_types()))
IOError: Attempt to load file of unknown file type maus_root_virtual_hit - try one of ['icool_for009', 'icool_for003', 'g4beamline_bl_track_file', 'g4mice_special_hit', 'g4mice_virtual_hit', 'mars_1', 'maus_virtual_hit', 'maus_primary']
env is sourced & python looks to be in the right place.
~/maus2/Harp echo $PYTHONPATH
/home/carlisle/maus2/devel_2/third_party/build/root_v5.30.03/lib:/home/carlisle/maus2/devel_2/src/common_py:/home/carlisle/maus2/devel_2/build
Thanks
Updated by Rogers, Chris over 10 years ago
- File 51xboa.bash 51xboa.bash added
I had a look and it looks like the release doesn't have a recent enough version of xboa. Sorry about that. Should be okay to download and install the latest version, I attach a script which should do just that...
Updated by Carlisle, Timothy over 10 years ago
can't find the file it seems...
**
_~/maus2/devel_2 bash 51xboa.bash
INFO: Source archive doesn't exist. Downloading...
--2012-09-07 16:30:53-- http://sourceforge.net/projects/xboa/files/xboa-0.14.0.tar.gz/download
Resolving sourceforge.net... 216.34.181.60
Connecting to sourceforge.net|216.34.181.60|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://downloads.sourceforge.net/project/xboa/xboa-0.14.0.tar.gz?r=&ts=1347031853&use_mirror=netcologne [following]
--2012-09-07 16:30:53-- http://downloads.sourceforge.net/project/xboa/xboa-0.14.0.tar.gz?r=&ts=1347031853&use_mirror=netcologne
Resolving downloads.sourceforge.net... 216.34.181.59
Connecting to downloads.sourceforge.net|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://netcologne.dl.sourceforge.net/project/xboa/xboa-0.14.0.tar.gz [following]
--2012-09-07 16:30:53-- http://netcologne.dl.sourceforge.net/project/xboa/xboa-0.14.0.tar.gz
Resolving netcologne.dl.sourceforge.net... 78.35.24.46, 2001:4dd0:1234:6::5f
Connecting to netcologne.dl.sourceforge.net|78.35.24.46|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 40414215 (39M) [application/x-gzip]
Saving to: `/home/carlisle/maus2/devel_2/third_party/source/xboa-0.14.0.tar.gz'
100%[=====================================================================>] 40,414,215 11.4M/s in 3.7s
2012-09-07 16:30:57 (10.4 MB/s) - `/home/carlisle/maus2/devel_2/third_party/source/xboa-0.14.0.tar.gz' saved [40414215/40414215]
INFO: Source archive exists.
INFO: Checking MD5 checksum (otherwise the file didn't
INFO: download properly):
md5sum: xboa-0.14.0.tar.gz.md5: No such file or directory
FATAL: Failed to download:
FATAL: xboa-0.14.0.tar.gz.
FATAL: MD5 checksum failed.
FATAL: Try rerunning this command to redownload, or check
FATAL: internet connection_@@
Thanks
Updated by Rogers, Chris over 10 years ago
- File xboa-0.14.0.tar.gz.md5 xboa-0.14.0.tar.gz.md5 added
Ack - sorry, md5sum attached. It needs to go into third_party/source
ps: (I was at home on Friday with baby with chickenpox, now it seems like I have chickenpox too so probably will be off next week, hence slow replies).
Updated by Carlisle, Timothy over 10 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
Sorted. Thanks & hope things improve soon!