Ignore:
Timestamp:
02/10/06 11:56:40 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mjobs/MDataSet.h

    r7413 r7492  
    5353    }
    5454
     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
    5563public:
    5664    MDataSet(Int_t num=(UInt_t)-1) : fNumAnalysis(num) { }
     
    8997
    9098    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); }
    91103
    92104    UInt_t GetNumAnalysis() const { return fNumAnalysis; }
Note: See TracChangeset for help on using the changeset viewer.