draw.C
1 |
{ |
---|---|
2 |
TFile* f = new TFile("sim_digi.root"); |
3 |
TTree* t = (TTree*)f->Get("er");
|
4 |
TCanvas *c = new TCanvas("cInt", "Telescope local and global coordinates", 1400, 1000); |
5 |
c->Divide(2,2); |
6 |
|
7 |
c->cd(1);
|
8 |
t->Draw("ERQTelescopeTrack_T1_DoubleSi_SD2_XY_0.fTelescopeGlobalY:ERQTelescopeTrack_T1_DoubleSi_SD2_XY_0.fTelescopeGlobalX","","col"); |
9 |
c->cd(2);
|
10 |
t->Draw("ERQTelescopeTrack_T1_DoubleSi_SD2_XY_0.fTelescopeLocalY:ERQTelescopeTrack_T1_DoubleSi_SD2_XY_0.fTelescopeLocalX","","col"); |
11 |
c->cd(3);
|
12 |
t->Draw("ERQTelescopeTrack_T2_DoubleSi_SD2_XY_1.fTelescopeGlobalY:ERQTelescopeTrack_T2_DoubleSi_SD2_XY_1.fTelescopeGlobalX","","col"); |
13 |
c->cd(4);
|
14 |
|
15 |
t->Draw("ERQTelescopeTrack_T2_DoubleSi_SD2_XY_1.fTelescopeLocalY:ERQTelescopeTrack_T2_DoubleSi_SD2_XY_1.fTelescopeLocalX","","col"); |
16 |
} |