#include <BesRunAction.hh>
◆ BesRunAction() [1/2]
BesRunAction::BesRunAction |
( |
| ) |
|
Definition at line 21 of file BesRunAction.cc.
22 :m_runId(0), m_MCTruthFlag(1),
23 m_asciiFlag(""),m_asciiFile(""),m_asciiIO(0),m_rootFlag(true),m_rootFile(""),m_rootIO(0),
24 m_tuningIO(0),m_TDSFlag(false),m_TDSWriter(0)
25{
26
27}
◆ ~BesRunAction() [1/2]
BesRunAction::~BesRunAction |
( |
| ) |
|
◆ BesRunAction() [2/2]
BesRunAction::BesRunAction |
( |
| ) |
|
◆ ~BesRunAction() [2/2]
BesRunAction::~BesRunAction |
( |
| ) |
|
◆ BeginOfRunAction() [1/2]
void BesRunAction::BeginOfRunAction |
( |
const G4Run * |
aRun | ) |
|
Definition at line 34 of file BesRunAction.cc.
35{
36
37
38 G4cout << "### Run " << aRun->GetRunID() << " start." << G4endl;
39 m_runId= aRun->GetRunID();
40
42 G4int allflag=0;
43 for (G4int i=0;i<8;i++)
44 {
45 flag[i]=m_asciiFlag[i]-
'0';
47 }
48 if (allflag)
50
51 if (m_rootFlag)
52 m_rootIO =
new BesRootIO(1,1,1,1,1,1,1,1,m_rootFile);
53
54 if (m_TDSFlag)
56
58 std::vector<std::string>::iterator pd;
59 for (pd = m_tuningFile.begin(); pd != m_tuningFile.end(); pd++){
60 std::cout << "BesRunAction tuning File: " << *pd << std::endl;
61 }
62
64 }
65}
◆ BeginOfRunAction() [2/2]
void BesRunAction::BeginOfRunAction |
( |
const G4Run * |
| ) |
|
◆ EndOfRunAction() [1/2]
void BesRunAction::EndOfRunAction |
( |
const G4Run * |
| ) |
|
Definition at line 68 of file BesRunAction.cc.
69{
70 if (m_asciiIO)
71 delete m_asciiIO;
72 if (m_rootIO)
73 delete m_rootIO;
74 if (m_TDSFlag)
75 delete m_TDSWriter;
76 if (m_tuningIO)
77 delete m_tuningIO;
78}
◆ EndOfRunAction() [2/2]
void BesRunAction::EndOfRunAction |
( |
const G4Run * |
| ) |
|
◆ GetAsciiIO() [1/2]
◆ GetAsciiIO() [2/2]
◆ GetMCTruthFlag() [1/2]
G4int BesRunAction::GetMCTruthFlag |
( |
| ) |
|
|
inline |
◆ GetMCTruthFlag() [2/2]
G4int BesRunAction::GetMCTruthFlag |
( |
| ) |
|
|
inline |
◆ GetRootIO() [1/2]
◆ GetRootIO() [2/2]
◆ GetRunId() [1/2]
G4int BesRunAction::GetRunId |
( |
| ) |
|
|
inline |
◆ GetRunId() [2/2]
G4int BesRunAction::GetRunId |
( |
| ) |
|
|
inline |
◆ GetTDSFlag() [1/2]
G4bool BesRunAction::GetTDSFlag |
( |
| ) |
|
|
inline |
◆ GetTDSFlag() [2/2]
G4bool BesRunAction::GetTDSFlag |
( |
| ) |
|
|
inline |
◆ GetTDSWriter() [1/2]
◆ GetTDSWriter() [2/2]
◆ GetTuningIO() [1/2]
◆ GetTuningIO() [2/2]
◆ SetAsciiFile() [1/2]
void BesRunAction::SetAsciiFile |
( |
std::string |
file | ) |
|
|
inline |
◆ SetAsciiFile() [2/2]
void BesRunAction::SetAsciiFile |
( |
std::string |
file | ) |
|
|
inline |
◆ SetAsciiFlag() [1/2]
void BesRunAction::SetAsciiFlag |
( |
std::string |
flag | ) |
|
|
inline |
◆ SetAsciiFlag() [2/2]
void BesRunAction::SetAsciiFlag |
( |
std::string |
flag | ) |
|
|
inline |
◆ SetMCTruthFlag() [1/2]
void BesRunAction::SetMCTruthFlag |
( |
G4int |
flag | ) |
|
|
inline |
◆ SetMCTruthFlag() [2/2]
void BesRunAction::SetMCTruthFlag |
( |
G4int |
flag | ) |
|
|
inline |
◆ SetRootFile() [1/2]
void BesRunAction::SetRootFile |
( |
std::string |
file | ) |
|
|
inline |
◆ SetRootFile() [2/2]
void BesRunAction::SetRootFile |
( |
std::string |
file | ) |
|
|
inline |
◆ SetRootFlag() [1/2]
void BesRunAction::SetRootFlag |
( |
G4bool |
flag | ) |
|
|
inline |
◆ SetRootFlag() [2/2]
void BesRunAction::SetRootFlag |
( |
G4bool |
flag | ) |
|
|
inline |
◆ SetTDSFlag() [1/2]
void BesRunAction::SetTDSFlag |
( |
G4bool |
flag | ) |
|
|
inline |
◆ SetTDSFlag() [2/2]
void BesRunAction::SetTDSFlag |
( |
G4bool |
flag | ) |
|
|
inline |
◆ SetTuningFile() [1/2]
void BesRunAction::SetTuningFile |
( |
std::vector< std::string > |
file | ) |
|
|
inline |
◆ SetTuningFile() [2/2]
void BesRunAction::SetTuningFile |
( |
std::vector< std::string > |
file | ) |
|
|
inline |
The documentation for this class was generated from the following files: