Skip to content
Snippets Groups Projects
Commit 5ff0f875 authored by Chad Lantz's avatar Chad Lantz
Browse files

Removed canvases in favor of Visualizer class

parent 2b0fb062
No related branches found
No related tags found
No related merge requests found
...@@ -17,13 +17,13 @@ ...@@ -17,13 +17,13 @@
#include "ZDCAnalysis2021.h" #include "ZDCAnalysis2021.h"
#include "ZDC.h" #include "ZDC.h"
#include "Containers.h" #include "Containers.h"
#include "TH2D.h" #include "Visualizer.h"
#include "TH1.h"
#include "TCanvas.h"
#include "TLine.h" #include "TLine.h"
#include "TMarker.h" #include "TMarker.h"
#include "TSystem.h" #include "TSystem.h"
#include "Visualizer.h" #include "TH1.h"
#include "TH2D.h"
/** @brief Default Constructor for ZDCAnalysis2021. /** @brief Default Constructor for ZDCAnalysis2021.
*/ */
...@@ -437,8 +437,6 @@ void ZDCAnalysis2021::Finalize( ){ ...@@ -437,8 +437,6 @@ void ZDCAnalysis2021::Finalize( ){
std::string output = std::getenv("JZCaPA"); std::string output = std::getenv("JZCaPA");
output += "/results/"; output += "/results/";
TCanvas *c = new TCanvas("ZDCAnalysis2021","ZDCAnalysis2021",800,600);
if(m_viz == NULL) m_viz = new Visualizer( "ATLAS" ); if(m_viz == NULL) m_viz = new Visualizer( "ATLAS" );
...@@ -466,15 +464,10 @@ void ZDCAnalysis2021::Finalize( ){ ...@@ -466,15 +464,10 @@ void ZDCAnalysis2021::Finalize( ){
hist2D_vec.push_back(hChargePeakZDC1); hist2D_vec.push_back(hChargePeakZDC2); hist2D_vec.push_back(hChargePeakZDC3); hist2D_vec.push_back(hChargePeakZDC1); hist2D_vec.push_back(hChargePeakZDC2); hist2D_vec.push_back(hChargePeakZDC3);
m_viz->SimplePadsPlot( hist2D_vec, 3, 1, "Q_{ZDC} (pC)" ,"Peak_{ZDC} (mV)", "HAD[1-3]_ChargePeak2D.png", "HAD", "COLZ"); hist2D_vec.clear(); m_viz->SimplePadsPlot( hist2D_vec, 3, 1, "Q_{ZDC} (pC)" ,"Peak_{ZDC} (mV)", "HAD[1-3]_ChargePeak2D.png", "HAD", "COLZ"); hist2D_vec.clear();
c->cd();
m_viz->DrawPlot(hCharge,"Q_{ZDC1} (pC)","Q_{ZDC2} (pC)","ZDC_charge.png","COLZ");//OUTDATED m_viz->DrawPlot(hCharge,"Q_{ZDC1} (pC)","Q_{ZDC2} (pC)","ZDC_charge.png","COLZ");//OUTDATED
m_viz->DrawPlot(hPeak,"Peak_{ZDC1} (mV)","Peak_{ZDC2} (mV)","ZDC_peak.png","COLZ");//OUTDATED m_viz->DrawPlot(hPeak,"Peak_{ZDC1} (mV)","Peak_{ZDC2} (mV)","ZDC_peak.png","COLZ");//OUTDATED
m_viz->DrawPlot(hToF,"Time of Flight (ns)","Counts","ZDC_ToF.png",""); m_viz->DrawPlot(hToF,"Time of Flight (ns)","Counts","ZDC_ToF.png","");
m_viz->DrawPlot(hChargeSum,"Q_{total} (pC)","Counts","ZDC_Qtot.png",""); m_viz->DrawPlot(hChargeSum,"Q_{total} (pC)","Counts","ZDC_Qtot.png","");
delete c;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment