]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDPreprocessor.h
coverity fix
[u/mrichter/AliRoot.git] / TRD / AliTRDPreprocessor.h
index 71c6ec587ff0043d57848832d43cf010a9726dd5..b4174a037007e005e57723bf7a027bbb06ee28de 100644 (file)
 #include "AliPreprocessor.h"
 
 class TMap;
+class AliTRDCalDCSv2;
+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 {
-      kEExtractDCS    =   1   // error in case of failure by extracting DCS variables
-      ,kEStore        =   2   // Store or StoreReferenceData
-      ,kEGetFileHLT   =   4   // GetFileSources and GetFile HLT
-      ,kEEmptyListHLT =   8   // Empty list HLT
-      ,kEGetFileDAQ   =  16   // GetFileSources and GetFile DAQ
-      ,kEEmptyListDAQ =  32   // Empty list DAQ
-    };
 
 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);
 
+          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);
 
-    void    ExtractPedestals();
-    void    ExtractDriftVelocityDAQ();
-    void    ExtractHLT();
-    void    ProcessDCS(TMap*dcsAliasMap);
+ private:
+         
+         AliTRDCalDCSv2* fCalDCSObjSOR;    // 
+         AliTRDCalDCSv2* fCalDCSObjEOR;    // 
 
-  private:
-    
+         Bool_t  fVdriftHLT;             // HLT Vdrift
+         UInt_t  ProcessDCSConfigData(); // process DCS configuration
 
-    UInt_t  fResult;                // result preprocessor
-    Bool_t  fVdriftHLT;             // HLT Vdrift
-    ClassDef(AliTRDPreprocessor,1) // The SHUTTLE preprocessor for TRD
+         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
+