]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TOF/AliTOFPreprocessor.h
Adding the description of real data (Marian)
[u/mrichter/AliRoot.git] / TOF / AliTOFPreprocessor.h
index e8e525ecc8b3d7b962a3047b121afa0b040b0582..72f79f9ac5a03b883a03558167dbb5af25305224 100644 (file)
@@ -13,6 +13,7 @@
 // and DAQ histograms to compute online calibration constants
 
 class AliTOFDataDCS;
+class AliTOFChannelOnlineStatusArray;
 class TObjArray;
 class TH2S;
 
@@ -22,11 +23,14 @@ class AliTOFPreprocessor : public AliPreprocessor
     AliTOFPreprocessor(AliShuttleInterface* shuttle);
     virtual ~AliTOFPreprocessor();
     void   SetStoreRefData(Bool_t in){fStoreRefData=in;};
-    Bool_t GetStoreRefData() const {return fStoreRefData;};
+    Bool_t GetStoreRefData() const {return fStoreRefData;}
+    void SetFDRFlag(Bool_t flag) {fFDRFlag = flag;}
+    Bool_t GetFDRFlag() const {return fFDRFlag;}
 
   protected:
     virtual void Initialize(Int_t run, UInt_t startTime, UInt_t endTime);
     virtual UInt_t Process(TMap* dcsAliasMap);
+    virtual Bool_t ProcessDCS();
 
   private:
     AliTOFPreprocessor(const AliTOFPreprocessor & proc); // copy constructor
@@ -35,17 +39,20 @@ class AliTOFPreprocessor : public AliPreprocessor
     UInt_t ProcessOnlineDelays();
     UInt_t ProcessPulserData();
     UInt_t ProcessNoiseData();
-
-    static const Int_t fgkBinRangeAve;   // number of bins where to 
-                                         // calculate the mean
-    static const Double_t fgkThrPar;     // parameter used to trigger the 
-                                         // calculation of the delay
-    AliTOFDataDCS *fData;                // CDB class that stores the data
-    TH2S *fh2;                           // TH2S from DAQ for histograms 
-                                         // for delays  
-    TObjArray *fCal;                     // TOF Calibration object
-    Int_t fNChannels;                    // number of TOF channels
-    Bool_t fStoreRefData;                // Flag to decide storage of Ref Data
-    ClassDef(AliTOFPreprocessor, 3);
+    UInt_t ProcessFEEData(); // dummy, for the time being
+
+    static const Int_t fgkBinRangeAve;       // number of bins where to 
+                                             // calculate the mean
+    static const Double_t fgkIntegralThr;    // min number of entries per channel 
+                                             // to perform calculation of delay
+    static const Double_t fgkThrPar;         // parameter used to trigger the 
+                                             // calculation of the delay
+    AliTOFDataDCS *fData;                    // CDB class that stores the data
+    AliTOFChannelOnlineArray *fCal;          // TOF Calibration object
+    Int_t fNChannels;                        // number of TOF channels
+    Bool_t fStoreRefData;                    // Flag to decide storage of Ref Data
+    Bool_t fFDRFlag;                         // Flag for FDR runs 
+    AliTOFChannelOnlineStatusArray *fStatus; // Array with TOF channels' status
+    ClassDef(AliTOFPreprocessor, 0);
 };
 #endif