]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDPreprocessor.h
Fix Coverity defects
[u/mrichter/AliRoot.git] / TRD / AliTRDPreprocessor.h
index 441e8a222db861872162435c91b105a854be14d9..1c51fe736631521c838dd645ec40435dca694485 100644 (file)
 
 #include "AliPreprocessor.h"
 
+class TMap;
+class AliTRDCalDCS;
+class AliTRDCalROC;
+class AliTRDCalSingleChamberStatus;
+
 class AliTRDPreprocessor : public AliPreprocessor
 {
 
 public:
+ public:
 
-    AliTRDPreprocessor(AliShuttleInterface *shuttle);
-    virtual ~AliTRDPreprocessor();
+  AliTRDPreprocessor(AliShuttleInterface *shuttle);
+  AliTRDPreprocessor(const AliTRDPreprocessor &org);
+  virtual ~AliTRDPreprocessor();
 
-    enum {
-       EExtractDCS    =   1  // error in case of failure by extracting DCS variables
-      ,EStoreRefDCS   =   2  // error in case of failure by storing DCS variables references
-      ,EFitDCS        =   4  // error in case of failure by fitting DCS variables
-      ,EStoreDCS      =   8  // error in case of failure by storing DCS variables fit results
-      ,EListFileHLT   =  16  // error in case of failure by taking the listof HLT files
-      ,EOpenFileHLT   =  32  // error in case of failure by opening the HLTfile
-      ,ETakeHistoHLT  =  64  // error in case of failure by taking the histos HLT
-      ,EStoreHistoHLT = 128  // error in case of failure by storing the reference data HLT
-      ,EFitHistoHLT   = 256  // error in case of failure by fitting the histos HLT
-      ,EStoreCalHLT   = 512  // error in case of failure by storing the HLTcal objects
-    };
 
 protected:
+ protected:
 
-    virtual void   Initialize(Int_t run, UInt_t startTime, UInt_t endTime);
-    virtual UInt_t Process(TMap* dcsAliasMap);
+  virtual void    Initialize(Int_t run, UInt_t startTime, UInt_t endTime);
+  virtual UInt_t  Process(TMap *dcsAliasMap);
 
-  private:
-    
-    ClassDef(AliTRDPreprocessor,1) // The SHUTTLE preprocessor for TRD
+          Bool_t  ExtractHalfChamberStatusDAQ();
+          Bool_t  ExtractPedestals();
+          Bool_t  ExtractDriftVelocityDAQ();
+          Bool_t  ExtractHLT();
+          Bool_t  ProcessDCS();
+          Bool_t  ProcessDCS(TMap *dcsAliasMap);
+         AliTRDPreprocessor& operator = (const AliTRDPreprocessor& rhs);
 
-};
+ private:
+         
+         AliTRDCalDCS* fCalDCSObjSOR;    // 
+         AliTRDCalDCS* fCalDCSObjEOR;    // 
+
+         Bool_t  fVdriftHLT;             // HLT Vdrift
+         UInt_t  ProcessDCSConfigData(); // process DCS configuration
+
+         Bool_t AreThereDataPedestal(AliTRDCalSingleChamberStatus * const calROCStatus, Bool_t second);
+         void   SetDefaultStatus(AliTRDCalSingleChamberStatus &calROCStatus, Bool_t second);
+         void   SetStatus(AliTRDCalSingleChamberStatus &calROCStatus, AliTRDCalSingleChamberStatus *calROCStatusPrevious,Bool_t second);
+         void   SetDefaultNoise(AliTRDCalROC &calROCNoise, Bool_t second);
+         void   SetNoise(AliTRDCalROC &calROCNoise, AliTRDCalROC *calROCNoisePrevious, Bool_t second);
 
+         ClassDef(AliTRDPreprocessor,1)          // The SHUTTLE preprocessor for TRD
+
+};
 #endif
+