Ignore:
Timestamp:
02/18/09 12:07:41 (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/MDigitalSignal.cc

    r9243 r9347  
    4646// signals.
    4747//
    48 MDigitalSignal::MDigitalSignal(const MDigitalSignal &ttl1, const MDigitalSignal &ttl2)
     48MDigitalSignal::MDigitalSignal(const MDigitalSignal &ttl1, const MDigitalSignal &ttl2) : fIndex(-1)
    4949{
    5050    const Double_t new0 = TMath::Max(ttl1.fStart,              ttl2.fStart);
  • trunk/MagicSoft/Mars/melectronics/MDigitalSignal.h

    r9242 r9347  
    1313    Double_t fLength;
    1414
     15    Int_t fIndex;
     16
    1517public:
    16     MDigitalSignal(Double_t start=0, Double_t len=1e12/*FLT_MAX*/) : fStart(start), fLength(len)
     18    MDigitalSignal(Double_t start=0, Double_t len=1e12/*FLT_MAX*/) : fStart(start), fLength(len), fIndex(-1)
    1719    {
    1820    }
    1921
    20     MDigitalSignal(const MDigitalSignal &ttl) : TObject(ttl), fStart(ttl.fStart), fLength(ttl.fLength)
     22    MDigitalSignal(const MDigitalSignal &ttl) : TObject(ttl), fStart(ttl.fStart), fLength(ttl.fLength), fIndex(ttl.fIndex)
    2123    {
    2224    }
    2325
    2426    MDigitalSignal(const MDigitalSignal &ttl1, const MDigitalSignal &ttl2);
     27
     28    // Setter
     29    void SetIndex(Int_t idx=-1) { fIndex=idx; }
    2530
    2631    // Getter
     
    3035    Double_t GetEnd() const    { return fStart+fLength; }
    3136    Double_t GetLength() const { return fLength; }
     37
     38    Int_t GetIndex() const { return fIndex; }
     39    Bool_t IsConnected() const { return fIndex>=0; }
    3240
    3341    // TObject
Note: See TracChangeset for help on using the changeset viewer.