]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSOnlineSPDscanAnalyzer.h
In Open() and GotoEvent() try the ESD operations first, fallback to run-loader.
[u/mrichter/AliRoot.git] / ITS / AliITSOnlineSPDscanAnalyzer.h
index 8a8ef7e41fc4454312e534be4779dae2e6079cbc..58cd76420ced8267459618f1f1787210c6b12806 100644 (file)
@@ -1,12 +1,16 @@
 #ifndef ALIITSONLINESPDSCANANALYZER_H
 #define ALIITSONLINESPDSCANANALYZER_H
+/* Copyright(c) 2007-2009, ALICE Experiment at CERN, All rights reserved. *
+ * See cxx source for full Copyright notice                               */
+
+/* $Id$ */
 
 ////////////////////////////////////////////////////////////
 // Author: Henrik Tydesjo                                 //
 // This class is used in the detector algorithm framework //
 // to process the data stored in special container files  //
 // (see AliITSOnlineSPDscan). For instance, minimum       //
-// threshold values can be calculated.                    //
+// threshold values can be extracted.                     //
 ////////////////////////////////////////////////////////////
 
 #include <TString.h>
@@ -19,13 +23,17 @@ class TH2F;
 class AliITSOnlineSPDscanAnalyzer {
 
  public:
-  AliITSOnlineSPDscanAnalyzer(const Char_t *fileName);
+  AliITSOnlineSPDscanAnalyzer(const Char_t *fileName, AliITSOnlineCalibrationSPDhandler *handler);
   AliITSOnlineSPDscanAnalyzer(const AliITSOnlineSPDscanAnalyzer& handle);
   ~AliITSOnlineSPDscanAnalyzer();
 
   AliITSOnlineSPDscanAnalyzer& operator=(const AliITSOnlineSPDscanAnalyzer& handle);
 
+  Bool_t     IsChipPresent(UInt_t hs, UInt_t chipNr);
+  Bool_t     IsOverWriteSet() const {return fOverWrite;}
+  void       SetCalibHandler(AliITSOnlineCalibrationSPDhandler *handler) {fHandler=handler;}
   void       SetParam(const Char_t *pname, const Char_t *pval);
+  void       ReadParamsFromLocation(const Char_t *dirName);
 
   UInt_t     GetType() const {return fType;}
   UInt_t     GetDacId() const {return fDacId;}
@@ -35,13 +43,11 @@ class AliITSOnlineSPDscanAnalyzer {
   
   Int_t      GetNrNoisyUnima(UInt_t hs, UInt_t chipNr);
 
-  Bool_t     ProcessDeadPixels(Char_t *oldCalibDir);
-  Bool_t     ProcessNoisyPixels(Char_t *oldCalibDir);
-  Bool_t     SaveDeadNoisyPixels(UInt_t module, Char_t *calibDir);
+  Bool_t     ProcessDeadPixels();
+  Bool_t     ProcessNoisyPixels();
 
   Bool_t     ProcessNrTriggers();
 
-  AliITSOnlineCalibrationSPDhandler* GetOnlineCalibrationHandler(UInt_t module);
   AliITSOnlineSPDscan* GetOnlineScan() {return fScanObj;}
   UInt_t     GetRouterNr();
   Bool_t     GetHalfStavePresent(UInt_t hs);
@@ -50,6 +56,7 @@ class AliITSOnlineSPDscanAnalyzer {
   TGraph*    GetMeanMultiplicityG(UInt_t hs, UInt_t chipNr);
   TGraph*    GetHitEventEfficiencyG(UInt_t hs, UInt_t chipNr);
   TH2F*      GetHitMapTot(UInt_t step);
+  TH2F*      GetHitMapChip(UInt_t step, UInt_t hs, UInt_t chip);
 
 
  private:
@@ -58,8 +65,9 @@ class AliITSOnlineSPDscanAnalyzer {
   TString              fFileName;       // container file name
   enum                 calibvals{kMINTH,kMEANTH,kDAC,kUNIMA,kNOISE,kDELAY};  // calib types
 
-  AliITSOnlineSPDscan               *fScanObj;      // container obj
-  AliITSOnlineCalibrationSPDhandler *fHandler[240]; // calib help objs
+  AliITSOnlineSPDscan               *fScanObj;  // container obj
+  AliITSOnlineCalibrationSPDhandler *fHandler;  // calib helper obj
+  Bool_t     fbModuleScanned[240];        // is module used in scan?
 
   TGraph*    fMeanMultiplicity[6][11];   // mean mult graphs
   TGraph*    fHitEventEfficiency[6][11]; // hit event graphs