]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Adding connection to the grid when the default storage is set to "raw://".
authorzampolli <zampolli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 5 Oct 2009 13:39:36 +0000 (13:39 +0000)
committerzampolli <zampolli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 5 Oct 2009 13:39:36 +0000 (13:39 +0000)
STEER/AliCDBManager.cxx

index f8e6dc10f5dc5929ae787bacafbd01ca15f3208a..9c501f825979f4a72b80f7da50cdbf2ecb30e00e 100644 (file)
@@ -328,7 +328,7 @@ Bool_t AliCDBManager::Drain(AliCDBEntry *entry) {
 void AliCDBManager::SetDefaultStorage(const char* dbString) {
 // sets default storage from URI string
        
-       AliInfo(Form("Setting Default storage to: %s",dbString));
+       AliInfo(Form("CICIIIIIIIIIIIIIIII!!!!!!!!!!!!!Setting Default storage to: %s",dbString));
 
        // checking whether we are in the raw case
        TString dbStringTemp(dbString);
@@ -336,6 +336,14 @@ void AliCDBManager::SetDefaultStorage(const char* dbString) {
        {
                fRaw = kTRUE;
                AliInfo("Setting the run-number will set the corresponding OCDB for raw data reconstruction.");
+               AliInfo("Connecting to the grid...");
+               if(!gGrid) {
+                       TGrid::Connect("alien://","");
+                       if(!gGrid) {
+                               AliError("Connection to alien failed!");
+                               return;
+                       }
+               }
                return;
        }