File tree Expand file tree Collapse file tree
DataFormats/Parameters/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -319,8 +319,12 @@ bool create_GRPs(Options const& opts)
319319
320320 // set the BC pattern if necessary
321321 if (opts.bcPatternFile .size () > 0 ) {
322- // load bunch filling from the file
323- auto * bc = o2::BunchFilling::loadFrom (opts.bcPatternFile );
322+ // load bunch filling from the file (with standard CCDB convention)
323+ auto * bc = o2::BunchFilling::loadFrom (opts.bcPatternFile , " ccdb_object" );
324+ if (!bc) {
325+ // if it failed, retry with default naming
326+ bc = o2::BunchFilling::loadFrom (opts.bcPatternFile );
327+ }
324328 if (!bc) {
325329 LOG (fatal) << " Failed to load bunch filling from " << opts.bcPatternFile ;
326330 }
Original file line number Diff line number Diff line change @@ -134,7 +134,10 @@ int InteractionSampler::simulateInteractingBC()
134134void InteractionSampler::setBunchFilling (const std::string& bcFillingFile)
135135{
136136 // load bunch filling from the file
137- auto * bc = o2::BunchFilling::loadFrom (bcFillingFile);
137+ auto * bc = o2::BunchFilling::loadFrom (bcFillingFile, " ccdb_object" );
138+ if (!bc) {
139+ bc = o2::BunchFilling::loadFrom (bcFillingFile); // retry with default naming in case of failure
140+ }
138141 if (!bc) {
139142 LOG (fatal) << " Failed to load bunch filling from " << bcFillingFile;
140143 }
You can’t perform that action at this time.
0 commit comments