BOSS
7.0.7
BESIII Offline Software System
Loading...
Searching...
No Matches
Simulation/check/ana/draw_plots.cxx
Go to the documentation of this file.
1
TString
vec_str_fnames
[5] = {
"_rec_electron.root"
,
"_rec_muon.root"
,
"_rec_pion.root"
,
"_rec_kaon.root"
,
"_rec_proton.root"
};
2
3
void
draw_plots
(){
4
TCanvas *c1 =
new
TCanvas(
"c1"
,
"check plots"
, 10,10,800,642);
5
c1->Divide(2,3);
6
for
(
int
i=0; i<5; i++){
7
TTree *
t
=
new
TTree();
8
c1->cd(i+1);
9
TString fname =
vec_str_fnames
[i];
10
TFile
f
(fname);
11
if
(
t
)
delete
t
;
12
TTree *
t
= (TTree*)
f
.Get(
"n103"
);
13
t
->Draw(
"dEdx_meas:ptrk"
,
""
,
""
,10000);
14
c1->Update();
15
}
16
c1->SaveAs(
"check_plots.jpg"
);
17
}
vec_str_fnames
TString vec_str_fnames[5]
Definition:
Simulation/check/ana/draw_plots.cxx:1
draw_plots
void draw_plots()
Definition:
Simulation/check/ana/draw_plots.cxx:3
t
TTree * t
Definition:
binning.cxx:23
f
TFile f("ana_bhabha660a_dqa_mcPat_zy_old.root")
source
Mdc
DedxCalibAlg
DedxCalibAlg-00-01-20
share
template
Simulation
check
ana
draw_plots.cxx
Generated by
1.9.6