BOSS 7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
draw_plots.cxx File Reference

Go to the source code of this file.

Functions

void draw_plots ()
 

Variables

TString vec_str_fnames [5] = {"_rec_electron.root", "_rec_muon.root", "_rec_pion.root", "_rec_kaon.root", "_rec_proton.root"}
 

Function Documentation

◆ draw_plots()

void draw_plots ( )

Definition at line 3 of file Simulation/check/ana/draw_plots.cxx.

3 {
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

Variable Documentation

◆ vec_str_fnames

TString vec_str_fnames[5] = {"_rec_electron.root", "_rec_muon.root", "_rec_pion.root", "_rec_kaon.root", "_rec_proton.root"}

Definition at line 1 of file Simulation/check/ana/draw_plots.cxx.

1{"_rec_electron.root", "_rec_muon.root", "_rec_pion.root", "_rec_kaon.root", "_rec_proton.root"};

Referenced by draw_plots().