physics verbose added and comments to delete image

parent ff1f0af8
......@@ -73,15 +73,16 @@ int main(int argc,char** argv)
runManager->SetUserInitialization(new B1DetectorConstruction());
// Physics list - FTFP_BERT - p/shower
G4VModularPhysicsList* physicsList = new FTFP_BERT;
physicsList->SetVerboseLevel(1);
// added verbose to the physics list
G4int verbose = 2;
G4VModularPhysicsList* physicsList = new FTFP_BERT(verbose);
runManager->SetUserInitialization(physicsList);
// User action initialization
runManager->SetUserInitialization(new B1ActionInitialization());
// Initialize visualization
//
// (if you don't want the image, just delete the G4VisManager objetc and everything that concerns it)
G4VisManager* visManager = new G4VisExecutive;
// G4VisExecutive can take a verbosity argument - see /vis/verbose guidance.
// G4VisManager* visManager = new G4VisExecutive("Quiet");
......@@ -91,7 +92,7 @@ int main(int argc,char** argv)
G4UImanager* UImanager = G4UImanager::GetUIpointer();
// Process macro or start UI session
//
// (you can delete this if-clause too.)
if ( ! ui ) {
// batch mode
G4String command = "/control/execute ";
......@@ -110,8 +111,8 @@ int main(int argc,char** argv)
// owned and deleted by the run manager, so they should not be deleted
// in the main() program !
delete visManager;
delete visManager; //(delete this line too if you don't want image).
delete runManager;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.....
\ No newline at end of file
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.....
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment