Git Product home page Git Product logo

drs4root's Introduction

DRS4ROOT

Tool to convert DRS4 binary files to root trees. Used in a linux enviroment (tested in Ubuntu20.04).

Prerequisites

Most of the used libraries are basic C++ libraries, but for the transform to ROOT files a version of root is neccessary. To make the install easier the

./GetRoot.sh

is used to install the latest stable version of root as a local install version. The script will install the basic prerequisites for root automatically, but extended or other system requirements have to be installed seperatly. If you don't have permission to run the command use

chmod +x ./GetRoot.h

Once the script has finished a local root should be installed and a source command should be added to tha bashrc to make root accessible globally.

How to install the DRS4ROOT tool

To install the tool change the directory to

/path/to/DRS4ROOT

and run

cmake .

followed by

make -jN

where N is the number of available CPU cores. Once done the DRS4ROOT folder should contain a

./DRS4ROOT

executable.

Choose the files

To choose your binary files to transform enter them with their respective path into the configfiles/filelist.txt file. At the same location a ROOTFILES folder will be created containing the new root file.

How to use the DRS4ROOT tool

To run the just run

./DRS4ROOT

What does the root three look like? (BETA, out-of-date)

Each root file will contain as many trees as there were events in the original binary file. Each tree is labeled 'Event_N;1' with N as the event number. Inside each tree are then several branches:

  • Waveform_BX_ChY
  • Time_BX_ChY

X represents the number of the connected DRS4 boards starting at 0 for one boards and incrementing for additional boards.
Y represents the channel on the DRS4 board going from 0 to 3 for each board.
The Waveform branches are in mV and the Time branches in ns.
There is already an additional tree clalled Boards which returns the amount of connected boards before events are evaluated.
The next update will include trees for triggertimestamp and other useful information.

drs4root's People

Contributors

mbreisch avatar

Watchers

 avatar

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.