]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliQADataMakerRec.cxx
fixing comment
[u/mrichter/AliRoot.git] / STEER / AliQADataMakerRec.cxx
index a9a6cd5797efbbc897ff29864cd3d6a2bc98c44a..daf57da567ea3f0673b41dc57e606418a7c48c9a 100644 (file)
@@ -84,12 +84,16 @@ void AliQADataMakerRec::EndOfCycle(AliQA::TASKINDEX_t task)
                list = fRecPointsQAList ; 
        else if ( task == AliQA::kESDS )
                list = fESDsQAList ; 
-       
+
+       DefaultEndOfDetectorCycle(task) ;
        EndOfDetectorCycle(task, list) ;
-       TDirectory * subDir = fDetectorDir->GetDirectory(AliQA::GetTaskName(task)) ; 
+       TDirectory * subDir = 0x0 ;
+       if (fDetectorDir) 
+               subDir = fDetectorDir->GetDirectory(AliQA::GetTaskName(task)) ; 
        if ( subDir ) {
                subDir->cd() ; 
-               list->Write() ;
+               if (list) 
+                       list->Write() ;
        }
 }
  
@@ -179,7 +183,7 @@ void AliQADataMakerRec::StartOfCycle(AliQA::TASKINDEX_t task, const Bool_t sameC
                        fOutput->Close() ; 
                fOutput = AliQA::GetQADataFile(GetName(), fRun, fCurrentCycle) ;        
        }       
-       AliDebug(1, Form(" Run %d Cycle %d task %s file %s", 
+       AliInfo(Form(" Run %d Cycle %d task %s file %s", 
                                 fRun, fCurrentCycle, AliQA::GetTaskName(task).Data(), fOutput->GetName() )) ;
 
        fDetectorDir = fOutput->GetDirectory(GetDetectorDirName()) ; 
@@ -199,11 +203,12 @@ void AliQADataMakerRec::StartOfCycle(AliQA::TASKINDEX_t task, const Bool_t sameC
          list = fRecPointsQAList ;
   else if ( task == AliQA::kESDS )  
          list = fESDsQAList ;
-
-       TIter next(list) ;
-       TH1 * h ; 
-       while ( (h = dynamic_cast<TH1 *>(next())) )
-               h->Reset() ;  
+       
+// Should be the choice of detectors
+//     TIter next(list) ;
+//     TH1 * h ; 
+//     while ( (h = dynamic_cast<TH1 *>(next())) )
+//             h->Reset() ;  
 
        StartOfDetectorCycle() ; 
 }