take into account changing LHC periods between runs
authorjgrosseo <jgrosseo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 19 May 2008 13:20:14 +0000 (13:20 +0000)
committerjgrosseo <jgrosseo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 19 May 2008 13:20:14 +0000 (13:20 +0000)
SHUTTLE/AliShuttle.cxx

index a7c8aa4..9385047 100644 (file)
@@ -1272,12 +1272,11 @@ Bool_t AliShuttle::Process(AliShuttleLogbookEntry* entry)
                return 0; 
        }       
        
-       if (fgkMainCDB.Length() == 0)
-               fgkMainCDB = Form("alien://folder=%s%d/%s/OCDB?user=alidaq?cacheFold=/tmp/OCDBCache", 
+       // build cdb paths (repeat each time, LHCperiod might have changed)
+       fgkMainCDB.Form("alien://folder=%s%d/%s/OCDB?user=alidaq?cacheFold=/tmp/OCDBCache", 
                                        fConfig->GetAlienPath(), GetCurrentYear(), lhcPeriod.Data());
        
-       if (fgkMainRefStorage.Length() == 0)
-               fgkMainRefStorage = Form("alien://folder=%s%d/%s/Reference?user=alidaq?cacheFold=/tmp/OCDBCache", 
+       fgkMainRefStorage.Form("alien://folder=%s%d/%s/Reference?user=alidaq?cacheFold=/tmp/OCDBCache", 
                                        fConfig->GetAlienPath(), GetCurrentYear(), lhcPeriod.Data());
        
        // Loop on detectors in the configuration