source: trunk/MagicSoft/Mars/mjobs/MJSimulation.h@ 9480

Last change on this file since 9480 was 9441, checked in by tbretz, 15 years ago
*** empty log message ***
File size: 1.1 KB
Line 
1#ifndef MARS_MJSimulation
2#define MARS_MJSimulation
3
4#ifndef MARS_MJob
5#include "MJob.h"
6#endif
7
8class MHn;
9class MArgs;
10class MParList;
11class MSequence;
12class MWriteRootFile;
13
14class MJSimulation : public MJob
15{
16public:
17 enum Mode_t { kModeData, kModePed, kModeCal, kModePointRun };
18
19private:
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
27 Bool_t WriteResult(const MParList &plist, const MSequence &seq);
28 Bool_t CheckEnvLocal();
29
30 void SetupHist(MHn &hist) const;
31 void SetupCommonFileStructure(MWriteRootFile &write) const;
32
33public:
34 MJSimulation(const char *name=NULL, const char *title=NULL);
35
36 void SetForceMode(Bool_t force=kTRUE) { fForceMode = force; }
37
38 void SetMode(Int_t mode) { fOperationMode = mode; }
39
40 // Process
41 Bool_t Process(const MArgs &args, const MSequence &seq);
42
43 ClassDef(MJSimulation, 0) // Job to run the simulation (ceres)
44};
45
46#endif
Note: See TracBrowser for help on using the repository browser.