#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>
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;}
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);
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:
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