Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MakePlots.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file MakePlots.C
1 #include <cmath>
2 #include <TFile.h>
3 #include <TString.h>
4 #include <TLine.h>
5 #include <TTree.h>
6 #include <TLatex.h>
7 #include <TGraphErrors.h>
8 #include <cassert>
9 #include <iostream>
10 #include <fstream>
11 #include "TROOT.h"
12 #include "TH1.h"
13 #include "TTree.h"
14 using namespace std;
15 
16 
17 
18 using std::cout;
19 using std::endl;
20 #endif
21 
22 
23 void MakePlots()
24 {
25 
26 TFile *fin = new TFile("ACX203.root");
27 
28 TCanvas *c1 = new TCanvas("c1", "c1",0,0,800,600);
29 
30 c1->cd();
31 
32 h7->Draw("colz");
33 
34 c1->SaveAs("Average Column vs Horizontal.png");
35 
36 TCanvas *c2 = new TCanvas("c2", "c1",0,0,800,600);
37 
38 c2->cd();
39 
40 h8->Draw("colz");
41 
42 c2->SaveAs("Average Row vs Vertical.png");
43 
44 
45 
46 
47 
48 
49 
50 
51 
52 
53 
54 
55 
56 
57 
58 
59 
60 }