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 | MAnalogSignal &operator[](UInt_t i);
|
---|
32 | MAnalogSignal *operator()(UInt_t i);
|
---|
33 |
|
---|
34 | const MAnalogSignal &operator[](UInt_t i) const;
|
---|
35 | const MAnalogSignal *operator()(UInt_t i) const;
|
---|
36 |
|
---|
37 | Int_t GetNumChannels() const;
|
---|
38 | Int_t GetNumSamples() const;
|
---|
39 |
|
---|
40 | void SetValidRange(Int_t min, Int_t max) { fValidRangeMin=min; fValidRangeMax=max; }
|
---|
41 |
|
---|
42 | Int_t GetValidRangeMin() const { return fValidRangeMin; }
|
---|
43 | Int_t GetValidRangeMax() const { return fValidRangeMax; }
|
---|
44 |
|
---|
45 | ClassDef(MAnalogChannels, 1) // Parameter container for a collection of analog signals
|
---|
46 | };
|
---|
47 |
|
---|
48 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.