This shows you the differences between two versions of the page.
snowmass2013:analyse_d3 [2013/05/30 18:53] 127.0.0.1 external edit |
snowmass2013:analyse_d3 [2014/04/24 01:51] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | [[snowmass2013: | ||
- | |||
- | === How to analyze Delphes3 ROOT files === | ||
- | |||
- | This example shows how to run a program over all files in a certain directory, fill histograms (pT and jet mass) and | ||
- | save histograms in an output ROOT file. | ||
- | |||
- | Look at the workbook of Delphes3 [[https:// | ||
- | To get started, install Delphes. You should see the library " | ||
- | |||
- | <code C> | ||
- | gSystem-> | ||
- | TFile:: | ||
- | Delphes-> | ||
- | TBrowser browser; | ||
- | </ | ||
- | |||
- | |||
- | === Advanced | ||
- | |||
- | This assumes that Delphes3 is already installed. You have the directory " | ||
- | |||
- | Get the analysis file: {{: | ||
- | |||
- | < | ||
- | tar -zvxf antup.tgz | ||
- | cd antup | ||
- | </ | ||
- | |||
- | So you will see 2 directories: | ||
- | < | ||
- | delphes3 | ||
- | antup | ||
- | </ | ||
- | |||
- | |||
- | Now go to the directory " | ||
- | |||
- | < | ||
- | ln -s ../ | ||
- | </ | ||
- | |||
- | In my case, it will look as: | ||
- | |||
- | < | ||
- | analysis.h | ||
- | A_RUN_TEST | ||
- | data.in | ||
- | delphes -> ../ | ||
- | main.cxx | ||
- | Make_input | ||
- | out | ||
- | </ | ||
- | |||
- | Check that you see the shared Delphes3 file | ||
- | |||
- | < | ||
- | ls -l delphes/*so | ||
- | </ | ||
- | |||
- | You should see " | ||
- | |||
- | |||
- | The main file which fills histograms is " | ||
- | |||
- | To run the code, run " | ||
- | But before you do this, you will need to set " | ||
- | |||
- | --- // | ||
- | |||