Commit d3357aeb authored by Simon Spannagel's avatar Simon Spannagel
Browse files

OnlineMon: allow chaning of canvas title

parent 899fbc9c
Pipeline #353412 passed with stages
in 3 minutes and 18 seconds
......@@ -6,7 +6,9 @@ using namespace std;
OnlineMonitor::OnlineMonitor(Configuration config, std::vector<Detector*> detectors)
: Algorithm(std::move(config), std::move(detectors)) {
updateNumber = 500;
canvasTitle = m_config.get<std::string>("canvasTitle", "Corryvreckan Testbeam Monitor");
updateNumber = m_config.get<int>("update", 500);
;
}
void OnlineMonitor::initialise() {
......@@ -94,7 +96,7 @@ void OnlineMonitor::initialise() {
// Main frame resizing
gui->m_mainFrame->AddFrame(gui->buttonMenu, new TGLayoutHints(kLHintsLeft, 10, 10, 10, 10));
gui->m_mainFrame->SetWindowName("Corryvreckan Testbeam Monitor");
gui->m_mainFrame->SetWindowName(canvasTitle.c_str());
gui->m_mainFrame->MapSubwindows();
gui->m_mainFrame->Resize(gui->m_mainFrame->GetDefaultSize());
......
......@@ -47,6 +47,7 @@ namespace corryvreckan {
// Member variables
int eventNumber;
int updateNumber;
std::string canvasTitle;
};
} // namespace corryvreckan
#endif // OnlineMonitor_H
......@@ -9,6 +9,8 @@ Users should be able to exit `OnlineMonitor` and leave the reconstruction still
#### Parameters
* `reference`: Name of the reference plane.
* `update`: Number of events after which to update, defaults to `500`.
* `canvasTitle`: Title of the canvas window to be shown, defaults to `Corryvreckan Testbeam Monitor`.
#### Plots produced
Overview canvas:
......@@ -26,6 +28,8 @@ For each detector the following plots are produced:
* Event times canvas: event times histogram
* Correlations X canvas: correlation in X plot
* Correlations Y canvas: correlation in Y plot
* 2D Correlations X canvas: 2D correlation in X plot
* 2D Correlations Y canvas: 2D correlation in Y plot
* Charge distributions canvas: cluster ToT - broken at the moment
#### Usage
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment