Ignore:
Timestamp:
01/26/09 11:59:12 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/melectronics
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/melectronics/MAnalogChannels.cc

    r9243 r9270  
    134134// Return the number of channels.
    135135//
    136 Int_t MAnalogChannels::GetNumChannels() const
     136UInt_t MAnalogChannels::GetNumChannels() const
    137137{
    138138    return fArray ? fArray->GetEntriesFast() : 0;
     
    143143// Return the number of samples per channel
    144144//
    145 Int_t MAnalogChannels::GetNumSamples() const
     145UInt_t MAnalogChannels::GetNumSamples() const
    146146{
    147147    return operator()(0) ? operator()(0)->GetSize() : 0;
  • trunk/MagicSoft/Mars/melectronics/MAnalogChannels.h

    r9242 r9270  
    2929    void Init(UInt_t n, UInt_t len);
    3030
     31    void InitNumChannels(UInt_t n) { Init(n, GetNumSamples());  }
     32    void InitLenChannels(UInt_t l) { Init(GetNumChannels(), l); }
     33
    3134    MAnalogSignal &operator[](UInt_t i);
    3235    MAnalogSignal *operator()(UInt_t i);
     
    3538    const MAnalogSignal *operator()(UInt_t i) const;
    3639
    37     Int_t GetNumChannels() const;
    38     Int_t GetNumSamples() const;
     40    UInt_t GetNumChannels() const;
     41    UInt_t GetNumSamples() const;
    3942
    4043    void SetValidRange(Int_t min, Int_t max) { fValidRangeMin=min; fValidRangeMax=max; }
Note: See TracChangeset for help on using the changeset viewer.