]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TRD/AliTRDPreprocessor.h
Adding using std::...
[u/mrichter/AliRoot.git] / TRD / AliTRDPreprocessor.h
index 703559ffebe42d402110914bab2d11169d6484d0..837c95e8a9432a6dd20e94105ae9e96219759075 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
-      ,kEStoreRefDCS   =   2   // error in case of failure by storing DCS variables references
-      ,kEFitDCS        =   4   // error in case of failure by fitting DCS variables
-      ,kEStoreDCS      =   8   // error in case of failure by storing DCS variables fit results
-      ,kEListFileHLT   =  16   // error in case of failure by taking the listof HLT files
-      ,kEOpenFileHLT   =  32   // error in case of failure by opening the HLTfile
-      ,kETakeHistoHLT  =  64   // error in case of failure by taking the histos HLT
-      ,kEStoreHistoHLT = 128   // error in case of failure by storing the reference data HLT
-      ,kEFitHistoHLT   = 256   // error in case of failure by fitting the histos HLT
-      ,kEStoreCalHLT   = 512   // error in case of failure by storing the HLTcal objects
-      ,kEListFileDAQ   = 1024  // error in case of failure by taking the list of DAQ files 
-      ,kEOpenFileDAQ   = 2048  // error in case of failure by opening the DAQfile
-      ,kETakeObjectDAQ = 4096  // error in case of failure by taking the objects DAQ
-      ,kEStoreRefDAQ   = 8192  // error in case of failure by storing the reference data DAQ
-      ,kEFitObjectDAQ  = 16384 // error in case of failure by fitting the DAQ objects
-      ,kEStoreCalDAQ   = 32768 // error in case of failure by storing the DAQcal 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);
+          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:
-    
-    ClassDef(AliTRDPreprocessor,1) // The SHUTTLE preprocessor for TRD
+ private:
+         
+         AliTRDCalDCSv2* fCalDCSObjSOR;    // calDCS object Start of Run
+         AliTRDCalDCSv2* fCalDCSObjEOR;    // calDCS object End of Run
 
-};
+         Bool_t  fVdriftHLT;             // HLT Vdrift
+         UInt_t  ProcessDCSConfigData(); // process DCS configuration
+
+         Bool_t AreThereDataPedestal(const 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
+