]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSQASPDChecker.cxx
Fixes for bug #49914: Compilation breaks in trunk, and bug #48629: Trunk cannot read...
[u/mrichter/AliRoot.git] / ITS / AliITSQASPDChecker.cxx
index dd8cc115cf1f905db0b6892e138242ef17be1c83..7b3ecbc4f9ad85cf490992cd2677e5bfd6a9e2db 100644 (file)
@@ -41,7 +41,7 @@ AliITSQASPDChecker& AliITSQASPDChecker::operator = (const AliITSQASPDChecker& qa
 
 
 //__________________________________________________________________
-const Double_t AliITSQASPDChecker::Check(AliQA::ALITASK_t /*index*/, TObjArray * list) 
+Double_t AliITSQASPDChecker::Check(AliQAv1::ALITASK_t /*index*/, TObjArray * list)
 {
   AliDebug(1,Form("AliITSQASPDChecker called with offset: %d\n", fSubDetOffset));
 
@@ -61,14 +61,44 @@ const Double_t AliITSQASPDChecker::Check(AliQA::ALITASK_t /*index*/, TObjArray *
         if (!histName.Contains("_SPD")) continue;
         Double_t rv = 0.;
         if (hdata->GetEntries()>0) rv = 1;
-        AliInfo(Form("%s -> %f", hdata->GetName(), rv));
+        if (histName.Contains("LayPattern")) {
+         if (hdata->GetBinContent(1)) {
+           Double_t ratio=hdata->GetBinContent(2)/hdata->GetBinContent(1);
+           AliInfo(Form("%s: ratio RecPoints lay2 / lay1 = %f", hdata->GetName(), ratio));
+         }
+         else
+           AliInfo("No RecPoints in lay1");
+       }
+        else if(histName.Contains("ModPattern")) {
+           Int_t ndead=0;
+           for(Int_t ibin=0;ibin<hdata->GetNbinsX();ibin++) {
+             if(histName.Contains("SPD1") && ibin<80 && hdata->GetBinContent(ibin+1)>0) ndead++;
+             if(histName.Contains("SPD2") && ibin>79 && hdata->GetBinContent(ibin+1)>0) ndead++;
+           }
+           AliInfo(Form("%s: Entries = %d  number of empty modules = %d", 
+                        hdata->GetName(),(Int_t)hdata->GetEntries(),ndead));
+        }
+        else if(histName.Contains("SizeYvsZ")) {
+           Double_t meanz=hdata->GetMean(1);
+           Double_t meany=hdata->GetMean(2);
+           Double_t rmsz=hdata->GetRMS(1);
+           Double_t rmsy=hdata->GetRMS(2);
+           AliInfo(Form("%s: Cluster sizeY mean = %f  rms = %f", hdata->GetName(),meany,rmsy));
+           AliInfo(Form("%s: Cluster sizeZ mean = %f  rms = %f", hdata->GetName(),meanz,rmsz));
+        }
+        else if(histName.Contains("Multiplicity")) {
+           AliInfo(Form("%s: Events = %d  mean = %f  rms = %f",
+                        hdata->GetName(),(Int_t)hdata->GetEntries(),hdata->GetMean(),hdata->GetRMS()));}
+
+        // else AliInfo(Form("%s -> %f", hdata->GetName(), rv));
         count++;
         test += rv;
       }
-      else{
+      else {
         AliError("Data type cannot be processed") ;
       }
     }
+
     if (count != 0) {
       if (test==0) {
         AliWarning("Histograms are there, but they are all empty: setting flag to kWARNING");
@@ -82,9 +112,8 @@ const Double_t AliITSQASPDChecker::Check(AliQA::ALITASK_t /*index*/, TObjArray *
 
   AliInfo(Form("Test Result = %f", test));
   return test ;
-       
-} 
 
+}
 
 //__________________________________________________________________
 void AliITSQASPDChecker::SetTaskOffset(Int_t TaskOffset)