]>
Commit | Line | Data |
---|---|---|
1 | #ifndef ALIHLTPHOSPULSEGENERATOR_H | |
2 | #define ALIHLTPHOSPULSEGENERATOR_H | |
3 | /* Copyright(c) 2006, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | //#include <TObject.h> | |
7 | #include <Rtypes.h> | |
8 | ||
9 | class AliHLTPHOSPulseGenerator | |
10 | { | |
11 | public: | |
12 | AliHLTPHOSPulseGenerator(); | |
13 | virtual ~AliHLTPHOSPulseGenerator(); | |
14 | AliHLTPHOSPulseGenerator(double a, double t0, const int N, const double t, const double f); | |
15 | AliHLTPHOSPulseGenerator(const AliHLTPHOSPulseGenerator & ); | |
16 | AliHLTPHOSPulseGenerator & operator = (const AliHLTPHOSPulseGenerator) | |
17 | { | |
18 | return *this; | |
19 | } | |
20 | void AddBaseline(double baselineLevel, double *samples); | |
21 | void AddNoise(double *dataPtr, double *sigma); | |
22 | void AddNoise(double *dataPtr, double *sigma, double cutoff); | |
23 | double *AddPretriggerSamples(double baslineLevel, double *samples); | |
24 | double *GetPulse(); | |
25 | double *GetPulse(double a, double t0); | |
26 | void Quantisize(double *dataPtr); | |
27 | void SetAmplitude(double a); | |
28 | void SetDT(double fs); | |
29 | void SetTZero(double t0); | |
30 | ||
31 | private: | |
32 | void MakePulse(double *dtaPtr); | |
33 | void MakePulse(double *dtaPtr, double ampl); | |
34 | double fAmplitude; | |
35 | int fNSamples; | |
36 | double fTau; | |
37 | double fSampleFreq; | |
38 | double fTZero; | |
39 | double *fDataPtr; //[1000] | |
40 | double fDT; | |
41 | double *fEvent; //[1000] | |
42 | ||
43 | ClassDef(AliHLTPHOSPulseGenerator,1) | |
44 | ||
45 | }; | |
46 | ||
47 | #endif | |
48 |