Skip to content

Commit 39292a9

Browse files
committed
Send reco config.params to AODMetadata
1 parent e51f629 commit 39292a9

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

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

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
// or submit itself to any jurisdiction.
1111

1212
#include <vector>
13-
13+
#include <TMap.h>
14+
#include <TObjString.h>
1415
#include "Framework/ControlService.h"
1516
#include "Framework/ConfigParamRegistry.h"
1617
#include "Framework/CCDBParamSpec.h"
@@ -67,8 +68,15 @@ void TrackerDPL::run(ProcessingContext& pc)
6768
if (first) {
6869
first = false;
6970
if (pc.services().get<const o2::framework::DeviceSpec>().inputTimesliceId == 0) {
70-
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());
71-
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());
71+
const auto& vtconf = o2::its::VertexerParamConfig::Instance();
72+
const auto& trconf = o2::its::TrackerParamConfig::Instance();
73+
o2::conf::ConfigurableParam::write(o2::base::NameConf::getConfigOutputFileName(pc.services().get<const o2::framework::DeviceSpec>().name, vtconf.getName()), vtconf.getName());
74+
o2::conf::ConfigurableParam::write(o2::base::NameConf::getConfigOutputFileName(pc.services().get<const o2::framework::DeviceSpec>().name, trconf.getName()), trconf.getName());
75+
TMap md;
76+
md.SetOwnerKeyValue();
77+
md.Add(new TObjString(vtconf.getName().c_str()), new TObjString(o2::conf::ConfigurableParam::asJSON(vtconf.getName()).c_str()));
78+
md.Add(new TObjString(trconf.getName().c_str()), new TObjString(o2::conf::ConfigurableParam::asJSON(trconf.getName()).c_str()));
79+
pc.outputs().snapshot(Output{"META", "ITSTRACKER", 0}, md);
7280
}
7381
}
7482
}
@@ -138,6 +146,7 @@ DataProcessorSpec getTrackerSpec(bool useMC, bool doStag, bool useGeom, int trgT
138146
outputs.emplace_back("ITS", "VERTICESMCPUR", 0, Lifetime::Timeframe);
139147
outputs.emplace_back("ITS", "TRACKSMCTR", 0, Lifetime::Timeframe);
140148
}
149+
outputs.emplace_back("META", "ITSTRACKER", 0, Lifetime::Sporadic);
141150

142151
return DataProcessorSpec{
143152
.name = "its-tracker",

0 commit comments

Comments
 (0)