Go to the source code of this file.
|
TFile * | input_file_2 = new TFile("test35b.root") |
|
TCanvas * | c1 = new TCanvas("c1", "test35", 200, 10, 700, 500) |
|
int | n = 41 |
|
float | bin [41] |
|
TH1 * | h_1 = new TH1D("unbiased","Source spectrum",40,bin) |
|
TH1 * | h_2 = new TH1D("biased","Source spectrum",40,bin) |
|
double | energy |
|
double | weight |
|
TTree * | t1 = (TTree *) input_file_1->Get("MyTuple") |
|
TTree * | t2 = (TTree *) input_file_2->Get("MyTuple") |
|
◆ cd()
◆ Close()
◆ Draw() [1/2]
◆ Draw() [2/2]
◆ for()
◆ GetEntries()
cout<<t1-> GetEntries |
( |
| ) |
|
◆ ls()
◆ Print()
c1 Print |
( |
"./test35.png" |
| ) |
|
◆ SetBranchAddress() [1/2]
t2 SetBranchAddress |
( |
"Energy" |
, |
|
|
& |
energy |
|
) |
| |
◆ SetBranchAddress() [2/2]
t2 SetBranchAddress |
( |
"Weight" |
, |
|
|
& |
weight |
|
) |
| |
◆ SetGridx()
◆ SetGridy()
◆ SetLineColor()
h_2 SetLineColor |
( |
kBlue |
| ) |
|
◆ SetLineStyle()
h_2 SetLineStyle |
( |
kDashed |
| ) |
|
◆ SetLogx()
◆ SetLogy()
◆ Update()
◆ bin
◆ c1
TCanvas* c1 = new TCanvas("c1", "test35", 200, 10, 700, 500) |
◆ energy
◆ h_1
TH1* h_1 = new TH1D("unbiased","Source spectrum",40,bin) |
◆ h_2
TH1* h_2 = new TH1D("biased","Source spectrum",40,bin) |
◆ input_file_2
TFile* input_file_2 = new TFile("test35b.root") |
◆ t1
TTree* t1 = (TTree *) input_file_1->Get("MyTuple") |
◆ t2
◆ weight