Coder Social home page Coder Social logo

analysistree's Introduction

AnalysisTree

Build Status

General information

This is a dataformat to store information in configurable objects. Basic objects are:

  • Track (momentum)
  • Particle (momentum and PID)
  • Hit (position and signal)
  • Module (id and signal)
  • EventHeader (vertex position)

Additionaly to mandatory information, each object can contain any number of integer, floating or boolean fields. Information about all fields in all branches is stored in Configuration object.

Installation

ROOT6 is needed for installation:

https://root.cern.ch/building-root

git clone 
mkdir build install
cd build
source /path/to/your/thisroot.sh
cmake ../
make -j install

Reading AnalysisTree

Load AnalysisTree libraries

First of all you need to load AnalysisTree libraries into your system. Usually, the path to libraries is added to LD_LIBRARY_PATH:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/AnalysisTree/install/lib/

After that one can open ROOT session and load libraries:

root -l
gSystem->Load("libAnalysisTreeBase.so")

Read file

Open a ROOT-file and check its content:

root -l filename.root
[0] gSystem->Load("libAnalysisTreeBase.so")
[1] .ls

You should see something like:

aTree;
Configuration;
DataHeader;

Print the information about AnalysisTree structure:

Configuration->Print()

You should see something like: blahblahblah

Draw any field you like:

aTree->Draw("BranchName.channels_.GetField<typename>(id)")

For a QA of the file(s) please use the dedicated package AnalysisTreeQA:

https://git.cbm.gsi.de/pwg-c2f/data/analysis_tree_qa/

Cuts

Coming soon =)

Creating your own AnalysisTree

Coming soon =)

Known problems (features)

  • BranchConfig::GetFieldId() is slow -> should not be used for every event/track/hit/module
  • Branch name and title of the corresponding object should be the same
  • For every new (Container-based) object Init(BranchConfig) should be called to initialize internal structure

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.