@@ -382,7 +382,7 @@ class GenTPCLoopers : public Generator
382382// ONNX model files can be local, on AliEn or in the ALICE CCDB.
383383// For local and alien files it is mandatory to provide the filenames, for the CCDB instead the
384384// path to the object in the CCDB is sufficient. The model files will be downloaded locally.
385- // Example of CCDB path: "ccdb:Users/n/name/test"
385+ // Example of CCDB path: "ccdb:// Users/n/name/test"
386386// Example of alien path: "alien:///alice/cern.ch/user/n/name/test/test.onnx"
387387FairGenerator *
388388 Generator_TPCLoopers (std ::string model_pairs = "tpcloopmodel.onnx" , std ::string model_compton = "tpcloopmodelcompton.onnx" ,
@@ -400,7 +400,7 @@ FairGenerator *
400400 const std ::array < std ::string , 2 > models = {model_pairs , model_compton };
401401 const std ::array < std ::string , 2 > local_names = {"WGANpair.onnx" , "WGANcompton.onnx" };
402402 const std ::array < bool , 2 > isAlien = {models [0 ].starts_with ("alien://" ), models [1 ].starts_with ("alien://" )};
403- const std ::array < bool , 2 > isCCDB = {models [0 ].starts_with ("ccdb:" ), models [1 ].starts_with ("ccdb:" )};
403+ const std ::array < bool , 2 > isCCDB = {models [0 ].starts_with ("ccdb:// " ), models [1 ].starts_with ("ccdb:// " )};
404404 if (std ::any_of (isAlien .begin (), isAlien .end (), [](bool v ) { return v ; }))
405405 {
406406 if (!gGrid ) {
@@ -427,8 +427,8 @@ FairGenerator *
427427 {
428428 if (isCCDB [i ])
429429 {
430- auto model_path = models [i ].substr (5 );
431- // Treat filename is provided in the CCDB path
430+ auto model_path = models [i ].substr (7 ); // Remove "ccdb://"
431+ // Treat filename if provided in the CCDB path
432432 auto extension = model_path .find (".onnx" );
433433 if (extension != std ::string ::npos )
434434 {
0 commit comments