source: trunk/MagicSoft/Mars/mjobs/MDataSet.h@ 6463

Last change on this file since 6463 was 6453, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 1.6 KB
Line 
1#ifndef MARS_MDataSet
2#define MARS_MDataSet
3
4#ifndef MARS_MParContainer
5#include "MParContainer.h"
6#endif
7
8#ifndef ROOT_TArrayI
9#include <TArrayI.h>
10#endif
11
12class MRead;
13
14class MDataSet : public MParContainer
15{
16private:
17 UInt_t fNumAnalysis; // Analysis number (artificial)
18
19 TArrayI fNumSequencesOn; // number of on-sequences
20 TArrayI fNumSequencesOff; // number of off-sequences
21
22 TList fSequencesOn; // list of names and paths of on-sequences
23 TList fSequencesOff; // list of names and paths of off-sequences
24
25 void Split(TString &runs, TArrayI &data) const;
26 void ResolveSequences(TEnv &env, const TArrayI &num, TList &list) const;
27 static void PrintFile(const TObject &obj);
28
29public:
30 MDataSet() : fNumAnalysis((UInt_t)-1) { }
31 MDataSet(const char *fname);
32
33 void Print(Option_t *o="") const;
34
35 Bool_t IsValid() const { return fNumAnalysis!=(UInt_t)-1; }
36
37 static Bool_t AddSequencesToList(const TList &list, MRead &read, char *id="I", Bool_t raw=kFALSE);
38
39 Bool_t AddFiles(MRead &read, char *id="I", Bool_t raw=kFALSE) const;
40 Bool_t AddFilesOn(MRead &read, char *id="I", Bool_t raw=kFALSE) const;
41 Bool_t AddFilesOff(MRead &read, char *id="I", Bool_t raw=kFALSE) const;
42
43 UInt_t GetNumSequencesOn() const { return fNumSequencesOn.GetSize(); }
44 UInt_t GetNumSequencesOff() const { return fNumSequencesOff.GetSize(); }
45
46 Bool_t HasOffSequences() const { return GetNumSequencesOff()>0; }
47
48 // Getter
49 UInt_t GetNumAnalysis() const { return fNumAnalysis; }
50 void SetNumAnalysis(UInt_t num) { fNumAnalysis=num; }
51
52 ClassDef(MDataSet, 0)
53};
54
55#endif
Note: See TracBrowser for help on using the repository browser.