BOSS 8.0.0
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 {
25public:
28
29public:
30 void BeginOfRunAction( const G4Run* );
31 void EndOfRunAction( const G4Run* );
32
33 G4int GetRunId() { return m_runId; }
34 G4int GetMCTruthFlag() { return m_MCTruthFlag; }
35 BesAsciiIO* GetAsciiIO() { return m_asciiIO; }
36 BesRootIO* GetRootIO() { return m_rootIO; }
37 BesTuningIO* GetTuningIO() { return m_tuningIO; }
38
39 G4bool GetTDSFlag() { return m_TDSFlag; }
40 BesTDSWriter* GetTDSWriter() { return m_TDSWriter; }
41
42 void SetMCTruthFlag( G4int flag ) { m_MCTruthFlag = flag; }
43
44 /*void SetMdcTruFlag(G4int flag) {m_mdcTruFlag = flag;}
45 void SetTofTruFlag(G4int flag) {m_tofTruFlag = flag;}
46 void SetEmcTruFlag(G4int flag) {m_emcTruFlag = flag;}
47 void SetMucTruFlag(G4int flag) {m_mucTruFlag = flag;}
48
49 void SetMdcDigiFlag(G4int flag) {m_mdcDigiFlag = flag;}
50 void SetTofDigiFlag(G4int flag) {m_tofDigiFlag = flag;}
51 void SetEmcDigiFlag(G4int flag) {m_emcDigiFlag = flag;}
52 void SetMucDigiFlag(G4int flag) {m_mucDigiFlag = flag;}
53 */
54 void SetAsciiFlag( std::string flag ) { m_asciiFlag = flag; }
55 void SetAsciiFile( std::string file ) { m_asciiFile = file; }
56 void SetRootFlag( G4bool flag ) { m_rootFlag = flag; }
57 void SetRootFile( std::string file ) { m_rootFile = file; }
58 void SetTuningFile( std::vector<std::string> file ) { m_tuningFile = file; }
59
60 void SetTDSFlag( G4bool flag ) { m_TDSFlag = flag; }
61
62private:
63 G4int m_runId;
64 G4int m_MCTruthFlag;
65
66 /*G4int m_mdcTruFlag;
67 G4int m_tofTruFlag;
68 G4int m_emcTruFlag;
69 G4int m_mucTruFlag;
70
71 G4int m_mdcDigiFlag;
72 G4int m_tofDigiFlag;
73 G4int m_emcDigiFlag;
74 G4int m_mucDigiFlag;
75 */
76 std::string m_asciiFlag;
77 std::string m_asciiFile;
78 G4bool m_rootFlag;
79 std::string m_rootFile;
80 std::vector<std::string> m_tuningFile;
81
82 BesAsciiIO* m_asciiIO;
83 BesRootIO* m_rootIO;
84 BesTuningIO* m_tuningIO;
85
86 G4bool m_TDSFlag;
87 BesTDSWriter* m_TDSWriter;
88
89 BesRunActionMessenger* m_runMessenger;
90};
91
92#endif
char * file
Definition DQA_TO_DB.cxx:16
void SetTuningFile(std::vector< std::string > file)
void SetMCTruthFlag(G4int flag)
BesTuningIO * GetTuningIO()
void SetRootFile(std::string file)
G4bool GetTDSFlag()
void SetTDSFlag(G4bool flag)
G4int GetRunId()
void SetRootFlag(G4bool flag)
void EndOfRunAction(const G4Run *)
void SetAsciiFlag(std::string flag)
void BeginOfRunAction(const G4Run *)
BesRootIO * GetRootIO()
void SetAsciiFile(std::string file)
BesTDSWriter * GetTDSWriter()
G4int GetMCTruthFlag()
BesAsciiIO * GetAsciiIO()