File tree Expand file tree Collapse file tree 5 files changed +12
-1
lines changed
Expand file tree Collapse file tree 5 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,14 @@ void GeometryContainer::init(o2::framework::InitContext& initContext)
101101 }
102102}
103103
104+ void GeometryContainer::addEntry (const std::string& filename)
105+ {
106+ if (!mCcdb ) {
107+ LOG (fatal) << " --- ccdb is not set" ;
108+ }
109+ mEntries .emplace_back (filename, mCcdb );
110+ }
111+
104112std::map<std::string, std::string> GeometryEntry::getConfiguration (const std::string& layerName) const
105113{
106114 auto it = mConfigurations .find (layerName);
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ class GeometryContainer
9191 void init (o2::framework::InitContext& initContext);
9292
9393 // Add a geometry entry from a configuration file
94- void addEntry (const std::string& filename) { mEntries . emplace_back (filename, mCcdb ); }
94+ void addEntry (const std::string& filename);
9595 static void setLutCleanupSetting (const bool cleanLutWhenLoaded) { mCleanLutWhenLoaded = cleanLutWhenLoaded; }
9696 void setCcdbManager (o2::ccdb::BasicCCDBManager* mgr) { mCcdb = mgr; }
9797
Original file line number Diff line number Diff line change @@ -288,6 +288,7 @@ struct OnTheFlyRichPid {
288288 float mMagneticField = 0 .0f ;
289289 void init (o2::framework::InitContext& initContext)
290290 {
291+ mGeoContainer .setCcdbManager (ccdb.operator ->());
291292 mGeoContainer .init (initContext);
292293
293294 const int nGeometries = mGeoContainer .getNumberOfConfigurations ();
Original file line number Diff line number Diff line change @@ -147,6 +147,7 @@ struct OnTheFlyTofPid {
147147 float mMagneticField = 0 .0f ;
148148 void init (o2::framework::InitContext& initContext)
149149 {
150+ mGeoContainer .setCcdbManager (ccdb.operator ->());
150151 mGeoContainer .init (initContext);
151152
152153 const int nGeometries = mGeoContainer .getNumberOfConfigurations ();
Original file line number Diff line number Diff line change @@ -317,6 +317,7 @@ struct OnTheFlyTracker {
317317 LOG (info) << " Initializing OnTheFlyTracker task" ;
318318 ccdb->setURL (" http://alice-ccdb.cern.ch" );
319319 ccdb->setTimestamp (-1 );
320+ mGeoContainer .setCcdbManager (ccdb.operator ->());
320321 mGeoContainer .init (initContext);
321322
322323 const int nGeometries = mGeoContainer .getNumberOfConfigurations ();
You can’t perform that action at this time.
0 commit comments