BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Simulation/check/ana/draw_plots.cxx
Go to the documentation of this file.
1TString vec_str_fnames[5] = {"_rec_electron.root", "_rec_muon.root", "_rec_pion.root", "_rec_kaon.root", "_rec_proton.root"};
2
3void 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}
TFile f("ana_bhabha660a_dqa_mcPat_zy_old.root")
TString vec_str_fnames[5]
TTree * t
Definition: binning.cxx:23