snowmass2013:analyse_d3
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
snowmass2013:analyse_d3 [2013/06/01 02:47] – asc | snowmass2013:analyse_d3 [2013/06/01 02:51] – [How to analyze in Java] asc | ||
---|---|---|---|
Line 1: | Line 1: | ||
[[snowmass2013: | [[snowmass2013: | ||
- | === How to analyze in C++ === | + | ==== How to analyze in C++ ==== |
This example shows how to run a program over all files in a certain directory, fill histograms (pT and jet mass) and | This example shows how to run a program over all files in a certain directory, fill histograms (pT and jet mass) and | ||
Line 17: | Line 17: | ||
- | === Advanced | + | ==== Advanced |
This assumes that Delphes3 is already installed. You have the directory " | This assumes that Delphes3 is already installed. You have the directory " | ||
Line 23: | Line 23: | ||
Get the analysis file: {{: | Get the analysis file: {{: | ||
- | < | + | < |
tar -zvxf antup.tgz | tar -zvxf antup.tgz | ||
cd antup | cd antup | ||
Line 29: | Line 29: | ||
So you will see 2 directories: | So you will see 2 directories: | ||
- | < | + | < |
delphes3 | delphes3 | ||
antup | antup | ||
Line 37: | Line 37: | ||
Now go to the directory " | Now go to the directory " | ||
- | < | + | < |
ln -s ../ | ln -s ../ | ||
</ | </ | ||
Line 43: | Line 43: | ||
In my case, it will look as: | In my case, it will look as: | ||
- | < | + | < |
analysis.h | analysis.h | ||
A_RUN_TEST | A_RUN_TEST | ||
Line 55: | Line 55: | ||
Check that you see the shared Delphes3 file | Check that you see the shared Delphes3 file | ||
- | < | + | < |
ls -l delphes/*so | ls -l delphes/*so | ||
</ | </ | ||
Line 67: | Line 67: | ||
But before you do this, you will need to set " | But before you do this, you will need to set " | ||
- | === How to analyze in PyROOT === | + | ==== How to analyze in PyROOT |
If ROOT was compiled using " | If ROOT was compiled using " | ||
- | <code python> | + | <code python |
# | # | ||
# Based on P.Onyisi example | # Based on P.Onyisi example | ||
Line 102: | Line 101: | ||
</ | </ | ||
+ | Run this code as: | ||
+ | < | ||
+ | python test.py file.root | ||
+ | </ | ||
+ | |||
+ | ====How to analyze in Java==== | ||
+ | |||
+ | MC truth information and most of ROOT files with Delphes outputs | ||
+ | are stored in the PROMC file format which can be analyzed on any platform. | ||
+ | Read this [[snowmass2013: | ||
--- // | --- // | ||
snowmass2013/analyse_d3.txt · Last modified: 2014/04/24 01:51 by 127.0.0.1