CGEM BOSS 6.6.5.g
BESIII Offline Software System
Loading...
Searching...
No Matches
BesRunAction.hh
Go to the documentation of this file.
1//---------------------------------------------------------------------------//
2// BOOST --- BESIII Object_Oriented Simulation Tool //
3//---------------------------------------------------------------------------//
4//Description: class for BesRunAction (simple)
5//Author: Liuhm
6//Created: May 25, 2003
7//Modified:
8//Comment:
9//---------------------------------------------------------------------------//
10
11#ifndef BesRunAction_h
12#define BesRunAction_h 1
13
14#include "G4UserRunAction.hh"
15#include "globals.hh"
16#include <vector>
17class G4Run;
19class BesAsciiIO;
20class BesRootIO;
21class BesTDSWriter;
22class BesTuningIO;
23
24class BesRunAction : public G4UserRunAction
25{
26 public:
29
30 public:
31 void BeginOfRunAction(const G4Run*);
32 void EndOfRunAction(const G4Run*);
33
34 G4int GetRunId() {return m_runId;}
35 G4int GetMCTruthFlag() {return m_MCTruthFlag;}
36 BesAsciiIO* GetAsciiIO() {return m_asciiIO;}
37 BesRootIO* GetRootIO() {return m_rootIO;}
38 BesTuningIO* GetTuningIO() {return m_tuningIO;}
39
40 G4bool GetTDSFlag() {return m_TDSFlag;}
41 BesTDSWriter* GetTDSWriter() {return m_TDSWriter;}
42
43 void SetMCTruthFlag(G4int flag) {m_MCTruthFlag = flag;}
44
45 /*void SetMdcTruFlag(G4int flag) {m_mdcTruFlag = flag;}
46 void SetCgemTruFlag(G4int flag) {m_cgemTruFlag = flag;}
47 void SetTofTruFlag(G4int flag) {m_tofTruFlag = flag;}
48 void SetEmcTruFlag(G4int flag) {m_emcTruFlag = flag;}
49 void SetMucTruFlag(G4int flag) {m_mucTruFlag = flag;}
50
51 void SetMdcDigiFlag(G4int flag) {m_mdcDigiFlag = flag;}
52 void SetCgemDigiFlag(G4int flag) {m_cgemDigiFlag = flag;}
53 void SetTofDigiFlag(G4int flag) {m_tofDigiFlag = flag;}
54 void SetEmcDigiFlag(G4int flag) {m_emcDigiFlag = flag;}
55 void SetMucDigiFlag(G4int flag) {m_mucDigiFlag = flag;}
56 */
57 void SetAsciiFlag( std::string flag) {m_asciiFlag = flag;}
58 void SetAsciiFile( std::string file) {m_asciiFile = file;}
59 void SetRootFlag( G4bool flag) {m_rootFlag = flag;}
60 void SetRootFile( std::string file) {m_rootFile = file;}
61 void SetTuningFile(std::vector<std::string> file) {m_tuningFile = file;}
62
63 void SetTDSFlag(G4bool flag) {m_TDSFlag = flag;}
64
65 private:
66 G4int m_runId;
67 G4int m_MCTruthFlag;
68
69 /*G4int m_mdcTruFlag;
70 G4int m_cgemTruFlag;
71 G4int m_tofTruFlag;
72 G4int m_emcTruFlag;
73 G4int m_mucTruFlag;
74
75 G4int m_mdcDigiFlag;
76 G4int m_cgemDigiFlag;
77 G4int m_tofDigiFlag;
78 G4int m_emcDigiFlag;
79 G4int m_mucDigiFlag;
80 */
81 std::string m_asciiFlag;
82 std::string m_asciiFile;
83 G4bool m_rootFlag;
84 std::string m_rootFile;
85 std::vector<std::string> m_tuningFile;
86
87 BesAsciiIO* m_asciiIO;
88 BesRootIO* m_rootIO;
89 BesTuningIO* m_tuningIO;
90
91 G4bool m_TDSFlag;
92 BesTDSWriter* m_TDSWriter;
93
94 BesRunActionMessenger* m_runMessenger;
95};
96
97#endif
98
void SetTuningFile(std::vector< std::string > file)
Definition: BesRunAction.hh:61
void SetMCTruthFlag(G4int flag)
Definition: BesRunAction.hh:43
BesTuningIO * GetTuningIO()
Definition: BesRunAction.hh:38
void SetRootFile(std::string file)
Definition: BesRunAction.hh:60
G4bool GetTDSFlag()
Definition: BesRunAction.hh:40
void SetTDSFlag(G4bool flag)
Definition: BesRunAction.hh:63
G4int GetRunId()
Definition: BesRunAction.hh:34
void SetRootFlag(G4bool flag)
Definition: BesRunAction.hh:59
void EndOfRunAction(const G4Run *)
Definition: BesRunAction.cc:68
void SetAsciiFlag(std::string flag)
Definition: BesRunAction.hh:57
void BeginOfRunAction(const G4Run *)
Definition: BesRunAction.cc:34
BesRootIO * GetRootIO()
Definition: BesRunAction.hh:37
void SetAsciiFile(std::string file)
Definition: BesRunAction.hh:58
BesTDSWriter * GetTDSWriter()
Definition: BesRunAction.hh:41
G4int GetMCTruthFlag()
Definition: BesRunAction.hh:35
BesAsciiIO * GetAsciiIO()
Definition: BesRunAction.hh:36