Line | |
---|
1 | #ifndef MARS_MSequence
|
---|
2 | #define MARS_MSequence
|
---|
3 |
|
---|
4 | #ifndef ROOT_TArrayI
|
---|
5 | #include <TArrayI.h>
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | #ifndef MARS_MTime
|
---|
9 | #include "MTime.h"
|
---|
10 | #endif
|
---|
11 |
|
---|
12 | class MDirIter;
|
---|
13 |
|
---|
14 | class MSequence : public MParContainer
|
---|
15 | {
|
---|
16 | private:
|
---|
17 | UInt_t fSequence;
|
---|
18 |
|
---|
19 | MTime fStart;
|
---|
20 |
|
---|
21 | UInt_t fLastRun;
|
---|
22 | UInt_t fNumEvents;
|
---|
23 |
|
---|
24 | UInt_t fPeriod;
|
---|
25 | MTime fNight;
|
---|
26 |
|
---|
27 | TString fProject;
|
---|
28 | TString fSource;
|
---|
29 | TString fTriggerTable;
|
---|
30 | TString fHvSettings;
|
---|
31 |
|
---|
32 | TArrayI fRuns;
|
---|
33 | TArrayI fCalRuns;
|
---|
34 | TArrayI fPedRuns;
|
---|
35 | TArrayI fDatRuns;
|
---|
36 |
|
---|
37 | void Split(TString &runs, TArrayI &data) const;
|
---|
38 | void SetupRuns(MDirIter &iter, const TArrayI &arr, const char *path) const;
|
---|
39 |
|
---|
40 | public:
|
---|
41 | MSequence(const char *fname);
|
---|
42 |
|
---|
43 | void Print(Option_t *o="") const;
|
---|
44 |
|
---|
45 | Bool_t IsValid() const { return fSequence!=(UInt_t)-1; }
|
---|
46 |
|
---|
47 | void SetupPedRuns(MDirIter &iter, const char *path=0) const;
|
---|
48 | void SetupDatRuns(MDirIter &iter, const char *path=0) const;
|
---|
49 | void SetupAllRuns(MDirIter &iter, const char *path=0) const;
|
---|
50 | void SetupCalRuns(MDirIter &iter, const char *path=0) const;
|
---|
51 |
|
---|
52 | // Getter
|
---|
53 | UInt_t GetSequence() const { return fSequence; }
|
---|
54 | UInt_t GetLastRun() const { return fLastRun; }
|
---|
55 |
|
---|
56 | ClassDef(MSequence, 0)
|
---|
57 | };
|
---|
58 |
|
---|
59 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.