Giter Site home page Giter Site logo

ptd2root's Introduction

PTD2Root

A simple Falaise plugin to convert BRIO format particle tracking data to a flat ROOT TTree

Installing

PTD2Root requires the following software:

  • CMake 3.3 or higher
  • Falaise 3.0 or higher
    • Falaise will provide the needed Bayeux and ROOT dependencies

These packages can easily be obtained through the cadfaelbrew package manager. PTD2Root is also supplied through this system, so if you have this installed, simply do

$ brew install ptd2root

To build and install from source, simply do:

$ git clone https://github.com/SuperNEMO-DBD/PTD2Root.git PTD2Root.git
$ cd PTD2Root.git
$ ls
CMakeLists.txt flptd2root.py  p2r.conf       ptd2root.cpp   ptd2root.h     readme.pdf
$ mkdir build
$ cd build
$ cmake ..
$ make && make install

Using the Converter

Both a plugin module for Falaise's flreconstruct program is supplied, together with a convenience command-line converter program.

If you already have BRIO output files from flreconstruct, these can be converted to ROOT TTree format using the flptd2root.py program. This may be passed the name of the input BRIO file and desired output ROOT file, e.g.

$ flptd2root.py -i mybriofile.brio -o converted.root

Note that flptd2root.py requires the flreconstruct program to be in your PATH.

To use the plugin module in your own pipeline, simply add it as the last step. The output file can be set with the filename_out string key. See the file [p2r.conf(p2r.conf) for an example setup.

Format of the Output TFile/TTree

The format of the output file, including Tree and Branch naming are describing in the accompanying document

ptd2root's People

Contributors

drbenmorgan avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

drbenmorgan

ptd2root's Issues

flptd2root.py segmentation violation

Hi,
I have been trying to run flptd2root.py on reconstructed files that include gamma tracking. This should be possible as Cheryl has successfully run the code on her mac. I have recently upgraded falaise but I get the following error when I run the script:

Error in cling::AutoloadingVisitor::InsertIntoAutoloadingState:
Missing FileEntry for /tmp/bayeux-20170509-83837-laq70k/Bayeux-3.0.0/source/bxbrio/include/brio/detail/brio_record.h
requested to autoload type TArrayCMod
Error in cling::AutoloadingVisitor::InsertIntoAutoloadingState:
Missing FileEntry for /tmp/bayeux-20170509-83837-laq70k/Bayeux-3.0.0/source/bxbrio/include/brio/detail/brio_record.h
requested to autoload type brio_record
Warning in TStreamerInfo::BuildCheck:
The StreamerInfo of class TArrayCMod read from file Tl208_1M_flrec2_1.brio
has the same version (=1) as the active class but a different checksum.
You should update the version to ClassDef(TArrayCMod,2).
Do not try to write objects with the current class definition,
the files will not be readable.

Warning in TStreamerInfo::CompareContent: The following data member of
the in-memory layout version 1 of class 'TArrayCMod' is missing from
the on-file layout version 1:
char* fArray; //
Warning in TStreamerInfo::CompareContent: The following data member of
the in-memory layout version 1 of class 'TArrayCMod' is missing from
the on-file layout version 1:
int fCapacity; //
[notice:void datatools::library_loader::init():450] Automatic loading of library 'PTD2Root'...

*** Break *** segmentation violation
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]
[]

Any suggestions as to how I can fix this issue?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.