Line | |
---|
1 | #ifndef MARS_MAnalogChannels
|
---|
2 | #define MARS_MAnalogChannels
|
---|
3 |
|
---|
4 | #ifndef MARS_MParContainer
|
---|
5 | #include "MParContainer.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class TObjArray;
|
---|
9 | class MAnalogSignal;
|
---|
10 |
|
---|
11 | class MAnalogChannels : public MParContainer
|
---|
12 | {
|
---|
13 | private:
|
---|
14 | TObjArray *fArray;
|
---|
15 |
|
---|
16 | Int_t fValidRangeMin;
|
---|
17 | Int_t fValidRangeMax;
|
---|
18 |
|
---|
19 | public:
|
---|
20 | MAnalogChannels(const char *name=0, const char *title=0);
|
---|
21 | MAnalogChannels(Int_t n, Int_t len, const char *name=0, const char *title=0);
|
---|
22 | ~MAnalogChannels()
|
---|
23 | {
|
---|
24 | Clear();
|
---|
25 | }
|
---|
26 |
|
---|
27 | void Clear(Option_t *o="");
|
---|
28 |
|
---|
29 | void Init(UInt_t n, UInt_t len);
|
---|
30 |
|
---|
31 | void InitNumChannels(UInt_t n) { Init(n, GetNumSamples()); }
|
---|
32 | void InitLenChannels(UInt_t l) { Init(GetNumChannels(), l); }
|
---|
33 |
|
---|
34 | MAnalogSignal &operator[](UInt_t i);
|
---|
35 | MAnalogSignal *operator()(UInt_t i);
|
---|
36 |
|
---|
37 | const MAnalogSignal &operator[](UInt_t i) const;
|
---|
38 | const MAnalogSignal *operator()(UInt_t i) const;
|
---|
39 |
|
---|
40 | UInt_t GetNumChannels() const;
|
---|
41 | UInt_t GetNumSamples() const;
|
---|
42 |
|
---|
43 | void SetValidRange(Int_t min, Int_t max) { fValidRangeMin=min; fValidRangeMax=max; }
|
---|
44 |
|
---|
45 | Int_t GetValidRangeMin() const { return fValidRangeMin; }
|
---|
46 | Int_t GetValidRangeMax() const { return fValidRangeMax; }
|
---|
47 |
|
---|
48 | ClassDef(MAnalogChannels, 1) // Parameter container for a collection of analog signals
|
---|
49 | };
|
---|
50 |
|
---|
51 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.