adapted macro to QAManager
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 30 Jun 2009 08:43:59 +0000 (08:43 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 30 Jun 2009 08:43:59 +0000 (08:43 +0000)
test/QA/Save2OCDB.C

index 8f74199..c8fec2e 100644 (file)
@@ -1,12 +1,12 @@
-void Save2OCDB(Int_t runNumber=0) 
+void Save2OCDB(Char_t * det, Int_t runNumber=0) 
 {
   // Save QA data generated by DataMaker into OCDB
   const char * kYear = "09" ; 
   // where ? 
   //AliQA::SetQARefStorage(Form("%s%s/", AliQA::GetQARefDefaultStorage(), kYear)) ;
-  AliQA::SetQARefStorage("local://$ALICE_ROOT/QAref/TOF/QA") ;
-  AliQA::SetQARefDataDirName(AliQA::kLowMul) ; //Event Specie
-  AliQADataMakerSteer qas ; 
-  qas.Save2OCDB(runNumber, AliRecoParam::kLowMult, kYear, "TOF") ; 
+  AliQAv1::SetQARefStorage(Form("local://$ALICE_ROOT/QAref/%s/QA", det)) ;
+  AliQAv1::SetQARefDataDirName(AliRecoParam::kLowMult) ; //Event Specie
+  AliQAManager *qam = AliQAManager::QAManager("rec") ; 
+  qam->Save2OCDB(runNumber, AliRecoParam::kLowMult, kYear, det) ; 
 }