]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
small correction - Setters and getters for EventSpecie for SDD added (Melinda)
authormasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 21 Jul 2011 07:47:06 +0000 (07:47 +0000)
committermasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 21 Jul 2011 07:47:06 +0000 (07:47 +0000)
ITS/AliITSQAChecker.cxx
ITS/AliITSQASDDChecker.cxx
ITS/AliITSQASDDChecker.h

index 4cd78b559bb75e07f4baf805a3d766bf23c416ac..49ad9eb5e71bd0615378efb8575946bb7dc24be5 100644 (file)
@@ -293,6 +293,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];
index ce01fb4de7acc8f22143f4623ed0bfdcef7d035e..e50955bbaf42a4405d3cd63819ed210b474ffcd0 100644 (file)
@@ -406,7 +406,8 @@ Double_t AliITSQASDDChecker::Check(AliQAv1::ALITASK_t index, const TObjArray * l
          AliWarning(Form(" Layer 3: %i good module(s) and %i good single drift regions didn't take data! \n",emptyactivemoduleperlayer[0] ,emptyactivedrperlayer[0] ));
          AliWarning(Form(" Layer 4: %i good module(s) and %i good single drift regions didn't take data! \n",emptyactivemoduleperlayer[1] ,emptyactivedrperlayer[1] ));
          //printf("========================= %d",AliQAv1::Instance(AliQAv1::GetDetIndex(GetName()))->IsEventSpecieSet(AliRecoParam::kCosmic));
-         if((AliQAv1::Instance(AliQAv1::GetDetIndex("ITS")))->IsEventSpecieSet(AliRecoParam::kCosmic)==kFALSE){     
+         //      if((AliQAv1::Instance(AliQAv1::GetDetIndex("ITS")))->IsEventSpecieSet(AliRecoParam::kCosmic)==kFALSE){     
+         if(AliRecoParam::Convert(GetEventSpecieForCheck())!=AliRecoParam::kCosmic){     
            
            results1.Form("%i good module(s) and %i good drift regions didn't take data!",emptydiff,emptydrdiff);
            if(neventsraw<numlimit)
@@ -423,21 +424,22 @@ Double_t AliITSQASDDChecker::Check(AliQAv1::ALITASK_t index, const TObjArray * l
              }
          }
          else
-           if((AliQAv1::Instance(AliQAv1::GetDetIndex("ITS")))->IsEventSpecieSet(AliRecoParam::kCosmic)==kTRUE)
-             {
+           //      if((AliQAv1::Instance(AliQAv1::GetDetIndex("ITS")))->IsEventSpecieSet(AliRecoParam::kCosmic)==kTRUE)
+           if(AliRecoParam::Convert(GetEventSpecieForCheck())==AliRecoParam::kCosmic)
+             {     
                numlimit=10000;
                if(neventsraw<numlimit)
                  {
                    AliWarning(Form("This is a cosmic run. Some module and drift region are empty but all is OK. "));
-                   results1.Form("OK. Thi is a cosmic run. you need a lot of events");
+                   results1.Form("OK. This is a cosmic run. you need a lot of events. Events %i",neventsraw);
                    results2.Form("%i good module(s) and %i good drift are empty! DO NOT CALL THE EXPERT",emptydiff,emptydrdiff);
                    color=5;
                    sddQACheckerValue=fHighSDDValue[AliQAv1::kWARNING];
                  }
                else
                  {
-                   results1.Form("%i good module(s) and %i good drift region(s) have not recpoints!",emptydiff,emptydrdiff);
-                   results2.Form(" Events %d .Follow the TWiki instruction and call the Expert ",neventsraw);
+                   results1.Form("%i good module(s) and %i good drift region(s) have no data!",emptydiff,emptydrdiff);
+                   results2.Form(" Cosmic Events %d .Follow the TWiki instruction and call the Expert ",neventsraw);
                    color=2;
                    sddQACheckerValue=fHighSDDValue[AliQAv1::kERROR];
                  }
@@ -878,8 +880,9 @@ Double_t AliITSQASDDChecker::Check(AliQAv1::ALITASK_t index, const TObjArray * l
          Int_t numlimits=1000;   
 
          results1.Form("%i good module(s) and %i good drift region(s) have not recpoints!",emptydiff,emptydrdiff);
-         if((AliQAv1::Instance(AliQAv1::GetDetIndex("ITS")))->IsEventSpecieSet(AliRecoParam::kCosmic)==kFALSE)
-           {
+         //      if((AliQAv1::Instance(AliQAv1::GetDetIndex("ITS")))->IsEventSpecieSet(AliRecoParam::kCosmic)==kFALSE)
+         if(AliRecoParam::Convert(GetEventSpecieForCheck())!=AliRecoParam::kCosmic){     
+           
              if(neventsrecpoints<numlimits)
                {
                  results2.Form(" Events %d .Too few events.DO NOT CALL the Expert ",neventsrecpoints);
@@ -894,13 +897,13 @@ Double_t AliITSQASDDChecker::Check(AliQAv1::ALITASK_t index, const TObjArray * l
                }
            }
          else
-           if((AliQAv1::Instance(AliQAv1::GetDetIndex("ITS")))->IsEventSpecieSet(AliRecoParam::kCosmic)==kTRUE)
-             {
+           //if((AliQAv1::Instance(AliQAv1::GetDetIndex("ITS")))->IsEventSpecieSet(AliRecoParam::kCosmic)==kTRUE)
+           if(AliRecoParam::Convert(GetEventSpecieForCheck())==AliRecoParam::kCosmic){     
                numlimit=10000;
-               if(neventsrecpoints<numlimit)
+               if( neventsrecpoints<numlimit)
                  {
                    AliWarning(Form("This is a cosmic run. Some module and drift region are empty but all is OK. "));
-                   results1.Form("OK. Thi is a cosmic run. You need a lot of events");
+                   results1.Form("OK. Thi is a cosmic run. You need a lot of events. Events %i",neventsrecpoints);
                    results2.Form("%i good module(s) and %i good drift are empty! DO NOT CALL THE EXPERT",emptydiff,emptydrdiff);
                    color=5;
                    sddQACheckerValue=fHighSDDValue[AliQAv1::kWARNING];
@@ -908,7 +911,7 @@ Double_t AliITSQASDDChecker::Check(AliQAv1::ALITASK_t index, const TObjArray * l
                else
                  {
                    results1.Form("%i good module(s) and %i good drift region(s) have not recpoints!",emptydiff,emptydrdiff);
-                   results2.Form(" Events %d .Follow the TWiki instruction and call the Expert ",neventsrecpoints);
+                   results2.Form("Cosmic Events %d .Follow the TWiki instruction and call the Expert ",neventsrecpoints);
                    color=2;
                    sddQACheckerValue=fHighSDDValue[AliQAv1::kERROR];
                  }
index 39dc2b8c0287efe159fe0789e672b37148150d96..911c041947eaf27a8face1de78dfb54ee893818b 100644 (file)
@@ -44,7 +44,8 @@ public:
        fCalibration(NULL),
        fThresholdForRelativeOccupancy(0.01),
         fThresholdForRecToRawRatio(0.04),
-        fImage(NULL)
+       fImage(NULL),
+       fESforCheck(0)
        {;}          // ctor
   AliITSQASDDChecker& operator = (const AliITSQASDDChecker& qac) ; //operator =
   virtual ~AliITSQASDDChecker(); // dtor
@@ -53,6 +54,8 @@ public:
   virtual void SetStepBit(const Double_t *steprange);
   virtual Double_t *GetStepBit(){return fStepBitSDD;};
   virtual void SetSDDLimits(const Float_t *lowvalue, const Float_t * highvalue);
+  void SetEventSpecieForCheck(Int_t esforcheck=0){ fESforCheck=esforcheck;}
+  Int_t GetEventSpecieForCheck(){return  fESforCheck;}
 
   virtual Bool_t   MakeSDDImage( TObjArray ** list, AliQAv1::TASKINDEX_t task, AliQAv1::MODE_t mode) ; 
   Bool_t MakeSDDRawsImage(TObjArray ** list, AliQAv1::TASKINDEX_t task, AliQAv1::MODE_t mode );//{AliInfo("The method for raw image has been called\n");}
@@ -69,7 +72,8 @@ public:
     fCalibration(qac.fCalibration),
     fThresholdForRelativeOccupancy(qac.fThresholdForRelativeOccupancy),
     fThresholdForRecToRawRatio(qac.fThresholdForRecToRawRatio),
-    fImage(qac.fImage) 
+    fImage(qac.fImage),
+    fESforCheck(qac.fESforCheck) 
       {;} // cpy ctor   
 
     Int_t fSubDetOffset;            // checking operation starting point
@@ -84,10 +88,12 @@ public:
     
     TCanvas **    fImage          ; //[AliRecoParam::kNSpecies] 
 
+    Int_t fESforCheck; //eventspecie of the list to check
+
     static const Int_t fgknSDDmodules = 260; // number of SDD modules
     static const Int_t fgkmodoffset = 240;   // number of SPD modules
 
-    ClassDef(AliITSQASDDChecker,5)  // description 
+    ClassDef(AliITSQASDDChecker,6)  // description 
       
 };