Configure CCDB server via NameConf::mCCDBServer and NameConf::getCCDBServer()#7778
Configure CCDB server via NameConf::mCCDBServer and NameConf::getCCDBServer()#7778davidrohr merged 2 commits intoAliceO2Group:devfrom
Conversation
noferini
left a comment
There was a problem hiding this comment.
For TOF it is fine,
since I have an open PR affecting calibration and ccdb I will take care to align the TOF code also there once this is in dev
martenole
left a comment
There was a problem hiding this comment.
Hi @shahor02
from TRD side looks good. I was wondering if it would make sense to change the default URL for the CCDB manager as well? If I do
root [0] auto &mgr = o2::ccdb::BasicCCDBManager::instance()
[INFO] Is alien token present?: 0
(o2::ccdb::BasicCCDBManager &) @0x7f0c8ccb3028
root [1] mgr.getURL()
(const std::string &) "http://ccdb-test.cern.ch:8080"
root [2]
I still get the test CCDB. And for instance the tracklet transformer is not setting the URL explicitly:
AliceO2/Detectors/TRD/base/src/TrackletTransformer.cxx
Lines 46 to 49 in e076a97
I would change this now, but I don't know if this is the case also in other places of O2..
davidrohr
left a comment
There was a problem hiding this comment.
thx a lot for taking care!
Full CI is failing, I am just trying it locally.
Absolutely, I would do that. This configKeyValues should set all CCDB defaults. |
|
This would mean making CCDB dependent on the DataFormats. So far, we were trying to keep CCDB clean, the only O2 dependency is on O2::CommonUtils (which contains the ConfigurableParam class). What we can do is to define a special configurable CCDBParam and move the NameConf::mCCDBServer there. |
|
I don't see a large problem if the CCDB depended on data formats. Having another configKeyValues class for the CCDB would also be fine for me. |
|
@cortesep I've copied the last objects in ZDC/Config/Sim and ZDC/Config/Module from http://ccdb-test.cern.ch:8080 to http://alice-ccdb.cern.ch. If you need to update them, please do this directly on the production server. |
NameConf depends on DetID which is in the DataFormats/Detectors/Common and which in turn depends on the DataFormats/common. We cannot move NameConf there w/o major refactoring... |
|
I am still getting errors, also for ZDC (ran 1 minute ago), these objects are missing: I don't fully understand what is the last one? It is requested by CPV. |
Well, it is only used only in some helper functions to get the detector name. Let me see whether I can find a clever way to move it to |
|
Here is an attempt to move NameConf: davidrohr@8a59520 |
|
I have opened #7798, which includes this one. |
No description provided.