BOSS 7.0.3
BESIII Offline Software System
Loading...
Searching...
No Matches
Simulation/BOOST/BesSim/BesSim-00-01-24/BesSim/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 SetTofTruFlag(G4int flag) {m_tofTruFlag = flag;}
47 void SetEmcTruFlag(G4int flag) {m_emcTruFlag = flag;}
48 void SetMucTruFlag(G4int flag) {m_mucTruFlag = flag;}
49
50 void SetMdcDigiFlag(G4int flag) {m_mdcDigiFlag = flag;}
51 void SetTofDigiFlag(G4int flag) {m_tofDigiFlag = flag;}
52 void SetEmcDigiFlag(G4int flag) {m_emcDigiFlag = flag;}
53 void SetMucDigiFlag(G4int flag) {m_mucDigiFlag = flag;}
54 */
55 void SetAsciiFlag( std::string flag) {m_asciiFlag = flag;}
56 void SetAsciiFile( std::string file) {m_asciiFile = file;}
57 void SetRootFlag( G4bool flag) {m_rootFlag = flag;}
58 void SetRootFile( std::string file) {m_rootFile = file;}
59 void SetTuningFile(std::vector<std::string> file) {m_tuningFile = file;}
60
61 void SetTDSFlag(G4bool flag) {m_TDSFlag = flag;}
62
63 private:
64 G4int m_runId;
65 G4int m_MCTruthFlag;
66
67 /*G4int m_mdcTruFlag;
68 G4int m_tofTruFlag;
69 G4int m_emcTruFlag;
70 G4int m_mucTruFlag;
71
72 G4int m_mdcDigiFlag;
73 G4int m_tofDigiFlag;
74 G4int m_emcDigiFlag;
75 G4int m_mucDigiFlag;
76 */
77 std::string m_asciiFlag;
78 std::string m_asciiFile;
79 G4bool m_rootFlag;
80 std::string m_rootFile;
81 std::vector<std::string> m_tuningFile;
82
83 BesAsciiIO* m_asciiIO;
84 BesRootIO* m_rootIO;
85 BesTuningIO* m_tuningIO;
86
87 G4bool m_TDSFlag;
88 BesTDSWriter* m_TDSWriter;
89
90 BesRunActionMessenger* m_runMessenger;
91};
92
93#endif
94
char * file
Definition: DQA_TO_DB.cxx:15
void SetTuningFile(std::vector< std::string > file)
void EndOfRunAction(const G4Run *)
void BeginOfRunAction(const G4Run *)