]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSQASSDDataMakerRec.h
Bug fix. This eliminates a compilation warning. (R. Shahoyan)
[u/mrichter/AliRoot.git] / ITS / AliITSQASSDDataMakerRec.h
index dab527ea7c08014c192e9219972ddd2e3695f976..1a83f33d5f68efe414dfec51a5f40adcf5b4bc6d 100644 (file)
@@ -3,7 +3,7 @@
 /* Copyright(c) 2007-2009, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
 
-/*  $Id:$  */
+/*  $Id$  */
 
 //
 //  Checks the quality assurance. 
 
 class TObjArray;
 class TH1D;
-class AliRawReader;
 
+class AliRawReader;
 class AliITSQADataMakerRec;
+class AliCDBManager;
 
 class AliITSQASSDDataMakerRec: public TObject {
 
@@ -36,13 +37,20 @@ public:
   virtual void StartOfDetectorCycle();
   virtual void EndOfDetectorCycle(AliQA::TASKINDEX_t task, TObjArray * list);
   virtual ~AliITSQASSDDataMakerRec(); // dtor
-  inline Int_t Raws() { return fSSDhRaws; }
-  inline Int_t Recs() { return fSSDhRecs; }
+
+  Int_t GetOffset(AliQA::TASKINDEX_t task);
+  Int_t GetTaskHisto(AliQA::TASKINDEX_t task);
 
  private:
 
-  Double_t GetSSDOccupancyRaws(TH1 *lHisto, Int_t stripside); 
-  
+  void GetOccupancyStrip(TH1 *lHisto, Int_t *occupancyMatrix); 
+  Double_t GetOccupancyModule(TH1 *lHisto, 
+                             Int_t stripside,
+                             Int_t mode,
+                             Double_t threshold); 
+  void MonitorOCDBObjects();
+
+  static const Int_t fgkNumOfLDCs = 3;      //number of SSD LDCs
   static const Int_t fgkNumOfDDLs = 16;      //number of SSD DDLs
   static const Int_t fgkSSDMODULES = 1698;      //total number of SSD modules
   static const Int_t fgkSSDLADDERSLAYER5 = 34; //ladders on layer 5
@@ -54,18 +62,23 @@ public:
   static const Int_t fgkNumberOfPSideStrips = 768; //number of P-side strips
   
   AliITSQADataMakerRec *fAliITSQADataMakerRec;  //pointer to the main ctor
-  Int_t fSSDEvent;                              //event counter
+  Int_t   fSSDEvent;                            //event counter
+  Int_t   fSSDEventPerCycle;                    //event counter per cycle
   Bool_t  fkOnline;                             //online (1) or offline (0) use
   Int_t   fLDC;                                 //LDC number (0 for offline, 1 to 4 for online) 
-  Int_t   fSSDhRaws;                            // number of histo booked for Raws SSD
-  Int_t   fSSDhRecs;                            // number of histo booked for Recs SSD
-  Int_t   fRawsOffset;                          // number of histo booked when SSD start
-  Int_t   fRecsOffset;                          // number of histo booked when SSD start
-  TH1D *fHistSSDRawSignalModule[fgkSSDMODULES]; //raw signal vs strip number - SSD
-  ClassDef(AliITSQASSDDataMakerRec,1)           // description 
+  Int_t   fSSDRawsOffset;                       //SSD raw data plot offset
+  Int_t   fSSDRawsDAOffset;                     //SSD DA plot offset
+  Int_t   fSSDRawsCommonLevelOffset;            //Raw data QA - top level offset - histos used both online and offline 
+  Int_t   fSSDhRawsTask;                        //number of histo booked for the raws SSD task 
+  Int_t   fSSDhRecPointsTask;                   //number of histo booked for the recpoints SSD task
+  Int_t   fGenRawsOffset;                       //qachecking raws       offset
+  Int_t   fGenRecPointsOffset;                  //qachecking recpoints  offset
+  TH1D   *fHistSSDRawSignalModule[fgkSSDMODULES]; //raw signal vs strip number - SSD                   
+  Int_t   fOccupancyMatrix[fgkSSDMODULES][2*fgkNumberOfPSideStrips]; //occupancy values per strip
+
+  AliCDBManager *fCDBManager; //CDB manager
 
+  ClassDef(AliITSQASSDDataMakerRec,5)           // description 
 };
 
 #endif
-