1
|
#include "TLine.h"
|
2
|
#include "TPad.h"
|
3
|
#include "TCutG.h"
|
4
|
|
5
|
void showT1Sim()
|
6
|
{
|
7
|
|
8
|
TFile *fc = new TFile("cut.root", "READ");
|
9
|
TCutG *cHe = (TCutG*)fc->Get("cut3He");
|
10
|
|
11
|
TFile *fcPos = new TFile("cutsPos.root", "READ");
|
12
|
TCutG *c3He = (TCutG*)fcPos->Get("c3HePos");
|
13
|
TCutG *c6He = (TCutG*)fcPos->Get("c6HePos");
|
14
|
|
15
|
TFile *fr = new TFile("sim_digi.root", "READ");
|
16
|
TTree *tr = (TTree*)fr->Get("er");
|
17
|
|
18
|
|
19
|
|
20
|
TCanvas *c3 = new TCanvas("c3", "Telescope info", 1200, 800);
|
21
|
c3->Divide(3,2);
|
22
|
|
23
|
c3->cd(1);
|
24
|
|
25
|
tr->Draw("ERQTelescopeSiDigi_DoubleSi_SD1_XY_0_X.fEdep*1000:ERQTelescopeSiDigi_DoubleSi_SD2_XY_1_X.fEdep*1000",
|
26
|
"ERQTelescopeSiDigi_DoubleSi_SD1_XY_0_X.fEdep*1000<6 && ERQTelescopeSiDigi_DoubleSi_SD2_XY_1_X.fEdep*1000<70","");
|
27
|
cHe->Draw("same");
|
28
|
|
29
|
c3->cd(2);
|
30
|
|
31
|
|
32
|
|
33
|
tr->Draw("ERQTelescopeTrack_DoubleSi_SD2_XY_1.fTelescopeY:ERQTelescopeTrack_DoubleSi_SD2_XY_1.fTelescopeX", "cut3He", "col");
|
34
|
|
35
|
c3->cd(3);
|
36
|
tr->Draw("ERQTelescopeTrack_DoubleSi_SD2_XY_1.fTelescopeY:ERQTelescopeTrack_DoubleSi_SD2_XY_1.fTelescopeX", "", "col");
|
37
|
c3He->SetLineWidth(3);
|
38
|
c3He->SetLineColor(kRed);
|
39
|
c3He->Draw("same");
|
40
|
c6He->Draw("same");
|
41
|
c6He->SetLineWidth(3);
|
42
|
c6He->SetLineColor(kGreen);
|
43
|
|
44
|
|
45
|
c3->cd(4);
|
46
|
tr->Draw("(MCTrack.fEnergy - MCTrack.fMass)*1000", "MCTrack.fPdgCode == 1000010010");
|
47
|
tr->Draw("(MCTrack.fEnergy - MCTrack.fMass)*1000", "MCTrack.fPdgCode == 2212");
|
48
|
tr->Draw("ERQTelescopeSiDigi_DoubleSi_SD1_XY_0_X.fEdep*1000:ERQTelescopeSiDigi_DoubleSi_SD2_XY_1_X.fEdep*1000",
|
49
|
"ERQTelescopeSiDigi_DoubleSi_SD1_XY_0_X.fEdep*1000<6 && ERQTelescopeSiDigi_DoubleSi_SD2_XY_1_X.fEdep*1000<70","");
|
50
|
cHe->Draw("same");
|
51
|
tr->SetMarkerColor(kRed);
|
52
|
tr->Draw("ERQTelescopeSiDigi_DoubleSi_SD1_XY_0_X.fEdep*1000:ERQTelescopeSiDigi_DoubleSi_SD2_XY_1_X.fEdep*1000",
|
53
|
"ERQTelescopeSiDigi_DoubleSi_SD1_XY_0_X.fEdep*1000<6 "
|
54
|
"&& ERQTelescopeSiDigi_DoubleSi_SD2_XY_1_X.fEdep*1000<70 "
|
55
|
"&& cut3He","same");
|
56
|
|
57
|
|
58
|
c3->cd(5);
|
59
|
tr->Draw("ERQTelescopeSiDigi_DoubleSi_SD1_XY_0_X.fEdep*1000:ERQTelescopeSiDigi_DoubleSi_SD2_XY_1_X.fEdep*1000","","col");
|
60
|
|
61
|
|
62
|
c3->cd(6);
|
63
|
tr->Draw("ERQTelescopeSiPoint_DoubleSi_SD2_XY_1_X.fY:ERQTelescopeSiPoint_DoubleSi_SD2_XY_1_X.fX", "", "col");
|
64
|
|
65
|
return;
|
66
|
|
67
|
TCanvas *c1 = new TCanvas("c1", "Telescope info", 800, 800);
|
68
|
|
69
|
|
70
|
std::cout << tr->Draw("ERQTelescopeTrack_DoubleSi_SD2_XY_1.fTelescopeY:ERQTelescopeTrack_DoubleSi_SD2_XY_1.fTelescopeX", "", "col") << std::endl;
|
71
|
c3He->Draw("same");
|
72
|
|
73
|
|
74
|
|
75
|
}
|