User Tools

Site Tools


snowmass2013:analyse_d3

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
snowmass2013:analyse_d3 [2013/06/01 02:54]
asc [How to analyze in PyROOT]
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 "python" option, you can use PyROOT to loop over events. Here is a small example to plot transverse moment of electrons (based on the original code of Peter Onyisi with some modifications, see+If ROOT was compiled using "python" option, you can use PyROOT to loop over events. Here is a small example to plot transverse moment of electrons (based on the original code of Peter Onyisiwith some modifications, see
 [[https://indico.cern.ch/getFile.py/access?contribId=5&resId=0&materialId=slides&confId=255032| his talk]]): [[https://indico.cern.ch/getFile.py/access?contribId=5&resId=0&materialId=slides&confId=255032| his talk]]):
  
Line 87: Line 87:
 t=f.Delphes # extract the tree t=f.Delphes # extract the tree
 h=TH1D('ele','Electron #eta',8,-4,4) # initialize a histogram h=TH1D('ele','Electron #eta',8,-4,4) # initialize a histogram
-c=TCanvas() # build a canvas+c1=TCanvas() # build a canvas
  
 n=0 n=0
Line 99: Line 99:
 if (raw_input("Press any key to exit") != "-9999"): if (raw_input("Press any key to exit") != "-9999"):
     c1.Close(); sys.exit(1);     c1.Close(); sys.exit(1);
- 
 </code> </code>
  
Line 108: Line 107:
  
 You will see this image: You will see this image:
-{{:snowmass2013:screenshot_from_2013-05-31_21_52_39.png}}+{{:snowmass2013:screenshot_from_2013-05-31_21_55_04.png?200|}}
  
 ====How to analyze in Java==== ====How to analyze in Java====
snowmass2013/analyse_d3.txt ยท Last modified: 2014/04/24 01:51 (external edit)