]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDCalibPadStatus.h
Fix Coverity defects
[u/mrichter/AliRoot.git] / TRD / AliTRDCalibPadStatus.h
index 1a146adaedceab37e8bbb3281671020227e26e2f..7467c568632be3db46c595dea4efacdef9b359f8 100644 (file)
@@ -20,9 +20,12 @@ class AliTRDCalDet;
 class AliTRDCalPad;
 class AliTRDCalROC;
 class AliTRDCalPadStatus;
-class AliTRDRawStreamV2;
+class AliTRDrawStreamBase;
 class AliTRDgeometry;
 
+class AliTRDdigitsManager;
+class AliTRDSignalIndex;
+
 struct eventHeaderStruct;
 
 class AliTRDCalibPadStatus : public TObject {
@@ -35,17 +38,22 @@ public:
 
   AliTRDCalibPadStatus& operator = (const  AliTRDCalibPadStatus &source);
 
-  Int_t ProcessEvent(AliTRDRawStreamV2 *rawStream, Bool_t nocheck = kFALSE);
+  Int_t ProcessEvent(AliTRDrawStreamBase *rawStream, Bool_t nocheck = kFALSE);
   Int_t ProcessEvent(AliRawReader    *rawReader, Bool_t nocheck = kFALSE);
-  Int_t ProcessEvent(eventHeaderStruct   *event, Bool_t nocheck = kFALSE);
-
+  Int_t ProcessEvent(const eventHeaderStruct   *event, Bool_t nocheck = kFALSE);
+  Int_t ProcessEvent2(AliRawReader    *rawReader);
+  void  Destroy();
   Int_t UpdateHisto(const Int_t idet, const Int_t iRow, const Int_t iCol,
                    const Int_t signal, const Int_t crowMax, const Int_t ccold, const Int_t icMcm);
 
+  Int_t UpdateHisto2(const Int_t idet, const Int_t iRow, const Int_t iCol,
+                    const Int_t signal, const Int_t crowMax, const Int_t ccold, const Int_t icMcm, const Int_t icRob);
+
   void AnalyseHisto();
   AliTRDCalPadStatus *CreateCalPadStatus();
   AliTRDCalPad *CreateCalPad();
-  AliTRDCalDet *CreateCalDet();
+  AliTRDCalDet *CreateCalDet() const;
 
   void SetCalRocMean(AliTRDCalROC *mean, Int_t det);
   void SetCalRocRMS(AliTRDCalROC *rms, Int_t det);  
@@ -62,7 +70,7 @@ public:
 
   TH2F* GetHisto  (Int_t det, Bool_t force=kFALSE);              // get refernce histogram
   
-  void  DumpToFile(const Char_t *filename, const Char_t *dir="", const Bool_t append=kFALSE);
+  void  DumpToFile(const Char_t *filename, const Char_t *dir="", Bool_t append=kFALSE);
   //
   Int_t   GetAdcMin()       const { return fAdcMin;       }
   Int_t   GetAdcMax()       const { return fAdcMax;       }
@@ -70,7 +78,7 @@ public:
   void    SetRangeAdc (Int_t aMin, Int_t aMax){ fAdcMin=aMin; fAdcMax=aMax; }  // Set adc range 
 
 
-  Bool_t TestEventHisto(Int_t nevent, Int_t sm);  //test the fast approach to fill histograms  
+  Bool_t TestEventHisto(Int_t nevent, Int_t sm, Int_t ch);  //test the fast approach to fill histograms  
 
  private:
 
@@ -95,11 +103,11 @@ public:
  
   TH2F* GetHisto(Int_t det, TObjArray *arr,
                 Int_t nbinsY, Float_t ymin, Float_t ymax,
-                Char_t *type, Bool_t force);
+                const Char_t *type, Bool_t force);
 
   // Some basic geometry function
-  virtual Int_t    GetPlane(Int_t d) const;
-  virtual Int_t    GetChamber(Int_t d) const;
+  virtual Int_t    GetLayer(Int_t d) const;
+  virtual Int_t    GetStack(Int_t d) const;
   virtual Int_t    GetSector(Int_t d) const;
 
   ClassDef(AliTRDCalibPadStatus,1)
@@ -107,3 +115,4 @@ public:
 };
 #endif
 
+