...
- Python 2.5 or higher. Older versions work, but you can take advantage of an xml parser in newer versions that consumes less memory and cpu time.
- You will need PAIDA. You want a version 3.2.1_2.10 or newer.
- You have to have a ROOT installation with the python bindings enabled, i.e.
--enable-python
must be passed to ROOT'sconfigure
script. - Download the ~jstrube:attached script and put it where your AIDA files are
...
The program is run as follows:
python aida_root_converter.py <file name of AIDA tree> <name of AIDA Tuple to be converted>
It produces a ROOT file where the .aida
ending of the AIDA tree is replaced by .root
. The name of the TTree is the same as the name of the AIDA ITuple that is passed as the second command-line argument. The names and types of the branches correspond to those in the AIDA file.
PAIDA type code | Type in the ROOT Branch |
---|---|
PTypes.Integer | 'I' |
PTypes.Float | 'F' |
PTypes.Double | 'D' |
Note |
---|
You may get an error message related to threading at the end of the process. This can be safely ignored |