11#include "BesRunAction.hh"
14#include "BesAsciiIO.hh"
15#include "BesRootIO.hh"
16#include "BesTDSWriter.hh"
17#include "BesTuningIO.hh"
19#include "ReadBoostRoot.hh"
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)
38 G4cout <<
"### Run " << aRun->GetRunID() <<
" start." << G4endl;
39 m_runId= aRun->GetRunID();
43 for (G4int i=0;i<8;i++)
45 flag[i]=m_asciiFlag[i]-
'0';
52 m_rootIO =
new BesRootIO(1,1,1,1,1,1,1,1,m_rootFile);
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;
void EndOfRunAction(const G4Run *)
void BeginOfRunAction(const G4Run *)