File tree Expand file tree Collapse file tree
Common/SimConfig/include/SimConfig
Steer/DigitizerWorkflow/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ namespace conf
2727// Global parameters for digitization
2828struct DigiParams : public o2 ::conf::ConfigurableParamHelper<DigiParams> {
2929
30- std::string ccdb = o2::base::NameConf::getCCDBServer();
3130 std::string digitizationgeometry = " " ; // with with geometry file to digitize -> leave empty as this needs to be filled by the digitizer workflow
3231 std::string grpfile = " " ; // which GRP file to use --> leave empty as this needs to be filled by the digitizer workflow
3332 bool mctruth = true ; // whether to create labels
Original file line number Diff line number Diff line change @@ -24,8 +24,6 @@ namespace cpv
2424// (mostly used in GEANT stepping and Digitizer)
2525struct CPVSimParams : public o2 ::conf::ConfigurableParamHelper<CPVSimParams> {
2626
27- std::string mCCDBPath = o2::base::NameConf::getCCDBServer(); // /< use "localtest" to avoid connecting ccdb server, otherwise use ccdb-test.cern.ch
28-
2927 // Parameters used in conversion of deposited energy to APD response
3028 int mnCellX = 128 ;
3129 int mnCellZ = 60 ;
Original file line number Diff line number Diff line change @@ -28,15 +28,14 @@ using namespace o2::cpv;
2828// _______________________________________________________________________
2929void Digitizer::init ()
3030{
31- LOG (info) << " CPVDigitizer::init() : CCDB Url = " << o2::cpv::CPVSimParams::Instance (). mCCDBPath . data ();
32- if (o2::cpv::CPVSimParams::Instance (). mCCDBPath .compare (" localtest" ) == 0 ) {
31+ LOG (info) << " CPVDigitizer::init() : CCDB Url = " << o2::base::NameConf::getCCDBServer ();
32+ if (o2::base::NameConf::getCCDBServer () .compare (" localtest" ) == 0 ) {
3333 mCalibParams = new CalibParams (1 ); // test default calibration
3434 mPedestals = new Pedestals (1 ); // test default pedestals
3535 mBadMap = new BadChannelMap (1 ); // test default bad channels
3636 LOG (info) << " [CPVDigitizer] No reading calibration from ccdb requested, set default" ;
3737 } else {
3838 auto & ccdbMgr = o2::ccdb::BasicCCDBManager::instance ();
39- ccdbMgr.setURL (o2::cpv::CPVSimParams::Instance ().mCCDBPath .data ());
4039 bool isCcdbReachable = ccdbMgr.isHostReachable (); // if host is not reachable we can use only dummy calibration
4140 if (!isCcdbReachable) {
4241 LOG (fatal) << " [CPVDigitizer] CCDB Host is not reachable!!!" ;
Original file line number Diff line number Diff line change @@ -87,13 +87,7 @@ int main(int argc, char** argv)
8787 }
8888 o2::conf::ConfigurableParam::updateFromString (vm[" configKeyValues" ].as <std::string>());
8989
90- std::string ccdb_url = o2::base::NameConf::getCCDBServer ();
91- auto & dopt = o2::conf::DigiParams::Instance ();
92- std::string ccdbHost = dopt.ccdb ;
93- if (ccdb_url.length () > 0 ) {
94- ccdbHost = ccdb_url;
95- LOG (info) << " CCDB url set to " << ccdb_url;
96- }
90+ std::string ccdbHost = o2::base::NameConf::getCCDBServer ();
9791 LOG (info) << " CCDB url " << ccdbHost;
9892 digi2raw (vm[" input-file" ].as <std::string>(),
9993 vm[" output-dir" ].as <std::string>(),
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ class ZDCDPLDigitizerTask : public o2::base::BaseDPLDigitizer
5252
5353 auto & dopt = o2::conf::DigiParams::Instance ();
5454
55- mDigitizer .setCCDBServer (dopt. ccdb );
55+ mDigitizer .setCCDBServer (o2::base::NameConf::getCCDBServer () );
5656 auto enableHitInfo = ic.options ().get <bool >(" enable-hit-info" );
5757 mDigitizer .setMaskTriggerBits (!enableHitInfo);
5858 mDigitizer .setSkipMCLabels (not mUseMC );
You can’t perform that action at this time.
0 commit comments