output file
This commit is contained in:
+4
-1
@@ -19,6 +19,7 @@ void G4System::init(GeometryDescriptor &CW){
|
||||
assigned_cw->unAssign();
|
||||
}
|
||||
assigned_cw = &CW;
|
||||
CW.setG4System(this);//link both ways
|
||||
|
||||
char* argv[]={(char*)"dummy"};
|
||||
|
||||
@@ -156,7 +157,8 @@ void G4System::run_gui(){
|
||||
}
|
||||
}
|
||||
|
||||
void G4System::run_batch(int nEvents,const std::string& partSpecies, double minEnergy, double maxEnergy){
|
||||
void G4System::run_batch(int nEvents,const std::string& partSpecies, double minEnergy,
|
||||
double maxEnergy, std::string filename){
|
||||
check();
|
||||
|
||||
|
||||
@@ -165,6 +167,7 @@ void G4System::run_batch(int nEvents,const std::string& partSpecies, double minE
|
||||
UImanager->ApplyCommand("/run/initialize");
|
||||
UImanager->ApplyCommand("/vis/disable");
|
||||
actionInitialization->setGeneratorProperties(minEnergy, maxEnergy, partSpec);
|
||||
actionInitialization->setFileName(filename);
|
||||
runManager->BeamOn(nEvents);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user