#include <BesRunAction.hh>
|
00022 :m_runId(0), m_MCTruthFlag(1), 00023 m_asciiFlag(""),m_asciiFile(""),m_asciiIO(0),m_rootFlag(true),m_rootFile(""),m_rootIO(0), 00024 m_tuningIO(0),m_TDSFlag(false),m_TDSWriter(0) 00025 { 00026 //m_runMessenger = new BesRunActionMessenger(this); 00027 }
|
|
00030 {
00031 //delete m_runMessenger;
00032 }
|
|
|
|
|
|
|
|
00035 { 00036 //set run Id, use old BES convention, -9 as default 00037 //aRun->SetRunID(runNumber); 00038 G4cout << "### Run " << aRun->GetRunID() << " start." << G4endl; 00039 m_runId= aRun->GetRunID(); 00040 00041 G4int flag[8]; 00042 G4int allflag=0; 00043 for (G4int i=0;i<8;i++) 00044 { 00045 flag[i]=m_asciiFlag[i]-'0'; 00046 allflag += flag[i]; 00047 } 00048 if (allflag) 00049 m_asciiIO = new BesAsciiIO(flag[0],flag[1],flag[2],flag[3],flag[4],flag[5],flag[6],flag[7],m_asciiFile); 00050 00051 if (m_rootFlag) 00052 m_rootIO = new BesRootIO(1,1,1,1,1,1,1,1,m_rootFile); 00053 00054 if (m_TDSFlag) 00055 m_TDSWriter = new BesTDSWriter; 00056 00057 if (ReadBoostRoot::GetTuning()){ 00058 std::vector<std::string>::iterator pd; 00059 for (pd = m_tuningFile.begin(); pd != m_tuningFile.end(); pd++){ 00060 std::cout << "BesRunAction tuning File: " << *pd << std::endl; 00061 } 00062 00063 m_tuningIO = new BesTuningIO(m_tuningFile); 00064 } 00065 }
|
|
|
|
00069 { 00070 if (m_asciiIO) 00071 delete m_asciiIO; 00072 if (m_rootIO) 00073 delete m_rootIO; 00074 if (m_TDSFlag) 00075 delete m_TDSWriter; 00076 if (m_tuningIO) 00077 delete m_tuningIO; 00078 }
|
|
00036 {return m_asciiIO;}
|
|
00036 {return m_asciiIO;}
|
|
00035 {return m_MCTruthFlag;}
|
|
00035 {return m_MCTruthFlag;}
|
|
00037 {return m_rootIO;}
|
|
00037 {return m_rootIO;}
|
|
00034 {return m_runId;}
|
|
00034 {return m_runId;}
|
|
00040 {return m_TDSFlag;}
|
|
00040 {return m_TDSFlag;}
|
|
00041 {return m_TDSWriter;}
|
|
00041 {return m_TDSWriter;}
|
|
00038 {return m_tuningIO;}
|
|
00038 {return m_tuningIO;}
|
|
00056 {m_asciiFile = file;}
|
|
00056 {m_asciiFile = file;}
|
|
00055 {m_asciiFlag = flag;}
|
|
00055 {m_asciiFlag = flag;}
|
|
00043 {m_MCTruthFlag = flag;}
|
|
00043 {m_MCTruthFlag = flag;}
|
|
00058 {m_rootFile = file;}
|
|
00058 {m_rootFile = file;}
|
|
00057 {m_rootFlag = flag;}
|
|
00057 {m_rootFlag = flag;}
|
|
00061 {m_TDSFlag = flag;}
|
|
00061 {m_TDSFlag = flag;}
|
|
00059 {m_tuningFile = file;}
|
|
00059 {m_tuningFile = file;}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|