This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
snowmass2013:analyse_d3 [2013/06/01 02:51] asc [How to analyze in Java] |
snowmass2013:analyse_d3 [2013/06/01 02:59] asc |
||
---|---|---|---|
Line 69: | Line 69: | ||
==== How to analyze in PyROOT ==== | ==== How to analyze in PyROOT ==== | ||
- | If ROOT was compiled using " | + | If ROOT was compiled using " |
+ | [[https:// | ||
<code python test.py> | <code python test.py> | ||
Line 86: | Line 87: | ||
t=f.Delphes # extract the tree | t=f.Delphes # extract the tree | ||
h=TH1D(' | h=TH1D(' | ||
- | c=TCanvas() # build a canvas | + | c1=TCanvas() # build a canvas |
n=0 | n=0 | ||
Line 98: | Line 99: | ||
if (raw_input(" | if (raw_input(" | ||
c1.Close(); sys.exit(1); | c1.Close(); sys.exit(1); | ||
- | |||
</ | </ | ||
Line 105: | Line 105: | ||
python test.py file.root | python test.py file.root | ||
</ | </ | ||
+ | |||
+ | You will see this image: | ||
+ | {{: | ||
====How to analyze in Java==== | ====How to analyze in Java==== | ||
Line 110: | Line 113: | ||
MC truth information and most of ROOT files with Delphes outputs | 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. | are stored in the PROMC file format which can be analyzed on any platform. | ||
- | Read this [[snowmass2013: | + | Read this [[snowmass2013: |
--- // | --- // | ||