Skip to content

Commit 4b72f18

Browse files
tubagundemsawenzel
authored andcommitted
TPC: Fix digitizer workflow to load GEM params from CCDB before creating Polya file
1 parent 89b35ba commit 4b72f18

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Steer/DigitizerWorkflow/src/SimpleDigitizerWorkflow.cxx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ int getNumTPCLanes(std::vector<int> const& sectors, ConfigContext const& configc
286286

287287
// ------------------------------------------------------------------
288288

289-
void initTPC()
289+
void initTPC(long timestamp)
290290
{
291291
// We only want to do this for the DPL master
292292
// I am not aware of an easy way to query if "I am DPL master" so
@@ -308,6 +308,12 @@ void initTPC()
308308

309309
auto& cdb = o2::tpc::CDBInterface::instance();
310310
cdb.setUseDefaults();
311+
312+
// IMPORTANT: load ParameterGEM from CCDB
313+
auto& ccdbManager = o2::ccdb::BasicCCDBManager::instance();
314+
ccdbManager.getSpecific<o2::tpc::ParameterGEM>(o2::tpc::CDBTypeMap.at(o2::tpc::CDBType::ParGEM), timestamp);
315+
LOGP(info, "initTPC: TPC GEM param updated for time {}", timestamp);
316+
o2::tpc::ParameterGEM::Instance().printKeyValues(true, true);
311317
// by invoking this constructor we make sure that a common file will be created
312318
// in future we should take this from OCDB and just forward per message
313319
const static auto& ampl = o2::tpc::GEMAmplification::instance();
@@ -592,7 +598,7 @@ WorkflowSpec defineDataProcessing(ConfigContext const& configcontext)
592598

593599
if (isEnabled(o2::detectors::DetID::TPC)) {
594600
if (!helpasked && ismaster) {
595-
initTPC();
601+
initTPC(hbfu.startTime);
596602
}
597603

598604
tpcsectors = o2::RangeTokenizer::tokenize<int>(configcontext.options().get<std::string>("tpc-sectors"));

0 commit comments

Comments
 (0)