3434#include " DataFormatsParameters/GRPObject.h"
3535#include " DataFormatsTPC/TPCSectorHeader.h"
3636#include " TPCBase/CDBInterface.h"
37+ #include " TPCBase/ParameterGEM.h"
3738#include " DataFormatsTPC/Digit.h"
3839#include " TPCSimulation/Digitizer.h"
3940#include " TPCSimulation/Detector.h"
@@ -204,6 +205,14 @@ class TPCDPLDigitizerTask : public BaseDPLDigitizer
204205 mDigitizer .setMeanLumiDistortionsDerivative (mMeanLumiDistortionsDerivative );
205206 }
206207 }
208+ if (matcher == ConcreteDataMatcher (o2::header::gDataOriginTPC , " TPCGASPARAM" , 0 )) {
209+ LOGP (info, " TPC gas param updated" );
210+ ParameterGas::Instance ().printKeyValues (true , true );
211+ }
212+ if (matcher == ConcreteDataMatcher (o2::header::gDataOriginTPC , " TPCGEMPARAM" , 0 )) {
213+ LOGP (info, " TPC GEM param updated" );
214+ ParameterGEM::Instance ().printKeyValues (true , true );
215+ }
207216 }
208217
209218 void run (framework::ProcessingContext& pc)
@@ -215,6 +224,8 @@ class TPCDPLDigitizerTask : public BaseDPLDigitizer
215224 cdb.setUseDefaults (!mUseCalibrationsFromCCDB );
216225 // whatever are global settings for CCDB usage, we have to extract the TPC vdrift from CCDB for anchored simulations
217226 mTPCVDriftHelper .extractCCDBInputs (pc);
227+ pc.inputs ().get <ParameterGas*>(" gasparam" );
228+ pc.inputs ().get <ParameterGEM*>(" gemparam" );
218229 if (mDistortionType ) {
219230 pc.inputs ().get <SC*>(" tpcdistortions" );
220231 if (mDistortionType == 2 ) {
@@ -532,6 +543,8 @@ o2::framework::WorkflowSpec getTPCDigitizerSpec(int nLanes, std::vector<int> con
532543 // add the channel for the GRP information to the first processor
533544 for (auto & spec : pipelines) {
534545 o2::tpc::VDriftHelper::requestCCDBInputs (spec.inputs ); // add the same CCDB request to each pipeline
546+ spec.inputs .emplace_back (" gasparam" , o2::header::gDataOriginTPC , " TPCGASPARAM" , 0 , Lifetime::Condition, ccdbParamSpec (o2::tpc::CDBTypeMap.at (o2::tpc::CDBType::ParGas)));
547+ spec.inputs .emplace_back (" gemparam" , o2::header::gDataOriginTPC , " TPCGEMPARAM" , 0 , Lifetime::Condition, ccdbParamSpec (o2::tpc::CDBTypeMap.at (o2::tpc::CDBType::ParGEM)));
535548 if (distortionType) {
536549 spec.inputs .emplace_back (" tpcdistortions" , o2::header::gDataOriginTPC , " TPCDIST" , 0 , Lifetime::Condition, ccdbParamSpec (o2::tpc::CDBTypeMap.at (o2::tpc::CDBType::DistortionMapMC), {}, 1 )); // time-dependent
537550 // load derivative map in case scaling was requested
0 commit comments