Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions Steer/DigitizerWorkflow/src/SimpleDigitizerWorkflow.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -309,11 +309,16 @@ void initTPC(long timestamp)
auto& cdb = o2::tpc::CDBInterface::instance();
cdb.setUseDefaults();

// IMPORTANT: load ParameterGEM from CCDB
// IMPORTANT: load ParameterGEM, ParameterGas and CalPadGainFull from CCDB to correctly init GEMAmplification
auto& ccdbManager = o2::ccdb::BasicCCDBManager::instance();
ccdbManager.getSpecific<o2::tpc::ParameterGEM>(o2::tpc::CDBTypeMap.at(o2::tpc::CDBType::ParGEM), timestamp);
LOGP(info, "initTPC: TPC GEM param updated for time {}", timestamp);
LOGP(info, "initTPC: TPC GEM param, Gas param + CalPadGainFull updated for time {}", timestamp);
ccdbManager.getSpecific<o2::tpc::CalPad>(o2::tpc::CDBTypeMap.at(o2::tpc::CDBType::CalPadGainFull), timestamp);
ccdbManager.getSpecific<o2::tpc::ParameterGas>(o2::tpc::CDBTypeMap.at(o2::tpc::CDBType::ParGas), timestamp);

o2::tpc::ParameterGEM::Instance().printKeyValues(true, true);
o2::tpc::ParameterGas::Instance().printKeyValues(true, true);

// by invoking this constructor we make sure that a common file will be created
// in future we should take this from OCDB and just forward per message
const static auto& ampl = o2::tpc::GEMAmplification::instance();
Expand Down