source: trunk/MagicSoft/Mars/melectronics/MAnalogSignal.h@ 9255

Last change on this file since 9255 was 9242, checked in by tbretz, 16 years ago
*** empty log message ***
File size: 854 bytes
Line 
1#ifndef MARS_MAnalogSignal
2#define MARS_MAnalogSignal
3
4#ifndef MARS_MArrayF
5#include "MArrayF.h"
6#endif
7
8class MSpline3;
9
10class MAnalogSignal : public MArrayF/*TObject*/
11{
12private:
13 MArrayF fDer1; //! Buffer for the derivatives of the corresponding spline
14 MArrayF fDer2; //! Buffer for the derivatives of the corresponding spline
15
16public:
17 MAnalogSignal(UInt_t n) { Set(n); }
18
19 void Set(UInt_t n);
20 void AddPulse(const MSpline3 &spline, Float_t t, Float_t f=1);
21 void AddSignal(const MAnalogSignal &s);
22
23 // Deprecated. Use MSimRandomPhotons instead
24 void AddRandomPulses(const MSpline3 &spline, Float_t num);
25
26 void AddGaussianNoise(Float_t amplitude=1, Float_t offset=0);
27
28 TObjArray *Discriminate(Float_t threshold, Float_t len=-1) const;
29
30 ClassDef(MAnalogSignal, 1) // Storage class for an analog signal
31};
32
33#endif
Note: See TracBrowser for help on using the repository browser.