]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/PHOS/AliHLTPHOSRawAnalyzer.h
Script to make defauilt reco param
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSRawAnalyzer.h
index b7f518fe0420d27ffbaa7c69e63d2bd4ebbd2c3a..4b47657503995b8cfcc05699ccd5e26d5e4770e7 100644 (file)
@@ -1,3 +1,4 @@
+//-*- Mode: C++ -*-
 #ifndef ALIHLTPHOSRAWANALYZER_H
 #define ALIHLTPHOSRAWANALYZER_H
 /* Copyright(c) 1998-2004, ALICE Experiment at CERN, All rights reserved. *
@@ -5,58 +6,86 @@
 
 /* $Id$ */
 
-//#include "Rtypes.h"
+
 
 #include "AliHLTPHOSBase.h"
+class AliHLTPHOSUtilities;
 
 class AliHLTPHOSRawAnalyzer: public AliHLTPHOSBase
+//class AliHLTPHOSRawAnalyzer
 {
  public:
   AliHLTPHOSRawAnalyzer();
   virtual ~AliHLTPHOSRawAnalyzer();
   AliHLTPHOSRawAnalyzer(double *dataPtr, double fs);
-  //  AliHLTPHOSRawAnalyzer(const AliHLTPHOSRawAnalyzer & );
-  //  AliHLTPHOSRawAnalyzer & operator = (const AliHLTPHOSRawAnalyzer &)
-  //   {
-  //      return *this;
-  //   }
 
-  void BaselineCorrection(double *dataPtr, int N);
+  void SetCorrectBaselineUsingFirstFiveSamples();
+  void CorrectBaselineUsingFirstFiveSamples(UInt_t *data, const int length);
+  // void CorrectBaselineUsingFirstFiveSamples(int *data, int length);
+  //void CorrectBaselineUsingFirstFiveSamples(double *data, int length);
+
+
+  //  void BaselineCorrection(double *dataPtr, int N);
   void BaselineCorrection(double *dataPtr, double baselineValue);  
+
   int FindStartIndex(double treshold);
   float GetTiming() const;
   float GetEnergy() const;
 
-  void SetData(double *data);
-  void SetData(UInt_t *data);
+  //  void SetData(const double *data);
+  void SetData(const UInt_t *data, const int length);
+  // void SetData(UInt_t *data, const int length);
+
+  // void SetData(double *data, const int length);
+  //  void SetData(int *data, const int length);
 
   void SetSampleFreq(double freq);
   void SetStartIndex(int startIndex);
   void MakeInitialGuess();
   void MakeInitialGuess(int treshold);
   
-
   virtual void SetTVector(Double_t *tVector, Int_t size);
   virtual void SetAVector(Double_t *aVector, Int_t size);
 
-
-  /**
-   *Abstratct class documentation
-   */
   virtual void Evaluate(Int_t start = 0, Int_t lenght = 100) = 0;
-  //  Double_t GetMaxValue(Double_t *dta, Int_t size) const;
-  //  UInt_t GetMaxValue(UInt_t *dta, Int_t size) const;
+
 
  protected:
-  Double_t   *fFloatDataPtr;   /**<Float representation of data that should be fitted */
-  UInt_t   *fIntDataPtr;   /**<data that should be fitted */
+  bool fDoCorrectBaselineUsingFirstFiveSamples;
+
+  //  mutable  Double_t   *fFloatDataPtr;   /**<Float representation of data that should be fitted */
+  //  mutable  UInt_t     *fIntDataPtr;     /**<data that should be fitted */
+
+ /*  mutable const Double_t   *fFloatDataPtr;   /\**<Float representation of data that should be fitted *\/ */
+/*   mutable const unsigned int     *fIntDataPtr;     /\**<data that should be fitted *\/ */
+
+
+  //double   *fFloatDataPtr;   /**<Float representation of data that should be fitted */
+
+  double   *fDoubleDataPtr;   /**<Float representation of data that should be fitted */
+  UInt_t   *fIntDataPtr;     /**<data that should be fitted */
+ //  int      *fIntDataPtr;     /**<data that should be fitted */
+
+
+  //  mutable const UInt_t     *fIntDataPtr;     /**<data that should be fitted */
+  
   double     fSampleFrequency; /**<The ADC sample frequency in MHz used under data taking */
   double     fDTofGuess;       /**<Initial guess for t0*/
   double     fDAmplGuess;      /**<Initial guess for amplitude*/
   double     fTau;            /**<The risetime in micro seconds*/               
   double     fDTof;            /**<Time of flight in entities of sample intervals */
   double     fDAmpl;           /**<Amplitude in entities of ADC levels*/
-  int        fStartIndex;
+  int        fStartIndex;      /**<Starindex of the time dependent altro signal*/
+
+  //  double unsigned fTest;
+
+ protected:
+  AliHLTPHOSUtilities *fUtilitiesPtr;
+
+ private:
+  AliHLTPHOSRawAnalyzer(const AliHLTPHOSRawAnalyzer & );
+  AliHLTPHOSRawAnalyzer & operator = (const AliHLTPHOSRawAnalyzer &);
 };