Skip to content

Commit 2ff6878

Browse files
committed
use correct time to fetch CCDB field in event generation
1 parent 8ca3f76 commit 2ff6878

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

run/O2PrimaryServerDevice.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
#include "PrimaryServerState.h"
4343
#include "SimPublishChannelHelper.h"
4444
#include <chrono>
45+
#include <CCDB/BasicCCDBManager.h>
4546

4647
namespace o2
4748
{
@@ -74,6 +75,9 @@ class O2PrimaryServerDevice final : public FairMQDevice
7475
TStopwatch timer;
7576
timer.Start();
7677
const auto& conf = mSimConfig;
78+
auto& ccdbmgr = o2::ccdb::BasicCCDBManager::instance();
79+
ccdbmgr.setURL(conf.getConfigData().mCCDBUrl);
80+
ccdbmgr.setTimestamp(conf.getTimestamp());
7781

7882
// init magnetic field as it might be needed by the generator
7983
if (TGeoGlobalMagField::Instance()->GetField() == nullptr) {

0 commit comments

Comments
 (0)