Skip to content

Commit 0e0e8f6

Browse files
committed
Dump uniformly important reco ConfigParams to be collected in AO2D metadata
1 parent f4b03bf commit 0e0e8f6

File tree

9 files changed

+83
-1
lines changed

9 files changed

+83
-1
lines changed

Detectors/GlobalTrackingWorkflow/src/PrimaryVertexingSpec.cxx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,14 @@ void PrimaryVertexingSpec::run(ProcessingContext& pc)
197197
mVertexer.getTimeReAttach().CpuTime(), mVertexer.getTotTrials(), mVertexer.getNTZClusters(), mVertexer.getMaxTrialsPerCluster(),
198198
mVertexer.getLongestClusterTimeMS(), mVertexer.getLongestClusterMult(), mVertexer.getNIniFound(),
199199
mVertexer.getNKilledBCValid(), mVertexer.getNKilledIntCand(), mVertexer.getNKilledDebris(), mVertexer.getNKilledQuality(), mVertexer.getNKilledITSOnly());
200+
201+
static bool first = true;
202+
if (first) {
203+
first = false;
204+
if (pc.services().get<const o2::framework::DeviceSpec>().inputTimesliceId == 0) {
205+
o2::conf::ConfigurableParam::write(o2::base::NameConf::getConfigOutputFileName(pc.services().get<const o2::framework::DeviceSpec>().name, PVertexerParams::Instance().getName()), PVertexerParams::Instance().getName());
206+
}
207+
}
200208
}
201209

202210
void PrimaryVertexingSpec::endOfStream(EndOfStreamContext& ec)

Detectors/GlobalTrackingWorkflow/src/SecondaryVertexingSpec.cxx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,17 @@ void SecondaryVertexingSpec::run(ProcessingContext& pc)
128128
mVertexer.getNV0s(), calls[0] - fitCalls[0], mVertexer.getNCascades(), calls[1] - fitCalls[1], mVertexer.getN3Bodies(), calls[2] - fitCalls[2], mVertexer.getNStrangeTracks(),
129129
mTimer.CpuTime() - timeCPU0, mTimer.RealTime() - timeReal0);
130130
fitCalls = calls;
131+
132+
static bool first = true;
133+
if (first) {
134+
first = false;
135+
if (pc.services().get<const o2::framework::DeviceSpec>().inputTimesliceId == 0) {
136+
o2::conf::ConfigurableParam::write(o2::base::NameConf::getConfigOutputFileName(pc.services().get<const o2::framework::DeviceSpec>().name, SVertexerParams::Instance().getName()), SVertexerParams::Instance().getName());
137+
if (mEnableStrangenessTracking) {
138+
o2::conf::ConfigurableParam::write(o2::base::NameConf::getConfigOutputFileName(pc.services().get<const o2::framework::DeviceSpec>().name, o2::strangeness_tracking::StrangenessTrackingParamConfig::Instance().getName()), o2::strangeness_tracking::StrangenessTrackingParamConfig::Instance().getName());
139+
}
140+
}
141+
}
131142
}
132143

133144
void SecondaryVertexingSpec::endOfStream(EndOfStreamContext& ec)

Detectors/GlobalTrackingWorkflow/src/TOFMatcherSpec.cxx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include "DataFormatsGlobalTracking/RecoContainer.h"
2323
#include "Framework/Task.h"
2424
#include "Framework/DataProcessorSpec.h"
25+
#include "Framework/DeviceSpec.h"
2526
#include "TPCCalibration/VDriftHelper.h"
2627
#include "TPCCalibration/CorrectionMapsLoader.h"
2728

@@ -229,6 +230,14 @@ void TOFMatcherSpec::run(ProcessingContext& pc)
229230
pc.outputs().snapshot(Output{o2::header::gDataOriginTOF, "MATCHABLES_17", 0}, mMatcher.getMatchedTracksPair(17));
230231
}
231232

233+
static bool first = true;
234+
if (first) {
235+
first = false;
236+
if (pc.services().get<const o2::framework::DeviceSpec>().inputTimesliceId == 0) {
237+
o2::conf::ConfigurableParam::write(o2::base::NameConf::getConfigOutputFileName(pc.services().get<const o2::framework::DeviceSpec>().name, MatchTOFParams::Instance().getName()), MatchTOFParams::Instance().getName());
238+
}
239+
}
240+
232241
mTimer.Stop();
233242
}
234243

