Changeset 9270 for trunk/MagicSoft/Mars/melectronics
- Timestamp:
- 01/26/09 11:59:12 (16 years ago)
- Location:
- trunk/MagicSoft/Mars/melectronics
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/melectronics/MAnalogChannels.cc
r9243 r9270 134 134 // Return the number of channels. 135 135 // 136 Int_t MAnalogChannels::GetNumChannels() const136 UInt_t MAnalogChannels::GetNumChannels() const 137 137 { 138 138 return fArray ? fArray->GetEntriesFast() : 0; … … 143 143 // Return the number of samples per channel 144 144 // 145 Int_t MAnalogChannels::GetNumSamples() const145 UInt_t MAnalogChannels::GetNumSamples() const 146 146 { 147 147 return operator()(0) ? operator()(0)->GetSize() : 0; -
trunk/MagicSoft/Mars/melectronics/MAnalogChannels.h
r9242 r9270 29 29 void Init(UInt_t n, UInt_t len); 30 30 31 void InitNumChannels(UInt_t n) { Init(n, GetNumSamples()); } 32 void InitLenChannels(UInt_t l) { Init(GetNumChannels(), l); } 33 31 34 MAnalogSignal &operator[](UInt_t i); 32 35 MAnalogSignal *operator()(UInt_t i); … … 35 38 const MAnalogSignal *operator()(UInt_t i) const; 36 39 37 Int_t GetNumChannels() const;38 Int_t GetNumSamples() const;40 UInt_t GetNumChannels() const; 41 UInt_t GetNumSamples() const; 39 42 40 43 void SetValidRange(Int_t min, Int_t max) { fValidRangeMin=min; fValidRangeMax=max; }
Note:
See TracChangeset
for help on using the changeset viewer.