Go to the source code of this file.
|
TFile | f ("testem6_0.root") |
|
gPad | SetLogy () |
|
h7 | SetMinimum (minY) |
|
h7 | SetMaximum (maxY) |
|
h7 | GetXaxis () -> SetLimits(std::log10(minE), std::log10(maxE)) |
|
h7 | SetTitle ("Comparison of e+ Annihilation Processes(totcrsPerAtom)") |
|
h7 | GetYaxis () -> SetTitle("microbarn") |
|
h7 | SetLineColor (kRed) |
|
h9 | SetLineColor (kBlue) |
|
h11 | SetMarkerColor (kRed) |
|
h11 | SetMarkerStyle (22) |
|
c1 | cd () |
|
h7 | Draw ("HIST") |
|
h8 | Draw ("HIST SAME") |
|
h10 | Draw ("HIST P SAME") |
|
xaxis | SetTitle ("GeV") |
|
xaxis | Draw () |
|
gStyle | SetOptStat (0) |
|
leg | AddEntry (h8,"to 2 gammas","l") |
|
leg | AddEntry (h7,"to MuPair","l") |
|
leg | AddEntry (h9,"to Hadrons","l") |
|
h15 | SetMinimum (minY1) |
|
h15 | SetMaximum (maxY1) |
|
h15 | SetTitle ("Comparison of EM Processes(totcrsPerVolume)") |
|
h12 | SetLineColor (6) |
|
h13 | SetLineColor (kGreen) |
|
leg1 | AddEntry (h15,"to 2 gammas","l") |
|
leg1 | AddEntry (h14,"to MuPair","l") |
|
leg1 | AddEntry (h16,"to Hadrons","l") |
|
leg1 | AddEntry (h12,"Bremsstrahlung","l") |
|
leg1 | AddEntry (h13,"Ionization","l") |
|
|
double | minE = 40 |
|
double | maxE = 10000 |
|
double | minY = 1e-2 |
|
double | maxY = 1e+2 |
|
double | minY1 = 1e-8 |
|
double | maxY1 = 1 |
|
TH1D * | h7 = (TH1D*)f.Get("h7") |
|
TH1D * | h8 = (TH1D*)f.Get("h8") |
|
TH1D * | h9 = (TH1D*)f.Get("h9") |
|
TH1D * | h10 = (TH1D*)f.Get("h10") |
|
TH1D * | h11 = (TH1D*)f.Get("h11") |
|
TH1D * | h12 = (TH1D*)f.Get("h12") |
|
TH1D * | h13 = (TH1D*)f.Get("h13") |
|
TH1D * | h14 = (TH1D*)f.Get("h14") |
|
TH1D * | h15 = (TH1D*)f.Get("h15") |
|
TH1D * | h16 = (TH1D*)f.Get("h16") |
|
TH1D * | h17 = (TH1D*)f.Get("h17") |
|
TCanvas * | c1 = new TCanvas("c1", " ") |
|
TGaxis * | xaxis = new TGaxis(std::log10(minE),minY,std::log10(maxE),minY,minE,maxE,510,"G") |
|
TLegend * | leg = new TLegend(0.78,0.59,0.98,0.76) |
|
TCanvas * | c2 = new TCanvas("c2", " ") |
|
TGaxis * | xaxis1 = new TGaxis(std::log10(minE),minY1,std::log10(maxE),minY1,minE,maxE,510,"G") |
|
TLegend * | leg1 = new TLegend(0.78,0.59,0.98,0.76) |
|
◆ AddEntry() [1/8]
leg AddEntry |
( |
h8 |
, |
|
|
"to 2 gammas" |
, |
|
|
"l" |
|
|
) |
| |
◆ AddEntry() [2/8]
leg AddEntry |
( |
h7 |
, |
|
|
"to MuPair" |
, |
|
|
"l" |
|
|
) |
| |
◆ AddEntry() [3/8]
leg AddEntry |
( |
h9 |
, |
|
|
"to Hadrons" |
, |
|
|
"l" |
|
|
) |
| |
◆ AddEntry() [4/8]
leg1 AddEntry |
( |
h15 |
, |
|
|
"to 2 gammas" |
, |
|
|
"l" |
|
|
) |
| |
◆ AddEntry() [5/8]
leg1 AddEntry |
( |
h14 |
, |
|
|
"to MuPair" |
, |
|
|
"l" |
|
|
) |
| |
◆ AddEntry() [6/8]
leg1 AddEntry |
( |
h16 |
, |
|
|
"to Hadrons" |
, |
|
|
"l" |
|
|
) |
| |
◆ AddEntry() [7/8]
leg1 AddEntry |
( |
h12 |
, |
|
|
"Bremsstrahlung" |
, |
|
|
"l" |
|
|
) |
| |
◆ AddEntry() [8/8]
leg1 AddEntry |
( |
h13 |
, |
|
|
"Ionization" |
, |
|
|
"l" |
|
|
) |
| |
◆ cd()
◆ Draw() [1/4]
◆ Draw() [2/4]
◆ Draw() [3/4]
h11 Draw |
( |
"HIST P SAME" |
| ) |
|
◆ Draw() [4/4]
◆ f()
TFile f |
( |
"testem6_0.root" |
| ) |
|
◆ GetXaxis()
h7 GetXaxis |
( |
| ) |
-> SetLimits(std::log10(minE), std::log10(maxE)) |
◆ GetYaxis()
◆ SetLineColor() [1/4]
◆ SetLineColor() [2/4]
h9 SetLineColor |
( |
kBlue |
| ) |
|
◆ SetLineColor() [3/4]
◆ SetLineColor() [4/4]
h13 SetLineColor |
( |
kGreen |
| ) |
|
◆ SetLogy()
◆ SetMarkerColor()
h11 SetMarkerColor |
( |
kRed |
| ) |
|
◆ SetMarkerStyle()
h10 SetMarkerStyle |
( |
22 |
| ) |
|
◆ SetMaximum() [1/2]
◆ SetMaximum() [2/2]
◆ SetMinimum() [1/2]
◆ SetMinimum() [2/2]
◆ SetOptStat()
◆ SetTitle() [1/3]
h7 SetTitle |
( |
"Comparison of e+ Annihilation Processes(totcrsPerAtom)" |
| ) |
|
◆ SetTitle() [2/3]
◆ SetTitle() [3/3]
h15 SetTitle |
( |
"Comparison of EM Processes(totcrsPerVolume)" |
| ) |
|
◆ c1
TCanvas* c1 = new TCanvas("c1", " ") |
◆ c2
TCanvas* c2 = new TCanvas("c2", " ") |
◆ h10
TH1D* h10 = (TH1D*)f.Get("h10") |
◆ h11
TH1D* h11 = (TH1D*)f.Get("h11") |
◆ h12
TH1D* h12 = (TH1D*)f.Get("h12") |
◆ h13
TH1D* h13 = (TH1D*)f.Get("h13") |
◆ h14
TH1D* h14 = (TH1D*)f.Get("h14") |
◆ h15
TH1D* h15 = (TH1D*)f.Get("h15") |
◆ h16
TH1D* h16 = (TH1D*)f.Get("h16") |
◆ h17
TH1D* h17 = (TH1D*)f.Get("h17") |
◆ h7
TH1D* h7 = (TH1D*)f.Get("h7") |
◆ h8
TH1D* h8 = (TH1D*)f.Get("h8") |
◆ h9
TH1D* h9 = (TH1D*)f.Get("h9") |
◆ leg
TLegend* leg = new TLegend(0.78,0.59,0.98,0.76) |
◆ leg1
TLegend* leg1 = new TLegend(0.78,0.59,0.98,0.76) |
◆ maxE
◆ maxY
◆ maxY1
◆ minE
◆ minY
◆ minY1
◆ xaxis
◆ xaxis1