Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
makePlot_reco_check.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file makePlot_reco_check.C
1 int
3 {
4  gStyle->SetOptStat(1);
5 
6  TFile *fin = new TFile("../../data/Sample_DISReco_ep.root", "OPEN");
7  //TFile *fin = new TFile("../../data/DISReco_Pythia6_DIS_20x250_1k.root", "OPEN");
8 
9  TTree *t_reco = (TTree*)fin->Get("event_cluster");
10 
11  TCanvas *c1 = new TCanvas();
12  t_reco->Draw( "em_cluster_e:em_cluster_eta", "em_evtgen_pid==11", "colz" );
13  htemp->GetXaxis()->SetTitle("#eta_{cluster}");
14  htemp->GetYaxis()->SetTitle("E_{cluster} (GeV)");
15  c1->Print("plots/reco_check_c1.eps");
16 
17  TCanvas *c2 = new TCanvas();
18  t_reco->Draw( "em_evtgen_ptotal:em_evtgen_eta", "em_evtgen_pid==11", "colz" );
19  htemp->GetXaxis()->SetTitle("#eta_{truth}");
20  htemp->GetYaxis()->SetTitle("|p_{truth}| (GeV)");
21  c2->Print("plots/reco_check_c2.eps");
22 
23  TCanvas *c3 = new TCanvas();
24  t_reco->Draw( "em_cluster_eta:em_evtgen_eta", "em_evtgen_pid==11", "colz" );
25  htemp->GetXaxis()->SetTitle("#eta_{truth}");
26  htemp->GetYaxis()->SetTitle("#eta_{cluster}");
27  c3->Print("plots/reco_check_c3.eps");
28 
29  TCanvas *c4 = new TCanvas();
30  t_reco->Draw( "em_cluster_e:em_evtgen_ptotal", "em_evtgen_pid==11", "colz" );
31  htemp->GetXaxis()->SetTitle("|p_{truth}| (GeV)");
32  htemp->GetYaxis()->SetTitle("E_{cluster} (GeV)");
33  c4->Print("plots/reco_check_c4.eps");
34 
35  TCanvas *c5 = new TCanvas();
36  t_reco->Draw( "em_cluster_phi:em_evtgen_phi", "em_evtgen_pid==11", "colz" );
37  htemp->GetXaxis()->SetTitle("#phi_{truth}");
38  htemp->GetYaxis()->SetTitle("#phi_{cluster}");
39  c5->Print("plots/reco_check_c5.eps");
40 
41  return 1;
42 }