]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - VZERO/AliVZEROQADataMakerSim.cxx
Make and print an image of QA user flagged histograms (Yves)
[u/mrichter/AliRoot.git] / VZERO / AliVZEROQADataMakerSim.cxx
index 91e4bb20a83bf641ecfe90cc8e037306543a10f8..bfc0c23ea44e43a6aedf17e80fb09a14313239d1 100644 (file)
@@ -41,7 +41,7 @@ ClassImp(AliVZEROQADataMakerSim)
            
 //____________________________________________________________________________ 
   AliVZEROQADataMakerSim::AliVZEROQADataMakerSim() : 
-  AliQADataMakerSim(AliQA::GetDetName(AliQA::kVZERO), "VZERO Quality Assurance Data Maker")
+  AliQADataMakerSim(AliQAv1::GetDetName(AliQAv1::kVZERO), "VZERO Quality Assurance Data Maker")
 
 {
   // constructor
@@ -68,11 +68,11 @@ AliVZEROQADataMakerSim& AliVZEROQADataMakerSim::operator = (const AliVZEROQAData
   return *this;
 }
 //____________________________________________________________________________
-void AliVZEROQADataMakerSim::EndOfDetectorCycle(AliQA::TASKINDEX_t task, TObjArray ** list)
+void AliVZEROQADataMakerSim::EndOfDetectorCycle(AliQAv1::TASKINDEX_t task, TObjArray ** list)
 {
   //Detector specific actions at end of cycle
   // do the QA checking
-  AliQAChecker::Instance()->Run(AliQA::kVZERO, task, list) ;
+  AliQAChecker::Instance()->Run(AliQAv1::kVZERO, task, list) ;
 }
 
  
@@ -81,14 +81,16 @@ void AliVZEROQADataMakerSim::InitHits()
 {
  
   // create Hits histograms in Hits subdir
+  const Bool_t expert   = kTRUE ; 
+  const Bool_t image    = kTRUE ; 
   
   TH1I * h0 = new TH1I("hHitMultiplicity", "Hit multiplicity distribution in VZERO", 300, 0, 299) ; 
   h0->Sumw2() ;
-  Add2HitsList(h0, 0) ;  
+  Add2HitsList(h0, 0, !expert, image) ;  
   
   TH1I * h1 = new TH1I("hHitCellNumber", "Hit cell distribution in VZERO", 80, 0, 79) ; 
   h1->Sumw2() ;
-  Add2HitsList(h1, 1) ;  
+  Add2HitsList(h1, 1, !expert, image) ;  
     
 }
 
@@ -96,7 +98,8 @@ void AliVZEROQADataMakerSim::InitHits()
 void AliVZEROQADataMakerSim::InitDigits()
 {
   // create Digits histograms in Digits subdir
-
+  const Bool_t expert   = kTRUE ; 
+  const Bool_t image    = kTRUE ; 
   
   char TDCname[100];
   char ADCname[100];
@@ -107,7 +110,7 @@ void AliVZEROQADataMakerSim::InitDigits()
   // create Digits histograms in Digits subdir
   TH1I * h0 = new TH1I("hDigitMultiplicity", "Digits multiplicity distribution in VZERO", 100, 0, 99) ; 
   h0->Sumw2() ;
-  Add2DigitsList(h0, 0) ;
+  Add2DigitsList(h0, 0, !expert, image) ;
   
   for (Int_t i=0; i<64; i++)
     {
@@ -119,8 +122,8 @@ void AliVZEROQADataMakerSim::InitDigits()
        sprintf(texte,"Digit ADC in cell %d",i);
        fhDigADC[i]= new TH1I(ADCname,texte,1024,0.,1023.);
        
-       Add2DigitsList(fhDigTDC[i],i+1);
-       Add2DigitsList(fhDigADC[i],i+1+64);  
+       Add2DigitsList(fhDigTDC[i],i+1, !expert, image);
+       Add2DigitsList(fhDigADC[i],i+1+64, !expert, image);  
      }  
 }