]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSQAChecker.cxx
load AddTaskEmcalJet.C
[u/mrichter/AliRoot.git] / ITS / AliITSQAChecker.cxx
index daec1eab7d455fe5e48f3c37f77d1a339873e429..457659953b9abaf1aec8f04f00712f260a90365f 100644 (file)
@@ -1,4 +1,4 @@
-/**************************************************************************
+ /**************************************************************************
  * Copyright(c) 2007-2009, ALICE Experiment at CERN, All rights reserved. *
  *                                                                        *
  * Author: The ALICE Off-line Project.                                    *
@@ -69,34 +69,6 @@ fSSDChecker(0)  // SSD Checker
   InitQACheckerLimits();
 }
 
-//____________________________________________________________________________
-AliITSQAChecker::AliITSQAChecker(const AliITSQAChecker& qac):
-AliQACheckerBase(qac.GetName(), qac.GetTitle()), 
-fkOnline(qac.fkOnline), 
-fDet(qac.fDet), 
-fLDC(qac.fLDC), 
-fSPDOffset(qac.fSPDOffset), 
-fSDDOffset(qac.fSDDOffset), 
-fSSDOffset(qac.fSSDOffset), 
-fSPDHisto(qac.fSPDHisto),
-fSDDHisto(qac.fSDDHisto),
-fSSDHisto(qac.fSSDHisto),
-fSPDChecker(qac.fSPDChecker), 
-fSDDChecker(qac.fSDDChecker), 
-fSSDChecker(qac.fSSDChecker)
-{
-  // copy constructor
-  AliError("Copy should not be used with this class\n");
-}
-//____________________________________________________________________________
-AliITSQAChecker& AliITSQAChecker::operator=(const AliITSQAChecker& qac){
-  // assignment operator
-  this->~AliITSQAChecker();
-  new(this)AliITSQAChecker(qac);
-  return *this;
-}
-
-
 //____________________________________________________________________________
 AliITSQAChecker::~AliITSQAChecker(){
   // destructor
@@ -293,6 +265,7 @@ void AliITSQAChecker::Check(Double_t * rv, AliQAv1::ALITASK_t index, TObjArray *
            //drift
            if(fDet == 0 || fDet == 2) {
              fSDDChecker->SetTaskOffset(fSDDOffset);
+             fSDDChecker->SetEventSpecieForCheck(specie);
              Double_t histoSDD=double(GetSDDHisto());
              if(AliITSQADataMakerRec::AreEqual(histoSDD,0)==kFALSE){
                Double_t *stepSDD=new Double_t[AliQAv1::kNBIT];
@@ -359,6 +332,7 @@ void AliITSQAChecker::SetHisto(Int_t SPDhisto, Int_t SDDhisto, Int_t SSDhisto)
  //____________________________________________________________________________
  void AliITSQAChecker::SetDetTaskOffset(Int_t subdet,Int_t offset)
  {
+   //returns the offset for each task and for each subdetector
    switch(subdet){
    case 1:
      SetSPDTaskOffset(offset);
@@ -379,6 +353,7 @@ void AliITSQAChecker::SetHisto(Int_t SPDhisto, Int_t SDDhisto, Int_t SSDhisto)
  //____________________________________________________________________________
  void AliITSQAChecker::SetDetHisto(Int_t subdet,Int_t histo)
  {
+   //set the number od histograms for the subdetector
    switch(subdet){
    case 1:
      SetSPDHisto(histo);
@@ -400,7 +375,7 @@ void AliITSQAChecker::SetHisto(Int_t SPDhisto, Int_t SDDhisto, Int_t SSDhisto)
 
 void AliITSQAChecker::InitQACheckerLimits()
 {
-  
+  //init the tolerance range for each QA bit 
   AliInfo("Setting of tolerance values\n");
 
   Float_t lowtolerancevalue[AliQAv1::kNBIT];
@@ -433,6 +408,7 @@ void AliITSQAChecker::InitQACheckerLimits()
 
 void AliITSQAChecker::CreateStepForBit(Double_t histonumb,Double_t *steprange)
 {
+  //creation of the step bit for each QA bit 
   for(Int_t bit=0;bit < AliQAv1::kNBIT; bit++)
     {       
       //printf("%i\t %f \t %f \t %f \n",bit, fUpTestValue[bit],fLowTestValue[AliQAv1::kINFO],histonumb);
@@ -446,7 +422,7 @@ void AliITSQAChecker::CreateStepForBit(Double_t histonumb,Double_t *steprange)
 //_____________________________________________________________________________
 void AliITSQAChecker::SetQA(AliQAv1::ALITASK_t index, Double_t * value) const
 {
-
+  //Setting of the QA tolerance values
   AliQAv1 * qa = AliQAv1::Instance(index) ;
 
 
@@ -476,7 +452,7 @@ void AliITSQAChecker::SetQA(AliQAv1::ALITASK_t index, Double_t * value) const
 //__________________________________________________________________
 void  AliITSQAChecker::MakeImage( TObjArray ** list, AliQAv1::TASKINDEX_t task, AliQAv1::MODE_t mode)
 {
-
+  //make a summary image
   //gStyle->SetPalette(1);
 
   //Int_t nImages = 0 ;
@@ -492,7 +468,12 @@ void  AliITSQAChecker::MakeImage( TObjArray ** list, AliQAv1::TASKINDEX_t task,
       TString cln(hdata->ClassName()) ; 
       if ( ! cln.Contains("TH") )
         continue ; 
-      if(cln.Contains("TH2")) hdata->SetOption("colz");
+      if(cln.Contains("TH2")) 
+       {
+         Float_t min=hdata->GetMinimum();
+         Float_t max=hdata->GetMaximum();
+         if(max>min) hdata->SetOption("colz");
+       }
     }
     break ; 
   }