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"
@@ -207,6 +208,14 @@ class TPCDPLDigitizerTask : public BaseDPLDigitizer
207208 mDigitizer .setMeanLumiDistortionsDerivative (mMeanLumiDistortionsDerivative );
208209 }
209210 }
211+ if (matcher == ConcreteDataMatcher (o2::header::gDataOriginTPC , " TPCGASPARAM" , 0 )) {
212+ LOGP (info, " TPC gas param updated" );
213+ ParameterGas::Instance ().printKeyValues (true , true );
214+ }
215+ if (matcher == ConcreteDataMatcher (o2::header::gDataOriginTPC , " TPCGEMPARAM" , 0 )) {
216+ LOGP (info, " TPC GEM param updated" );
217+ ParameterGEM::Instance ().printKeyValues (true , true );
218+ }
210219 }
211220
212221 void run (framework::ProcessingContext& pc)
@@ -218,6 +227,8 @@ class TPCDPLDigitizerTask : public BaseDPLDigitizer
218227 cdb.setUseDefaults (!mUseCalibrationsFromCCDB );
219228 // whatever are global settings for CCDB usage, we have to extract the TPC vdrift from CCDB for anchored simulations
220229 mTPCVDriftHelper .extractCCDBInputs (pc);
230+ pc.inputs ().get <ParameterGas*>(" gasparam" );
231+ pc.inputs ().get <ParameterGEM*>(" gemparam" );
221232 if (mDistortionType ) {
222233 pc.inputs ().get <SC*>(" tpcdistortions" );
223234 if (mDistortionType == 2 ) {
@@ -539,6 +550,8 @@ o2::framework::WorkflowSpec getTPCDigitizerSpec(int nLanes, std::vector<int> con
539550 // add the channel for the GRP information to the first processor
540551 for (auto & spec : pipelines) {
541552 o2::tpc::VDriftHelper::requestCCDBInputs (spec.inputs ); // add the same CCDB request to each pipeline
553+ spec.inputs .emplace_back (" gasparam" , o2::header::gDataOriginTPC , " TPCGASPARAM" , 0 , Lifetime::Condition, ccdbParamSpec (o2::tpc::CDBTypeMap.at (o2::tpc::CDBType::ParGas)));
554+ spec.inputs .emplace_back (" gemparam" , o2::header::gDataOriginTPC , " TPCGEMPARAM" , 0 , Lifetime::Condition, ccdbParamSpec (o2::tpc::CDBTypeMap.at (o2::tpc::CDBType::ParGEM)));
542555 if (distortionType) {
543556 spec.inputs .emplace_back (" tpcdistortions" , o2::header::gDataOriginTPC , " TPCDIST" , 0 , Lifetime::Condition, ccdbParamSpec (o2::tpc::CDBTypeMap.at (o2::tpc::CDBType::DistortionMapMC), {}, 1 )); // time-dependent
544557 // load derivative map in case scaling was requested
0 commit comments