source: trunk/Mars/mjobs/MJSimReflector.h@ 19917

Last change on this file since 19917 was 18451, checked in by ftemme, 9 years ago
Added the new program mirrorSimulation which performs the simulation of the reflector. Adapted the Makefiles and added the corresponding mjob MJSimReflector
File size: 1.3 KB
Line 
1#ifndef MARS_MJSimReflector
2#define MARS_MJSimReflector
3
4#ifndef MARS_MJob
5#include "MJob.h"
6#endif
7
8class MHn;
9class MArgs;
10class MParList;
11class MSequence;
12class MWriteRootFile;
13class MWriteFitsFile;
14class MRawRunHeader;
15
16class MJSimReflector : public MJob
17{
18public:
19 enum Mode_t { kModeData, kModePed, kModeCal, kModePointRun };
20
21private:
22 Bool_t fForceMode; // Force execution even if RUNE-section was not foundm
23
24 Int_t fOperationMode; // Operation mode (data, ped, cal, pointrun)
25 Int_t fRunNumber; // 8 digits run number to be used for the file names
26
27 TString fFileOut; // Output file name if all runs should be combines
28
29// Bool_t WriteResult(const MParList &plist, const MSequence &seq, Int_t run);
30 Bool_t CheckEnvLocal();
31
32public:
33 MJSimReflector(const char *name=NULL, const char *title=NULL);
34
35 void SetFileOut(const char *file="") { fFileOut = file; }
36 void SetForceMode(Bool_t force=kTRUE) { fForceMode = force; }
37 void SetMode(Int_t mode) { fOperationMode = mode; }
38 void SetRunNumber(Int_t n=-1) { fRunNumber = n%100000000; }
39 void SetupHeaderOperationMode(MRawRunHeader &header) const;
40
41 // Process
42 Bool_t Process(const MArgs &args, const MSequence &seq);
43
44 ClassDef(MJSimReflector, 0) // Job to run the reflector simulation (reflector)
45};
46
47#endif
Note: See TracBrowser for help on using the repository browser.