diff --git a/Common/SimConfig/include/SimConfig/DigiParams.h b/Common/SimConfig/include/SimConfig/DigiParams.h index f6b9cd6f9c79d..074107d0fd9cd 100644 --- a/Common/SimConfig/include/SimConfig/DigiParams.h +++ b/Common/SimConfig/include/SimConfig/DigiParams.h @@ -27,7 +27,6 @@ namespace conf // Global parameters for digitization struct DigiParams : public o2::conf::ConfigurableParamHelper { - std::string ccdb = o2::base::NameConf::getCCDBServer(); std::string digitizationgeometry = ""; // with with geometry file to digitize -> leave empty as this needs to be filled by the digitizer workflow std::string grpfile = ""; // which GRP file to use --> leave empty as this needs to be filled by the digitizer workflow bool mctruth = true; // whether to create labels diff --git a/Detectors/CPV/base/include/CPVBase/CPVSimParams.h b/Detectors/CPV/base/include/CPVBase/CPVSimParams.h index 64a0e3c508bd0..b411a20bae15a 100644 --- a/Detectors/CPV/base/include/CPVBase/CPVSimParams.h +++ b/Detectors/CPV/base/include/CPVBase/CPVSimParams.h @@ -24,8 +24,6 @@ namespace cpv // (mostly used in GEANT stepping and Digitizer) struct CPVSimParams : public o2::conf::ConfigurableParamHelper { - std::string mCCDBPath = o2::base::NameConf::getCCDBServer(); ///< use "localtest" to avoid connecting ccdb server, otherwise use ccdb-test.cern.ch - //Parameters used in conversion of deposited energy to APD response int mnCellX = 128; int mnCellZ = 60; diff --git a/Detectors/CPV/simulation/src/Digitizer.cxx b/Detectors/CPV/simulation/src/Digitizer.cxx index 4dfc6446416e1..3307dd31a045b 100644 --- a/Detectors/CPV/simulation/src/Digitizer.cxx +++ b/Detectors/CPV/simulation/src/Digitizer.cxx @@ -28,15 +28,14 @@ using namespace o2::cpv; //_______________________________________________________________________ void Digitizer::init() { - LOG(info) << "CPVDigitizer::init() : CCDB Url = " << o2::cpv::CPVSimParams::Instance().mCCDBPath.data(); - if (o2::cpv::CPVSimParams::Instance().mCCDBPath.compare("localtest") == 0) { + LOG(info) << "CPVDigitizer::init() : CCDB Url = " << o2::base::NameConf::getCCDBServer(); + if (o2::base::NameConf::getCCDBServer().compare("localtest") == 0) { mCalibParams = new CalibParams(1); // test default calibration mPedestals = new Pedestals(1); // test default pedestals mBadMap = new BadChannelMap(1); // test default bad channels LOG(info) << "[CPVDigitizer] No reading calibration from ccdb requested, set default"; } else { auto& ccdbMgr = o2::ccdb::BasicCCDBManager::instance(); - ccdbMgr.setURL(o2::cpv::CPVSimParams::Instance().mCCDBPath.data()); bool isCcdbReachable = ccdbMgr.isHostReachable(); //if host is not reachable we can use only dummy calibration if (!isCcdbReachable) { LOG(fatal) << "[CPVDigitizer] CCDB Host is not reachable!!!"; diff --git a/Detectors/ZDC/simulation/src/digi2raw.cxx b/Detectors/ZDC/simulation/src/digi2raw.cxx index 53e55508a1031..f64569778bc35 100644 --- a/Detectors/ZDC/simulation/src/digi2raw.cxx +++ b/Detectors/ZDC/simulation/src/digi2raw.cxx @@ -87,13 +87,7 @@ int main(int argc, char** argv) } o2::conf::ConfigurableParam::updateFromString(vm["configKeyValues"].as()); - std::string ccdb_url = o2::base::NameConf::getCCDBServer(); - auto& dopt = o2::conf::DigiParams::Instance(); - std::string ccdbHost = dopt.ccdb; - if (ccdb_url.length() > 0) { - ccdbHost = ccdb_url; - LOG(info) << "CCDB url set to " << ccdb_url; - } + std::string ccdbHost = o2::base::NameConf::getCCDBServer(); LOG(info) << "CCDB url " << ccdbHost; digi2raw(vm["input-file"].as(), vm["output-dir"].as(), diff --git a/Steer/DigitizerWorkflow/src/ZDCDigitizerSpec.cxx b/Steer/DigitizerWorkflow/src/ZDCDigitizerSpec.cxx index e36dacb988881..7fb3a7fb4119e 100644 --- a/Steer/DigitizerWorkflow/src/ZDCDigitizerSpec.cxx +++ b/Steer/DigitizerWorkflow/src/ZDCDigitizerSpec.cxx @@ -52,7 +52,7 @@ class ZDCDPLDigitizerTask : public o2::base::BaseDPLDigitizer auto& dopt = o2::conf::DigiParams::Instance(); - mDigitizer.setCCDBServer(dopt.ccdb); + mDigitizer.setCCDBServer(o2::base::NameConf::getCCDBServer()); auto enableHitInfo = ic.options().get("enable-hit-info"); mDigitizer.setMaskTriggerBits(!enableHitInfo); mDigitizer.setSkipMCLabels(not mUseMC);