Line | |
---|
1 | #ifndef MARS_MJSimulation
|
---|
2 | #define MARS_MJSimulation
|
---|
3 |
|
---|
4 | #ifndef MARS_MJob
|
---|
5 | #include "MJob.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class MHn;
|
---|
9 | class MArgs;
|
---|
10 | class MParList;
|
---|
11 | class MSequence;
|
---|
12 | class MWriteRootFile;
|
---|
13 |
|
---|
14 | class MJSimulation : public MJob
|
---|
15 | {
|
---|
16 | public:
|
---|
17 | enum Mode_t { kModeData, kModePed, kModeCal, kModePointRun };
|
---|
18 |
|
---|
19 | private:
|
---|
20 | Bool_t fForceMode; // Force execution even if RUNE-section was not foundm
|
---|
21 |
|
---|
22 | Bool_t fCamera; // Switch on/off camera (for fast reflector processing)
|
---|
23 | Bool_t fForceTrigger; // Force the use of the trigger "electronics"
|
---|
24 |
|
---|
25 | Int_t fOperationMode; // Operation mode (data, ped, cal, pointrun)
|
---|
26 | Int_t fRunNumber; // 8 digits run number to be used for the file names
|
---|
27 |
|
---|
28 | Bool_t WriteResult(const MParList &plist, const MSequence &seq, Int_t run);
|
---|
29 | Bool_t CheckEnvLocal();
|
---|
30 |
|
---|
31 | void SetupHist(MHn &hist) const;
|
---|
32 | void SetupCommonFileStructure(MWriteRootFile &write) const;
|
---|
33 |
|
---|
34 | public:
|
---|
35 | MJSimulation(const char *name=NULL, const char *title=NULL);
|
---|
36 |
|
---|
37 | void SetForceMode(Bool_t force=kTRUE) { fForceMode = force; }
|
---|
38 |
|
---|
39 | void SetMode(Int_t mode) { fOperationMode = mode; }
|
---|
40 |
|
---|
41 | void SetRunNumber(Int_t n=-1) { fRunNumber = n%100000000; }
|
---|
42 |
|
---|
43 | // Process
|
---|
44 | Bool_t Process(const MArgs &args, const MSequence &seq);
|
---|
45 |
|
---|
46 | ClassDef(MJSimulation, 0) // Job to run the simulation (ceres)
|
---|
47 | };
|
---|
48 |
|
---|
49 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.