Skip to content

Commit 5e0d4ea

Browse files
committed
Account for disableRootInput/Output options
1 parent c12a7b9 commit 5e0d4ea

File tree

2 files changed

+24
-22
lines changed

2 files changed

+24
-22
lines changed

Detectors/GlobalTrackingWorkflow/tofworkflow/src/tof-matcher-global.cxx

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -119,32 +119,34 @@ WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
119119
LOG(INFO) << "TOF disable-root-input = " << disableRootInput;
120120
LOG(INFO) << "TOF disable-root-output = " << disableRootOutput;
121121

122-
if (clusterinput) {
123-
LOG(INFO) << "Insert TOF Cluster Reader";
124-
specs.emplace_back(o2::tof::getClusterReaderSpec(useMC));
122+
if (!disableRootInput) { // input data loaded from root files
123+
if (clusterinput) {
124+
LOG(INFO) << "Insert TOF Cluster Reader";
125+
specs.emplace_back(o2::tof::getClusterReaderSpec(useMC));
126+
}
127+
if (trackinput) {
128+
LOG(INFO) << "Insert ITS-TPC Track Reader";
129+
specs.emplace_back(o2::globaltracking::getTrackTPCITSReaderSpec(useMC));
130+
}
131+
132+
if (fitinput) {
133+
LOG(INFO) << "Insert FIT RecPoint Reader";
134+
specs.emplace_back(o2::ft0::getRecPointReaderSpec(useMC));
135+
}
125136
}
126-
if (trackinput) {
127-
LOG(INFO) << "Insert ITS-TPC Track Reader";
128-
specs.emplace_back(o2::globaltracking::getTrackTPCITSReaderSpec(useMC));
129-
}
130-
131-
if (fitinput) {
132-
LOG(INFO) << "Insert FIT RecPoint Reader";
133-
specs.emplace_back(o2::ft0::getRecPointReaderSpec(useMC));
134-
}
135-
136137
LOG(INFO) << "Insert TOF Matching";
137138
specs.emplace_back(o2::tof::getTOFRecoWorkflowSpec(useMC, useFIT));
138139

139-
if (writematching && !disableRootOutput) {
140-
LOG(INFO) << "Insert TOF Matched Info Writer";
141-
specs.emplace_back(o2::tof::getTOFMatchedWriterSpec(useMC));
142-
}
143-
if (writecalib) {
144-
LOG(INFO) << "Insert TOF Calib Info Writer";
145-
specs.emplace_back(o2::tof::getTOFCalibWriterSpec());
140+
if (!disableRootOutput) {
141+
if (writematching) {
142+
LOG(INFO) << "Insert TOF Matched Info Writer";
143+
specs.emplace_back(o2::tof::getTOFMatchedWriterSpec(useMC));
144+
}
145+
if (writecalib) {
146+
LOG(INFO) << "Insert TOF Calib Info Writer";
147+
specs.emplace_back(o2::tof::getTOFCalibWriterSpec());
148+
}
146149
}
147-
148150
LOG(INFO) << "Number of active devices = " << specs.size();
149151

150152
return std::move(specs);

Detectors/GlobalTrackingWorkflow/tofworkflow/src/tof-matcher-tpc.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
155155
}
156156
if (writecalib) {
157157
LOG(INFO) << "Insert TOF Calib Info Writer";
158-
specs.emplace_back(o2::tof::getTOFCalibWriterSpec("o2calib_toftpc.root"));
158+
specs.emplace_back(o2::tof::getTOFCalibWriterSpec("o2calib_toftpc.root", true));
159159
}
160160
}
161161

0 commit comments

Comments
 (0)