Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:15:41

0001 #include <cmath>
0002 #include <TFile.h>
0003 #include <TString.h>
0004 #include <TLine.h>
0005 #include <TTree.h>
0006 #include <TLatex.h>
0007 #include <TGraphErrors.h>
0008 #include <cassert>
0009 #include <iostream>
0010 #include <fstream>
0011 #include "TROOT.h"
0012 #include "TH1.h"
0013 #include "TTree.h"
0014 using namespace std;
0015 
0016 
0017 
0018 using std::cout;
0019 using std::endl;
0020 #endif
0021 
0022 
0023 void MakePlots()
0024 {
0025 
0026 TFile *fin = new TFile("ACX203.root");
0027 
0028 TCanvas *c1 = new TCanvas("c1", "c1",0,0,800,600);
0029 
0030 c1->cd();
0031 
0032 h7->Draw("colz");
0033 
0034 c1->SaveAs("Average Column vs Horizontal.png");
0035 
0036 TCanvas *c2 = new TCanvas("c2", "c1",0,0,800,600);
0037 
0038 c2->cd();
0039 
0040 h8->Draw("colz");
0041 
0042 c2->SaveAs("Average Row vs Vertical.png");
0043 
0044 
0045 
0046 
0047 
0048 
0049 
0050 
0051 
0052 
0053 
0054 
0055 
0056 
0057 
0058 
0059 
0060 }