source: branches/MarsGapdTimeJitter/melectronics/MAnalogChannels.h@ 18277

Last change on this file since 18277 was 9270, checked in by tbretz, 16 years ago
*** empty log message ***
File size: 1.2 KB
Line 
1#ifndef MARS_MAnalogChannels
2#define MARS_MAnalogChannels
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8class TObjArray;
9class MAnalogSignal;
10
11class MAnalogChannels : public MParContainer
12{
13private:
14 TObjArray *fArray;
15
16 Int_t fValidRangeMin;
17 Int_t fValidRangeMax;
18
19public:
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.