Detectors/GlobalTrackingWorkflow/src/TPCITSMatchingSpec.cxx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,14 @@ void TPCITSMatchingDPL::run(ProcessingContext& pc)
130130

131131
mMatching.run(recoData, matchedTracks, ABTrackletRefs, ABTrackletClusterIDs, matchLabels, ABTrackletLabels, calib);
132132

133+
static bool first = true;
134+
if (first) {
135+
first = false;
136+
if (pc.services().get<const o2::framework::DeviceSpec>().inputTimesliceId == 0) {
137+
o2::conf::ConfigurableParam::write(o2::base::NameConf::getConfigOutputFileName(pc.services().get<const o2::framework::DeviceSpec>().name, MatchTPCITSParams::Instance().getName()), MatchTPCITSParams::Instance().getName());
138+
}
139+
}
140+
133141
mTimer.Stop();
134142
}
135143

Detectors/ITSMFT/ITS/workflow/src/TrackerSpec.cxx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include "Framework/ControlService.h"
1515
#include "Framework/ConfigParamRegistry.h"
1616
#include "Framework/CCDBParamSpec.h"
17+
#include "Framework/DeviceSpec.h"
1718
#include "ITSWorkflow/TrackerSpec.h"
1819
#include "ITStracking/Definitions.h"
1920
#include "ITStracking/TrackingConfigParam.h"
@@ -60,6 +61,14 @@ void TrackerDPL::run(ProcessingContext& pc)
6061
mITSTrackingInterface.run(pc);
6162
mTimer.Stop();
6263
LOGP(info, "CPU Reconstruction time for this TF {:.2f} s (cpu), {:.2f} s (wall)", mTimer.CpuTime() - cput, mTimer.RealTime() - realt);
64+
static bool first = true;
65+
if (first) {
66+
first = false;
67+
if (pc.services().get<const o2::framework::DeviceSpec>().inputTimesliceId == 0) {
68+
o2::conf::ConfigurableParam::write(o2::base::NameConf::getConfigOutputFileName(pc.services().get<const o2::framework::DeviceSpec>().name, o2::its::VertexerParamConfig::Instance().getName()), o2::its::VertexerParamConfig::Instance().getName());
69+
o2::conf::ConfigurableParam::write(o2::base::NameConf::getConfigOutputFileName(pc.services().get<const o2::framework::DeviceSpec>().name, o2::its::TrackerParamConfig::Instance().getName()), o2::its::TrackerParamConfig::Instance().getName());
70+
}
71+
}
6372
}
6473

6574
void TrackerDPL::finaliseCCDB(ConcreteDataMatcher& matcher, void* obj)

Detectors/ITSMFT/MFT/workflow/src/TrackerSpec.cxx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
#include "TGeoGlobalMagField.h"
2626

27+
#include "Framework/DeviceSpec.h"
2728
#include "Framework/ControlService.h"
2829
#include "Framework/ConfigParamRegistry.h"
2930
#include "Framework/CCDBParamSpec.h"
@@ -331,6 +332,14 @@ void TrackerDPL::run(ProcessingContext& pc)
331332
pc.outputs().snapshot(Output{"MFT", "TRACKSMC2ROF", 0}, mc2rofs);
332333
}
333334

335+
static bool first = true;
336+
if (first) {
337+
first = false;
338+
if (pc.services().get<const o2::framework::DeviceSpec>().inputTimesliceId == 0) {
339+
o2::conf::ConfigurableParam::write(o2::base::NameConf::getConfigOutputFileName(pc.services().get<const o2::framework::DeviceSpec>().name, o2::mft::MFTTrackingParam::Instance().getName()), o2::mft::MFTTrackingParam::Instance().getName());
340+
}
341+
}
342+
334343
mTimer[SWTot].Stop();
335344
}
336345

