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

Last change on this file since 17033 was 17011, checked in by ftemme, 11 years ago
added the writing of several Header Keys to the fitsoutput of Ceres in MJSimulation.cc, the values of the HeaderKeys are mainly hardcoded; changed the name of the columns in the fitsoutput for MMcEvt.fEvtNumber, MRawEvtData.fStartCells to the corresponding name in real data files; removed the vetoing of several columns in the fitsout in MJSimulation.cc; implemented the substraction of the accoupling in MSimCamera.cc
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;
14
15class MJSimulation : public MJob
16{
17public:
18 enum Mode_t { kModeData, kModePed, kModeCal, kModePointRun };
19
20private:
21 Bool_t fForceMode; // Force execution even if RUNE-section was not foundm
22
23 Bool_t fCamera; // Switch on/off camera (for fast reflector processing)
24 Bool_t fForceTrigger; // Force the use of the trigger "electronics"
25 Bool_t fWriteFitsFile;
26
27 Int_t fOperationMode; // Operation mode (data, ped, cal, pointrun)
28 Int_t fRunNumber; // 8 digits run number to be used for the file names
29
30 Bool_t WriteResult(const MParList &plist, const MSequence &seq, Int_t run);
31 Bool_t CheckEnvLocal();
32
33 void SetupHist(MHn &hist) const;
34 void SetupCommonFileStructure(MWriteRootFile &write) const;
35 void SetupCommonFileStructure(MWriteFitsFile& write) const;
36 void SetupHeaderKeys(MWriteFitsFile& write) const;
37 void SetupVetoColumns(MWriteFitsFile& write) const;
38
39public:
40 MJSimulation(const char *name=NULL, const char *title=NULL);
41
42 void SetForceMode(Bool_t force=kTRUE) { fForceMode = force; }
43 void SetMode(Int_t mode) { fOperationMode = mode; }
44 void SetWriteFitsFile(Bool_t fits) { fWriteFitsFile = fits; }
45
46 void SetRunNumber(Int_t n=-1) { fRunNumber = n%100000000; }
47
48 // Process
49 Bool_t Process(const MArgs &args, const MSequence &seq);
50
51 ClassDef(MJSimulation, 0) // Job to run the simulation (ceres)
52};
53
54#endif
Note: See TracBrowser for help on using the repository browser.