Analysis Software
Documentation for sPHENIX simulation software
|
Go to the source code of this file.
Functions | |
TH1F | h1 ("h1","H1;Mass [GeV];Counts [/ GeV];", 20, 0, 20) |
TH1F | h2 ("h2","H2;Mass [GeV];Counts [/ GeV];", 20, 0, 20) |
for (int i=0;i< 1000;i++) | |
h1 | Draw ("e1") |
h2 | Draw ("same") |
h2 | SetFillColor (5) |
h1 | Draw ("e1same") |
TLegend | leg (.55,.70,.85,.93) |
leg | AddEntry ("","#it{#bf{sPHENIX}} Simulation","") |
leg | AddEntry ("","Au+Au #sqrt{s_{NN}}=200 GeV","") |
leg | Draw () |
c | RedrawAxis () |
c | Print ("test_style.pdf") |
c | Print ("test_style.png") |
c2 | SetRightMargin (.2) |
TF2 | f2 ("f2","exp(-x/5)*sin(y)",-5, 5,-5, 5) |
f2 | SetNpx (100) |
f2 | SetNpy (100) |
f2 | Draw ("surf2z") |
f2 | GetXaxis () -> SetTitle("X") |
f2 | GetYaxis () -> SetTitle("Y") |
f2 | GetZaxis () -> SetTitle("Z") |
c2 | Print ("test_style_f2.pdf") |
c2 | Print ("test_style_f2.png") |
Variables | |
leg AddEntry & | h1 |
leg AddEntry & | h2 |
TCanvas | c2 |
leg AddEntry | ( | "" | , |
"#it{#bf{sPHENIX}} Simulation" | , | ||
"" | |||
) |
leg AddEntry | ( | "" | ) |
h1 Draw | ( | "e1" | ) |
h2 Draw | ( | "same" | ) |
h1 Draw | ( | "e1same" | ) |
leg Draw | ( | ) |
f2 Draw | ( | "surf2z" | ) |
for | ( | ) |
Definition at line 6 of file test_style.C.
View newest version in sPHENIX GitHub at line 6 of file test_style.C
References h1.
Definition at line 45 of file 200pp_pythia8_CTEQ6L_7GeV_ALL.cfg_eneg_DSTReader.root_Draw_HFJetTruth_CrossSection2RAA.C.
View newest version in sPHENIX GitHub at line 45 of file 200pp_pythia8_CTEQ6L_7GeV_ALL.cfg_eneg_DSTReader.root_Draw_HFJetTruth_CrossSection2RAA.C
Definition at line 51 of file 200pp_pythia8_CTEQ6L_7GeV_ALL.cfg_eneg_DSTReader.root_Draw_HFJetTruth_CrossSection2RAA.C.
View newest version in sPHENIX GitHub at line 51 of file 200pp_pythia8_CTEQ6L_7GeV_ALL.cfg_eneg_DSTReader.root_Draw_HFJetTruth_CrossSection2RAA.C
TH1F h1 | ( | "h1" | , |
"H1;Mass ;Counts ;" | [GeV][/GeV], | ||
20 | , | ||
0 | , | ||
20 | |||
) |
TH1F h2 | ( | "h2" | , |
"H2;Mass ;Counts ;" | [GeV][/GeV], | ||
20 | , | ||
0 | , | ||
20 | |||
) |
TLegend leg | ( | . | 55, |
. | 70, | ||
. | 85, | ||
. | 93 | ||
) |
c Print | ( | "test_style.pdf" | ) |
c Print | ( | "test_style.png" | ) |
c2 Print | ( | "test_style_f2.pdf" | ) |
c2 Print | ( | "test_style_f2.png" | ) |
c RedrawAxis | ( | ) |
h2 SetFillColor | ( | 5 | ) |
f2 SetNpx | ( | 100 | ) |
f2 SetNpy | ( | 100 | ) |
c2 SetRightMargin | ( | . | 2 | ) |
TCanvas c2 |
Definition at line 24 of file test_style.C.
View newest version in sPHENIX GitHub at line 24 of file test_style.C
Definition at line 17 of file test_style.C.
View newest version in sPHENIX GitHub at line 17 of file test_style.C
Definition at line 18 of file test_style.C.
View newest version in sPHENIX GitHub at line 18 of file test_style.C