Detectors/TRD/workflow/src/TRDGlobalTrackingSpec.cxx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include "GPUWorkflowHelper/GPUWorkflowHelper.h"
2929
#include "Framework/ConfigParamRegistry.h"
3030
#include "Framework/CCDBParamSpec.h"
31+
#include "Framework/DeviceSpec.h"
3132
#include "DataFormatsTPC/WorkflowHelper.h"
3233
#include "TPCReconstruction/TPCFastTransformHelperO2.h"
3334
#include "CommonConstants/GeomConstants.h"
@@ -554,6 +555,14 @@ void TRDGlobalTracking::run(ProcessingContext& pc)
554555
}
555556
}
556557

558+
static bool first = true;
559+
if (first) {
560+
first = false;
561+
if (pc.services().get<const o2::framework::DeviceSpec>().inputTimesliceId == 0) {
562+
o2::conf::ConfigurableParam::write(o2::base::NameConf::getConfigOutputFileName(pc.services().get<const o2::framework::DeviceSpec>().name, "GPU_rec_trd"), "GPU_rec_trd");
563+
}
564+
}
565+
557566
mTimer.Stop();
558567
}
559568

GPU/Workflow/src/GPUWorkflowITS.cxx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@
1818
#include "Framework/ControlService.h"
1919
#include "Framework/ConfigParamRegistry.h"
2020
#include "Framework/CCDBParamSpec.h"
21-
21+
#include "Framework/DeviceSpec.h"
22+
#include "CommonUtils/ConfigurableParam.h"
23+
#include "CommonUtils/NameConf.h"
2224
#include "ITStracking/TrackingInterface.h"
25+
#include "ITStracking/TrackingConfigParam.h"
2326

2427
#ifdef ENABLE_UPGRADES
2528
#include "ITS3Reconstruction/TrackingInterface.h"
@@ -33,6 +36,15 @@ int32_t GPURecoWorkflowSpec::runITSTracking(o2::framework::ProcessingContext& pc
3336
mITSTimeFrame->setDevicePropagator(mGPUReco->GetDeviceO2Propagator());
3437
LOGP(debug, "GPUChainITS is giving me device propagator: {}", (void*)mGPUReco->GetDeviceO2Propagator());
3538
mITSTrackingInterface->run(pc);
39+
static bool first = true;
40+
if (first) {
41+
first = false;
42+
if (pc.services().get<const o2::framework::DeviceSpec>().inputTimesliceId == 0) {
43+
o2::conf::ConfigurableParam::write(o2::base::NameConf::getConfigOutputFileName(pc.services().get<const o2::framework::DeviceSpec>().name, o2::its::VertexerParamConfig::Instance().getName()), o2::its::VertexerParamConfig::Instance().getName());
44+
o2::conf::ConfigurableParam::write(o2::base::NameConf::getConfigOutputFileName(pc.services().get<const o2::framework::DeviceSpec>().name, o2::its::TrackerParamConfig::Instance().getName()), o2::its::TrackerParamConfig::Instance().getName());
45+
o2::conf::ConfigurableParam::write(o2::base::NameConf::getConfigOutputFileName(pc.services().get<const o2::framework::DeviceSpec>().name, o2::its::ITSGpuTrackingParamConfig::Instance().getName()), o2::its::ITSGpuTrackingParamConfig::Instance().getName());
46+
}
47+
}
3648
return 0;
3749
}
3850

GPU/Workflow/src/GPUWorkflowSpec.cxx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,13 @@ int32_t GPURecoWorkflowSpec::runMain(o2::framework::ProcessingContext* pc, GPUTr
514514
if (retVal == 0 && mSpecConfig.runITSTracking) {
515515
retVal = runITSTracking(*pc);
516516
}
517+
static bool first = true;
518+
if (first) {
519+
first = false;
520+
if (pc->services().get<const o2::framework::DeviceSpec>().inputTimesliceId == 0) { // TPC ConfigurableCarams are somewhat special, need to construct by hand
521+
o2::conf::ConfigurableParam::write(o2::base::NameConf::getConfigOutputFileName(pc->services().get<const o2::framework::DeviceSpec>().name, "rec_tpc"), "GPU_rec_tpc,GPU_rec,GPU_proc_param,GPU_proc,GPU_global,trackTuneParams");
522+
}
523+
}
517524
}
518525

519526
if (!mSpecConfig.enableDoublePipeline) { // TODO: Why is this needed for double-pipeline?

0 commit comments

Comments
 (0)