Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Corryvreckan
Corryvreckan
Commits
cf649f9b
Commit
cf649f9b
authored
Oct 11, 2017
by
Simon Spannagel
Browse files
GUI: obey detector configuration
parent
b162143e
Changes
2
Show whitespace changes
Inline
Side-by-side
src/algorithms/GUI.cpp
View file @
cf649f9b
...
@@ -17,9 +17,6 @@ void GUI::initialise(Parameters* par) {
...
@@ -17,9 +17,6 @@ void GUI::initialise(Parameters* par) {
// Make the local pointer to the global parameters
// Make the local pointer to the global parameters
parameters
=
par
;
parameters
=
par
;
// Check the number of devices
nDetectors
=
parameters
->
nDetectors
;
// TApplication keeps the canvases persistent
// TApplication keeps the canvases persistent
app
=
new
TApplication
(
"example"
,
0
,
0
);
app
=
new
TApplication
(
"example"
,
0
,
0
);
...
@@ -44,16 +41,16 @@ void GUI::initialise(Parameters* par) {
...
@@ -44,16 +41,16 @@ void GUI::initialise(Parameters* par) {
addPlot
(
trackCanvas
,
"/corryvreckan/BasicTracking/trackAngleX"
);
addPlot
(
trackCanvas
,
"/corryvreckan/BasicTracking/trackAngleX"
);
// Per detector histograms
// Per detector histograms
for
(
auto
detector
ID
:
parameters
->
detectors
)
{
for
(
auto
&
detector
:
m_
detectors
)
{
string
hitmap
=
"/corryvreckan/TestAlgorithm/hitmap_"
+
detector
ID
;
string
hitmap
=
"/corryvreckan/TestAlgorithm/hitmap_"
+
detector
->
name
()
;
addPlot
(
hitmapCanvas
,
hitmap
,
"colz"
);
addPlot
(
hitmapCanvas
,
hitmap
,
"colz"
);
string
residualHisto
=
"/corryvreckan/BasicTracking/residualsX_"
+
detector
ID
;
string
residualHisto
=
"/corryvreckan/BasicTracking/residualsX_"
+
detector
->
name
()
;
if
(
detector
ID
==
parameters
->
DUT
)
if
(
detector
->
name
()
==
parameters
->
DUT
)
residualHisto
=
"/corryvreckan/DUTAnalysis/residualsX"
;
residualHisto
=
"/corryvreckan/DUTAnalysis/residualsX"
;
addPlot
(
residualsCanvas
,
residualHisto
);
addPlot
(
residualsCanvas
,
residualHisto
);
string
chargeHisto
=
"/corryvreckan/TestAlgorithm/clusterTot_"
+
detector
ID
;
string
chargeHisto
=
"/corryvreckan/TestAlgorithm/clusterTot_"
+
detector
->
name
()
;
addPlot
(
chargeCanvas
,
chargeHisto
);
addPlot
(
chargeCanvas
,
chargeHisto
);
}
}
...
...
src/algorithms/GUI.h
View file @
cf649f9b
...
@@ -41,7 +41,6 @@ namespace corryvreckan {
...
@@ -41,7 +41,6 @@ namespace corryvreckan {
TApplication
*
app
;
TApplication
*
app
;
// Misc. member objects
// Misc. member objects
int
nDetectors
;
int
eventNumber
;
int
eventNumber
;
int
updateNumber
;
int
updateNumber
;
};
};
...
...
Write
Preview
Supports
Markdown
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