Set of tools to work with ROOT, to create better plots. The structure is C++.
Be sure you have cmake in your system.
git clone https://github.com/palominogallo/JoyRoot
mkdir JoyRoot-v1-0
cd JoyRoot-v1-0
cmake ../JoyRoot
cmake --build .
This tool works with TTreereader structure (faster than old TBranch).
- Go to your work area, then run the python script to create you source and analysis files.
cd <work area> # i.e work_area
python JoyRoot/scripts/makeAnaSkeleton.py work analysis Mass
- You will noticed a directory created with name you defined on previous step and the class name
Mass
(the name is an example) Add the branches you want to work.
Call the function like static tools:
Plot1::bookTH1F(,,);
and not like:
Plot1 *p1;
p1->bookTH1F(,,);
We can use the make selector can help us to create our branches used by TTreereader.
root -l
> TChain t("name of tree")
> t.Add("roorfilename")
> t.MakeSelector("temp")
That will create temp.c
and temp.h
files, copy and paste the branches inside temp.h
into your class header.