Changeset 7492 for trunk/MagicSoft/Mars/mjobs
- Timestamp:
- 02/10/06 11:56:40 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mjobs/MDataSet.h
r7413 r7492 53 53 } 54 54 55 Bool_t HasSequence(UInt_t num, const TArrayI &seq) const 56 { 57 for (int i=0; i<seq.GetSize(); i++) 58 if ((UInt_t)seq[i]==num) 59 return kTRUE; 60 return kFALSE; 61 } 62 55 63 public: 56 64 MDataSet(Int_t num=(UInt_t)-1) : fNumAnalysis(num) { } … … 89 97 90 98 Bool_t HasOffSequences() const { return GetNumSequencesOff()>0; } 99 100 Bool_t HasOffSequence(UInt_t num) const { return HasSequence(num, fNumSequencesOff); } 101 Bool_t HasOnSequence(UInt_t num) const { return HasSequence(num, fNumSequencesOn); } 102 Bool_t HasSequence(UInt_t num) const { return HasOnSequence(num) || HasOffSequence(num); } 91 103 92 104 UInt_t GetNumAnalysis() const { return fNumAnalysis; }
Note:
See TracChangeset
for help on using the changeset viewer.