Commit ae59303a authored by MARCOS ANTONIO DE OLIVEIRA DEROS's avatar MARCOS ANTONIO DE OLIVEIRA DEROS
Browse files

physics verbose added and comments to delete image

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