sbysiak
(Sebastian Bysiak)
1
Dear Experts,
I see that the checkerInterface contains now ccdb api instance. How can I config its url?
In postprocessing I could do:
mCcdbUrl = config.get_child("qc.config.conditionDB.url").get_value<std::string>();
What would be something equivalent for the checker?
Cheers,
Sebastian
bvonhall
(Barthelemy Von Haller)
2
Hi Sebastian,
If you define a valid URL in
{
"qc": {
"config": {
...
"conditionDB": {
"url": "ccdb-test.cern.ch:8080"
}
},
...
then you can use the following code in your Checker:
TObject* condition = TaskInterface::retrieveCondition("Path/to/condition");
if (condition) {
LOG(info) << "Retrieved " << condition->ClassName();
delete condition;
}
Reference: