Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Riccardo Longo
JZCaPA
Commits
5ff0f875
Commit
5ff0f875
authored
Oct 07, 2021
by
Chad Lantz
Browse files
Removed canvases in favor of Visualizer class
parent
2b0fb062
Changes
1
Hide whitespace changes
Inline
Side-by-side
Analysis/src/ZDCAnalysis2021.cpp
View file @
5ff0f875
...
...
@@ -17,13 +17,13 @@
#include "ZDCAnalysis2021.h"
#include "ZDC.h"
#include "Containers.h"
#include "TH2D.h"
#include "TH1.h"
#include "TCanvas.h"
#include "Visualizer.h"
#include "TLine.h"
#include "TMarker.h"
#include "TSystem.h"
#include "Visualizer.h"
#include "TH1.h"
#include "TH2D.h"
/** @brief Default Constructor for ZDCAnalysis2021.
*/
...
...
@@ -437,8 +437,6 @@ void ZDCAnalysis2021::Finalize( ){
std
::
string
output
=
std
::
getenv
(
"JZCaPA"
);
output
+=
"/results/"
;
TCanvas
*
c
=
new
TCanvas
(
"ZDCAnalysis2021"
,
"ZDCAnalysis2021"
,
800
,
600
);
if
(
m_viz
==
NULL
)
m_viz
=
new
Visualizer
(
"ATLAS"
);
...
...
@@ -466,15 +464,10 @@ void ZDCAnalysis2021::Finalize( ){
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
();
c
->
cd
();
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
(
hToF
,
"Time of Flight (ns)"
,
"Counts"
,
"ZDC_ToF.png"
,
""
);
m_viz
->
DrawPlot
(
hChargeSum
,
"Q_{total} (pC)"
,
"Counts"
,
"ZDC_Qtot.png"
,
""
);
delete
c
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment