Commit 486601f8 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

OnlineMon: ignore AUX detectors

parent b1f69e87
Pipeline #1112152 passed with stages
in 15 minutes and 34 seconds
......@@ -10,6 +10,7 @@ OnlineMonitor::OnlineMonitor(Configuration config, std::vector<std::shared_ptr<D
: Module(std::move(config), std::move(detectors)) {
canvasTitle = m_config.get<std::string>("canvas_title", "Corryvreckan Testbeam Monitor");
updateNumber = m_config.get<int>("update", 200);
ignoreAux = m_config.get<bool>("ignore_aux", true);
// Set up overview plots:
canvas_overview = m_config.getMatrix<std::string>("overview",
......@@ -218,6 +219,11 @@ void OnlineMonitor::AddPlots(std::string canvas_name, Matrix<std::string> canvas
} else {
LOG(DEBUG) << "Adding plot " << name << " for all detectors.";
for(auto& detector : get_detectors()) {
// Ignore AUX detectors
if(ignoreAux && detector->isAuxiliary()) {
continue;
}
AddHisto(canvas_name,
std::regex_replace(name, std::regex("%DETECTOR%"), detector->name()),
plot.back(),
......
......@@ -51,6 +51,7 @@ namespace corryvreckan {
// Member variables
int eventNumber;
int updateNumber;
bool ignoreAux;
std::string canvasTitle;
......
......@@ -31,6 +31,7 @@ The "corryvreckan" namespace is not required to be added to the plot path.
### Parameters
* `update`: Number of events after which to update, defaults to `500`.
* `canvas_title`: Title of the GUI window to be shown, defaults to `Corryvreckan Testbeam Monitor`. This parameter can be used to e.g. display the current run number in the window title.
* `ignore_aux`: With this boolean variable set, detectors with `auxiliary` roles are ignored and none of their histograms are added to the UI. Defaults to `true`.
* `overview`: List of plots to be placed on the "Overview" canvas of the online monitor. The list of plots created in the default configuration is listed below.
......
Markdown is supported
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