Import Geant4 10.6.0 source tree

This commit is contained in:
Gabriele Cosmo
2019-12-06 15:12:28 +01:00
parent b2a62ae692
commit 5baee230e9
2997 changed files with 141580 additions and 98673 deletions
@@ -106,6 +106,7 @@ make parclean - Start over with clean set of files.
<hr>
New or modified files:
\verbatim
- ParN02.cc - Adds one line: #include "ParN02.icc"
ParExample.icc inserts: #include "topc.h"
and causes main to calls TOPC_init, TOPC_finalize,
@@ -133,8 +134,7 @@ New or modified files:
- ~/slave*.out - Contains outputs of slave1, slave2, etc.
Generated each time parallel ParN02 is executed.
These files are specified in the file procgroup.
<hr>
\endverbatim
This version passes an event number to the slave and lets the
slave generate the event. The slave passes back marshaled hits to
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file parallel/ParN02/AnnotatedFiles/G4HCofThisEvent.hh
/// \file G4HCofThisEvent.hh
/// \brief Definition of the G4HCofThisEvent class
//
//
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file parallel/ParN02/AnnotatedFiles/G4String.hh
/// \file G4String.hh
/// \brief Definition of the place-holder for the G4String class
//
/*
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file parallel/ParN02/AnnotatedFiles/G4THitsCollection.hh
/// \file G4THitsCollection.hh
/// \brief Definition of the G4THitsCollection class
//
//
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file parallel/ParN02/AnnotatedFiles/G4VHitsCollection.hh
/// \file G4VHitsCollection.hh
/// \brief Definition of the G4VHitsCollection class
//
//
@@ -1,6 +1,6 @@
// This file was generated automatically by marshalgen.
//
/// \file parallel/ParN02/AnnotatedFiles/MarshaledG4HCofThisEvent.h
/// \file MarshaledG4HCofThisEvent.h
/// \brief Definition of the MaraledG4HCofisEvent class
#ifndef MarshaledG4HCofThisEvent_H
@@ -1,6 +1,6 @@
// This file was generated automatically by marshalgen.
//
/// \file parallel/ParN02/AnnotatedFiles/MarshaledG4String.h
/// \file MarshaledG4String.h
/// \brief Definition of the MaraledG4String class
#ifndef MarshaledG4String_H
@@ -1,6 +1,6 @@
// This file was generated automatically by marshalgen.
//
/// \file parallel/ParN02/AnnotatedFiles/MarshaledG4THitsCollection.h
/// \file MarshaledG4THitsCollection.h
/// \brief Definition of the MaraledG4THitsCollection class
#ifndef MarshaledG4HitsCollection_H
@@ -1,6 +1,6 @@
// This file was generated automatically by marshalgen.
//
/// \file parallel/ParN02/AnnotatedFiles/MarshaledG4VHitsCollection.h
/// \file MarshaledG4VHitsCollection.h
/// \brief Definition of the MaraledG4VHitsCollection class
#ifndef MarshaledG4VHitsCollection_H
@@ -14,6 +14,9 @@ track of all tags.
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
November 28th, 2019 I.Hrivnacova (ParN02-V10-05-00)
- Fixed Doxygen warnings
October 14th, 2016 G.Folger (ParN02-V10-02-00)
- remove direct use of theParticleIterator, use GetParticleTableIterator().
fix required by clang39 on Linux and MAC
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file parallel/ParN02/ParN02.cc
/// \brief The user main program of the parallel/ParN02 example
/// \file ParN02.cc
/// \brief The user main program of the parallel/TopC/ParN02 example
//
//
//
@@ -42,14 +42,8 @@
#include "G4RunManager.hh"
#include "G4UImanager.hh"
#ifdef G4VIS_USE
#include "G4VisExecutive.hh"
#endif
#ifdef G4UI_USE
#include "G4UIExecutive.hh"
#endif
#include "ParTopC.icc"
@@ -57,6 +51,13 @@
int main(int argc,char** argv)
{
// Detect interactive mode (if no arguments) and define UI session
//
G4UIExecutive* ui = 0;
if ( argc == 1 ) {
ui = new G4UIExecutive(argc, argv);
}
// User Verbose output class
//
G4VSteppingVerbose* verbosity = new ExN02SteppingVerbose;
@@ -74,13 +75,6 @@ int main(int argc,char** argv)
G4VUserPhysicsList* physics = new ExN02PhysicsList;
runManager->SetUserInitialization(physics);
#ifdef G4VIS_USE
// Visualization, if you choose to have it!
//
G4VisManager* visManager = new G4VisExecutive;
visManager->Initialize();
#endif
// User Action classes
//
G4VUserPrimaryGeneratorAction* gen_action = new ExN02PrimaryGeneratorAction(detector);
@@ -95,6 +89,11 @@ int main(int argc,char** argv)
G4UserSteppingAction* stepping_action = new ExN02SteppingAction;
runManager->SetUserAction(stepping_action);
// Visualization, if you choose to have it!
//
G4VisManager* visManager = new G4VisExecutive;
visManager->Initialize();
// Initialize G4 kernel
//
runManager->Initialize();
@@ -103,33 +102,28 @@ int main(int argc,char** argv)
//
G4UImanager * UImanager = G4UImanager::GetUIpointer();
if(argc==1) // Define (G)UI terminal for interactive mode
{
#ifdef G4UI_USE
G4UIExecutive* ui = new G4UIExecutive(argc, argv);
UImanager->ApplyCommand("/run/beamOn 10");
ui->SessionStart();
delete ui;
#endif
}
else // Batch mode
{
// Process macro or start UI session
//
if ( ! ui ) {
// batch mode
G4String command = "/control/execute ";
G4String fileName = argv[1];
UImanager->ApplyCommand(command+fileName);
}
else {
// interactive mode
UImanager->ApplyCommand("/run/beamOn 10");
ui->SessionStart();
delete ui;
}
// Free the store: user actions, physics_list and detector_description are
// owned and deleted by the run manager, so they should not
// be deleted in the main() program !
#ifdef G4VIS_USE
delete visManager;
#endif
delete runManager;
delete verbosity;
return 0;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file parallel/ParN02/include/ExN02ChamberParameterisation.hh
/// \file ExN02ChamberParameterisation.hh
/// \brief Definition of the ExN02ChamberParameterisation class
//
//
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file parallel/ParN02/include/ExN02DetectorConstruction.hh
/// \file ExN02DetectorConstruction.hh
/// \brief Definition of the ExN02DetectorConstruction class
//
//
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file parallel/ParN02/include/ExN02DetectorMessenger.hh
/// \file ExN02DetectorMessenger.hh
/// \brief Definition of the ExN02DetectorMessenger class
//
//
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file parallel/ParN02/include/ExN02EventAction.hh
/// \file ExN02EventAction.hh
/// \brief Definition of the ExN02EventAction class
//
//
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file parallel/ParN02/include/ExN02MagneticField.hh
/// \file ExN02MagneticField.hh
/// \brief Definition of the ExN02MagneticField class
//
//
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file parallel/ParN02/include/ExN02PhysicsList.hh
/// \file ExN02PhysicsList.hh
/// \brief Definition of the ExN02PhysicsList class
//
//
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file parallel/ParN02/include/ExN02PrimaryGeneratorAction.hh
/// \file ExN02PrimaryGeneratorAction.hh
/// \brief Definition of the ExN02PrimaryGeneratorAction class
//
//
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file parallel/ParN02/include/ExN02RunAction.hh
/// \file ExN02RunAction.hh
/// \brief Definition of the ExN02RunAction class
//
//
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file parallel/ParN02/include/ExN02SteppingAction.hh
/// \file ExN02SteppingAction.hh
/// \brief Definition of the ExN02SteppingAction class
//
//
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file parallel/ParN02/include/ExN02SteppingVerbose.hh
/// \file ExN02SteppingVerbose.hh
/// \brief Definition of the ExN02SteppingVerbose class
//
//
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file parallel/ParN02/include/ExN02TrackerHit.hh
/// \file ExN02TrackerHit.hh
/// \brief Definition of the ExN02TrackerHit class
//
//
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file parallel/ParN02/include/ExN02TrackerSD.hh
/// \file ExN02TrackerSD.hh
/// \brief Definition of the ExN02TrackerSD class
//
//
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file parallel/ParN02/include/ParRunManager.hh
/// \file ParRunManager.hh
/// \brief Definition of the ParRunManager class
//
//
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file parallel/ParN02/src/ExN02ChamberParameterisation.cc
/// \file ExN02ChamberParameterisation.cc
/// \brief Implementation of the ExN02ChamberParameterisation class
//
//
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file parallel/ParN02/src/ExN02DetectorConstruction.cc
/// \file ExN02DetectorConstruction.cc
/// \brief Implementation of the ExN02DetectorConstruction class
//
//
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file parallel/ParN02/src/ExN02DetectorMessenger.cc
/// \file ExN02DetectorMessenger.cc
/// \brief Implementation of the ExN02DetectorMessenger class
//
//
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file parallel/ParN02/src/ExN02EventAction.cc
/// \file ExN02EventAction.cc
/// \brief Implementation of the ExN02EventAction class
//
//
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file parallel/ParN02/src/ExN02MagneticField.cc
/// \file ExN02MagneticField.cc
/// \brief Implementation of the ExN02MagneticField class
//
//
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file parallel/ParN02/src/ExN02PhysicsList.cc
/// \file ExN02PhysicsList.cc
/// \brief Implementation of the ExN02PhysicsList class
//
//
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file parallel/ParN02/src/ExN02PrimaryGeneratorAction.cc
/// \file ExN02PrimaryGeneratorAction.cc
/// \brief Implementation of the ExN02PrimaryGeneratorAction class
//
//
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file parallel/ParN02/src/ExN02RunAction.cc
/// \file ExN02RunAction.cc
/// \brief Implementation of the ExN02RunAction class
//
//
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file parallel/ParN02/src/ExN02SteppingAction.cc
/// \file ExN02SteppingAction.cc
/// \brief Implementation of the ExN02SteppingAction class
//
//
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file parallel/ParN02/src/ExN02SteppingVerbose.cc
/// \file ExN02SteppingVerbose.cc
/// \brief Implementation of the ExN02SteppingVerbose class
//
//
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file parallel/ParN02/src/ExN02TrackerHit.cc
/// \file ExN02TrackerHit.cc
/// \brief Implementation of the ExN02TrackerHit class
//
//
@@ -23,7 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file parallel/ParN02/src/ExN02TrackerSD.cc
/// \file ExN02TrackerSD.cc
/// \brief Implementation of the ExN02TrackerSD class
//
//
@@ -24,7 +24,7 @@
// ********************************************************************
//
//
/// \file parallel/ParN02/src/ParRunManager.cc
/// \file ParRunManager.cc
/// \brief Implementation of the ParRunManager class
//
#ifdef G4USE_TOPC