Changeset 9347 for trunk/MagicSoft/Mars/melectronics
- Timestamp:
- 02/18/09 12:07:41 (16 years ago)
- Location:
- trunk/MagicSoft/Mars/melectronics
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/melectronics/MDigitalSignal.cc
r9243 r9347 46 46 // signals. 47 47 // 48 MDigitalSignal::MDigitalSignal(const MDigitalSignal &ttl1, const MDigitalSignal &ttl2) 48 MDigitalSignal::MDigitalSignal(const MDigitalSignal &ttl1, const MDigitalSignal &ttl2) : fIndex(-1) 49 49 { 50 50 const Double_t new0 = TMath::Max(ttl1.fStart, ttl2.fStart); -
trunk/MagicSoft/Mars/melectronics/MDigitalSignal.h
r9242 r9347 13 13 Double_t fLength; 14 14 15 Int_t fIndex; 16 15 17 public: 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) 17 19 { 18 20 } 19 21 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) 21 23 { 22 24 } 23 25 24 26 MDigitalSignal(const MDigitalSignal &ttl1, const MDigitalSignal &ttl2); 27 28 // Setter 29 void SetIndex(Int_t idx=-1) { fIndex=idx; } 25 30 26 31 // Getter … … 30 35 Double_t GetEnd() const { return fStart+fLength; } 31 36 Double_t GetLength() const { return fLength; } 37 38 Int_t GetIndex() const { return fIndex; } 39 Bool_t IsConnected() const { return fIndex>=0; } 32 40 33 41 // TObject
Note:
See TracChangeset
for help on using the changeset viewer.