]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
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 a7c8aa486ff41191f30dee616fc0423789ba7068..9385047de85b9ba9320148e3540a2d9ecab849a1 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