remoe duplicate QA initialisation and do ESD QA for same detectors as RecPoint QA
authorschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 17 Apr 2008 20:32:38 +0000 (20:32 +0000)
committerschutz <schutz@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 17 Apr 2008 20:32:38 +0000 (20:32 +0000)
STEER/AliReconstruction.cxx

index ce2cc23..fd73e53 100644 (file)
@@ -840,22 +840,23 @@ Bool_t AliReconstruction::InitRun(const char* input)
        }
        // checking the QA of previous steps
        //CheckQA() ; 
+
        if (fRunQA) {
-     TString detStr(fFillESD); 
-     for (Int_t iDet = 0; iDet < fgkNDetectors; iDet++) {
-        if (!IsSelected(fgkDetectorName[iDet], detStr)) continue;
-        AliQADataMakerRec *qadm = GetQADataMaker(iDet);  
-        if (!qadm) continue;
-        AliInfo(Form("Initializing the QA data maker for %s", 
-               fgkDetectorName[iDet]));
-
-               qadm->Init(AliQA::kRECPOINTS, AliCDBManager::Instance()->GetRun());
-               qadm->Init(AliQA::kESDS, AliCDBManager::Instance()->GetRun());
-                if (!fInLoopQA) {
-                       qadm->StartOfCycle(AliQA::kRECPOINTS, fSameQACycle);
-                       qadm->StartOfCycle(AliQA::kESDS,"same");
-        }
-     }
+ //    TString detStr(fFillESD); 
+//     for (Int_t iDet = 0; iDet < fgkNDetectors; iDet++) {
+//        if (!IsSelected(fgkDetectorName[iDet], detStr)) continue;
+//        AliQADataMakerRec *qadm = GetQADataMaker(iDet);  
+//        if (!qadm) continue;
+//        AliInfo(Form("Initializing the QA data maker for %s", 
+//               fgkDetectorName[iDet]));
+//
+//             qadm->Init(AliQA::kRECPOINTS, AliCDBManager::Instance()->GetRun());
+//             qadm->Init(AliQA::kESDS, AliCDBManager::Instance()->GetRun());
+//              if (!fInLoopQA) {
+//                     qadm->StartOfCycle(AliQA::kRECPOINTS, fSameQACycle);
+//                     qadm->StartOfCycle(AliQA::kESDS,"same");
+//        }
+//     }
          if (fRunGlobalQA) {
                  AliQADataMakerRec *qadm = GetQADataMaker(AliQA::kGLOBAL);
                  AliInfo(Form("Initializing the global QA data maker"));
@@ -1295,7 +1296,7 @@ Bool_t AliReconstruction::FinishRun()
                  qas.SetEventRange(fFirstEvent, fLastEvent) ; 
                  qas.Run(fRunLocalReconstruction.Data(), AliQA::kRECPOINTS, fSameQACycle);
                  //qas.Reset() ;
-                 qas.Run(fRunTracking.Data(), AliQA::kESDS, fSameQACycle);
+                 qas.Run(fRunLocalReconstruction.Data(), AliQA::kESDS, fSameQACycle);
                  if (fRunGlobalQA) {
                         AliQADataMakerRec *qadm = GetQADataMaker(AliQA::kGLOBAL);
                          if (qadm) {