]>
Commit | Line | Data |
---|---|---|
cd906859 | 1 | #ifndef ALIHLTPHOSPULSEGENERATOR_H |
2 | #define ALIHLTPHOSPULSEGENERATOR_H | |
228cb536 | 3 | /* Copyright(c) 2006, ALICE Experiment at CERN, All rights reserved. * |
4 | * See cxx source for full Copyright notice */ | |
29d9ed72 | 5 | |
6 | //#include <TObject.h> | |
cd906859 | 7 | #include <Rtypes.h> |
228cb536 | 8 | |
cd906859 | 9 | class AliHLTPHOSPulseGenerator |
228cb536 | 10 | { |
11 | public: | |
cd906859 | 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 | } | |
228cb536 | 20 | void AddBaseline(double baselineLevel, double *samples); |
21 | void AddNoise(double *dataPtr, double *sigma); | |
22 | void AddNoise(double *dataPtr, double *sigma, double cutoff); | |
cd906859 | 23 | double *AddPretriggerSamples(double baslineLevel, double *samples); |
228cb536 | 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); | |
cd906859 | 30 | |
31 | private: | |
228cb536 | 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; | |
65116e10 | 39 | double *fDataPtr; //[1000] |
228cb536 | 40 | double fDT; |
65116e10 | 41 | double *fEvent; //[1000] |
cd906859 | 42 | |
29d9ed72 | 43 | ClassDef(AliHLTPHOSPulseGenerator,1) |
44 | ||
228cb536 | 45 | }; |
46 | ||
47 | #endif | |
48 |