source: branches/Mars_MC/mjobs/MJSimulation.h@ 17997

Last change on this file since 17997 was 17047, checked in by ftemme, 11 years ago
Changed the writing of several header keys for the fitsoutput of ceres from hardcoded values to values from a given runheader, the call of SetupHeaderKeys() is commented out, cause the setting of the header keys should be during MWriteFitsFile::ReInit(), cause the Runheader is not initialized at the moment of the previous call
File size: 1.6 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;
13class MWriteFitsFile;
14class MRawRunHeader;
15
16class MJSimulation : 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 Bool_t fCamera; // Switch on/off camera (for fast reflector processing)
25 Bool_t fForceTrigger; // Force the use of the trigger "electronics"
26 Bool_t fWriteFitsFile;
27
28 Int_t fOperationMode; // Operation mode (data, ped, cal, pointrun)
29 Int_t fRunNumber; // 8 digits run number to be used for the file names
30
31 Bool_t WriteResult(const MParList &plist, const MSequence &seq, Int_t run);
32 Bool_t CheckEnvLocal();
33
34 void SetupHist(MHn &hist) const;
35 void SetupCommonFileStructure(MWriteRootFile &write) const;
36 void SetupCommonFileStructure(MWriteFitsFile& write) const;
37 void SetupHeaderKeys(MWriteFitsFile& write, MRawRunHeader &header) const;
38 void SetupVetoColumns(MWriteFitsFile& write) const;
39
40public:
41 MJSimulation(const char *name=NULL, const char *title=NULL);
42
43 void SetForceMode(Bool_t force=kTRUE) { fForceMode = force; }
44 void SetMode(Int_t mode) { fOperationMode = mode; }
45 void SetWriteFitsFile(Bool_t fits) { fWriteFitsFile = fits; }
46
47 void SetRunNumber(Int_t n=-1) { fRunNumber = n%100000000; }
48
49 // Process
50 Bool_t Process(const MArgs &args, const MSequence &seq);
51
52 ClassDef(MJSimulation, 0) // Job to run the simulation (ceres)
53};
54
55#endif
Note: See TracBrowser for help on using the repository browser.