Ref storage set in initialisation
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 4 Mar 2009 09:14:36 +0000 (09:14 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 4 Mar 2009 09:14:36 +0000 (09:14 +0000)
STEER/AliQAManager.cxx

index 48753e0..1c4dcf1 100644 (file)
@@ -128,7 +128,12 @@ AliQAManager::AliQAManager(const Char_t * mode, const Char_t* gAliceFilename) :
                        fQACycles[iDet]    = 999999 ;
       fQAWriteExpert[iDet] = kTRUE ;
                }
-       }          
+       }         
+  // set the default storage
+  TString sto(AliQA::GetQARefStorage()) ;
+    if (sto.IsNull()) 
+      AliFatal("QA reference storage not set do: AliQA::SetQARefStorage") ; 
+  SetDefaultStorage(sto.Data());
 }
 
 //_____________________________________________________________________________
@@ -160,6 +165,11 @@ AliQAManager::AliQAManager(const AliQAManager & qas) :
                fQACycles[iDet]       = qas.fQACycles[iDet] ;   
     fQAWriteExpert[iDet] = qas.fQAWriteExpert[iDet] ;
   }
+  // set the default storage
+    TString sto(AliQA::GetQARefStorage()) ;
+    if (sto.IsNull()) 
+      AliFatal("QA reference storage not set do: AliQA::SetQARefStorage") ; 
+    SetDefaultStorage(sto.Data());
 }
 
 //_____________________________________________________________________________