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

Tracking4D: do not create empty plots for excluded detectors

parent b57e7934
......@@ -36,6 +36,11 @@ void Tracking4D::initialise() {
for(auto& detector : get_detectors()) {
auto detectorID = detector->name();
// Do not create plots for detector snot participating in the tracking:
if(excludeDUT && detector->isDUT()) {
continue;
}
TDirectory* directory = getROOTDirectory();
TDirectory* local_directory = directory->mkdir(detectorID.c_str());
if(local_directory == nullptr) {
......
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