36 #include "RunAction.hh"
39 #include "Analysis.hh"
41 #include "CommandLineParser.hh"
43 using namespace G4DNAPARSER;
45 void PrintNParticles(std::map<const G4ParticleDefinition*, int>& container);
50 fInitialized(0), fDebug(false)
108 G4cout <<
"===================================" <<
G4endl;
110 G4cout <<
"================ RunAction::BeginMaster" <<
G4endl;
112 G4cout <<
"===================================" <<
G4endl;
122 G4cout <<
"===================================" <<
G4endl;
123 G4cout <<
"================ RunAction::BeginWorker" <<
G4endl;
125 G4cout <<
"===================================" <<
G4endl;
148 if ( nofEvents == 0 )
152 G4cout <<
"================ NO EVENTS TREATED IN THIS RUN ==> Exit"
166 delete G4AnalysisManager::Instance();
192 G4cout <<
"##### Create analysis manager " <<
" " <<
this <<
G4endl;
196 G4cout <<
"Using " << analysisManager->GetType() <<
197 " analysis manager" <<
G4endl;
203 analysisManager->SetVerboseLevel(1);
207 if(command->
GetOption().empty() ==
false)
213 fileName =
"wholeNuclearDNA";
216 analysisManager->OpenFile(fileName);
219 analysisManager->CreateNtuple(
"ntuple",
"geom_dna");
220 analysisManager->CreateNtupleDColumn(
"flagParticle");
221 analysisManager->CreateNtupleDColumn(
"flagProcess");
222 analysisManager->CreateNtupleDColumn(
"flagVolume");
223 analysisManager->CreateNtupleDColumn(
"x");
224 analysisManager->CreateNtupleDColumn(
"y");
225 analysisManager->CreateNtupleDColumn(
"z");
226 analysisManager->CreateNtupleDColumn(
"edep");
227 analysisManager->CreateNtupleDColumn(
"stepLength");
229 analysisManager->FinishNtuple();
248 analysisManager->Write();
249 analysisManager->CloseFile();
256 G4cout <<
"================ Run is = "
258 G4cout <<
"================ Run type is = "
260 G4cout <<
"================ Event processed = "
262 G4cout <<
"================ Nevent = "
static G4RunManager * GetRunManager()
virtual const G4String & GetOption()
void EndOfRunAction(const G4Run *)
void EndMaster(const G4Run *)
void PrintRunInfo(const G4Run *run)
void BeginOfRunAction(const G4Run *)
G4int GetNumberOfEvent() const
void BeginWorker(const G4Run *)
void BeginMaster(const G4Run *)
void PrintNParticles(std::map< const G4ParticleDefinition *, int > &container)
G4CsvAnalysisManager G4AnalysisManager
CommandLineParser * parser(0)
G4int GetNumberOfEventToBeProcessed() const
Command * GetCommandIfActive(const G4String &marker)
G4GLOB_DLL std::ostream G4cout
void EndWorker(const G4Run *)
RMType GetRunManagerType() const
void InitializeWorker(const G4Run *)