Minor changes needed for debugging purphoses
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSRawAnalyzer.h
CommitLineData
ee7849e6 1#ifndef ALIHLTPHOSRAWANALYZER_H
2#define ALIHLTPHOSRAWANALYZER_H
cbab66dd 3/* Copyright(c) 1998-2004, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6/* $Id$ */
7
68d9caee 8
43dd7c5e 9#include "AliHLTPHOSBase.h"
10
11class AliHLTPHOSRawAnalyzer: public AliHLTPHOSBase
9c9d15d6 12//class AliHLTPHOSRawAnalyzer
cbab66dd 13{
14 public:
2f475e8c 15 AliHLTPHOSRawAnalyzer();
16 virtual ~AliHLTPHOSRawAnalyzer();
17 AliHLTPHOSRawAnalyzer(double *dataPtr, double fs);
cbab66dd 18
19 void BaselineCorrection(double *dataPtr, int N);
20 void BaselineCorrection(double *dataPtr, double baselineValue);
21 int FindStartIndex(double treshold);
d504c864 22 float GetTiming() const;
23 float GetEnergy() const;
b2f40e59 24
cbab66dd 25 void SetData(double *data);
b2f40e59 26 void SetData(UInt_t *data);
27
cbab66dd 28 void SetSampleFreq(double freq);
68d9caee 29 void SetStartIndex(int startIndex);
cbab66dd 30 void MakeInitialGuess();
31 void MakeInitialGuess(int treshold);
dbd79fad 32
68d9caee 33 virtual void SetTVector(Double_t *tVector, Int_t size);
34 virtual void SetAVector(Double_t *aVector, Int_t size);
d504c864 35 virtual void Evaluate(Int_t start = 0, Int_t lenght = 100) = 0;
cbab66dd 36
37 protected:
ee1684e6 38 Double_t *fFloatDataPtr; /**<Float representation of data that should be fitted */
9c9d15d6 39 UInt_t *fIntDataPtr; /**<data that should be fitted */
cbab66dd 40 double fSampleFrequency; /**<The ADC sample frequency in MHz used under data taking */
41 double fDTofGuess; /**<Initial guess for t0*/
42 double fDAmplGuess; /**<Initial guess for amplitude*/
43 double fTau; /**<The risetime in micro seconds*/
44 double fDTof; /**<Time of flight in entities of sample intervals */
45 double fDAmpl; /**<Amplitude in entities of ADC levels*/
9c9d15d6 46 int fStartIndex; /**<Starindex of the time dependent altro signal*/
47
48 private:
49 AliHLTPHOSRawAnalyzer(const AliHLTPHOSRawAnalyzer & );
50 AliHLTPHOSRawAnalyzer & operator = (const AliHLTPHOSRawAnalyzer &);
cbab66dd 51};
52
53
54#endif