@@ -282,7 +282,7 @@ int getNumTPCLanes(std::vector<int> const& sectors, ConfigContext const& configc
282282
283283// ------------------------------------------------------------------
284284
285- void initTPC ()
285+ void initTPC (long timestamp )
286286{
287287 // We only want to do this for the DPL master
288288 // I am not aware of an easy way to query if "I am DPL master" so
@@ -304,6 +304,12 @@ void initTPC()
304304
305305 auto & cdb = o2::tpc::CDBInterface::instance ();
306306 cdb.setUseDefaults ();
307+
308+ // IMPORTANT: load ParameterGEM from CCDB
309+ auto & ccdbManager = o2::ccdb::BasicCCDBManager::instance ();
310+ ccdbManager.getSpecific <o2::tpc::ParameterGEM>(o2::tpc::CDBTypeMap.at (o2::tpc::CDBType::ParGEM), timestamp);
311+ LOGP (info, " initTPC: TPC GEM param updated for time {}" , timestamp);
312+ o2::tpc::ParameterGEM::Instance ().printKeyValues (true , true );
307313 // by invoking this constructor we make sure that a common file will be created
308314 // in future we should take this from OCDB and just forward per message
309315 const static auto & ampl = o2::tpc::GEMAmplification::instance ();
@@ -588,7 +594,7 @@ WorkflowSpec defineDataProcessing(ConfigContext const& configcontext)
588594
589595 if (isEnabled (o2::detectors::DetID::TPC)) {
590596 if (!helpasked && ismaster) {
591- initTPC ();
597+ initTPC (hbfu. startTime );
592598 }
593599
594600 tpcsectors = o2::RangeTokenizer::tokenize<int >(configcontext.options ().get <std::string>(" tpc-sectors" ));
0 commit comments