Import Geant4 1.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 15:34:16 +02:00
parent ca1c8cb059
commit 103bda00c8
2654 changed files with 29719 additions and 20203 deletions
+11 -11
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: clGeometry.cc,v 1.9 1999/12/05 17:50:22 gcosmo Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: clGeometry.cc,v 1.10 1999/12/15 14:49:44 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
@@ -44,32 +44,32 @@ G4int main(int argc, char** argv)
if (argc < 2) {
G4cerr << "clGeometry: Correct syntax: clGeometry <call_list_file> [ <macro_file> ]"
<< endl;
<< G4endl;
G4cerr << "If only one argument is specified, interactive mode will be "
<< "entered." << endl << "The second argument, if specified, is "
<< "the name of the macro file (batch mode)." << endl;
<< "entered." << G4endl << "The second argument, if specified, is "
<< "the name of the macro file (batch mode)." << G4endl;
return EXIT_FAILURE;
}
if (argc >= 2) {
// Process the command line
inFile = argv[1];
ifstream in(inFile);
G4std::ifstream in(inFile);
if (!in) {
G4cerr << "Cannot open input file \"" << inFile << "\"" << endl;
G4cerr << "Cannot open input file \"" << inFile << "\"" << G4endl;
return EXIT_FAILURE;
}
}
if (argc >= 3) {
macroFile = argv[2];
ifstream mac(macroFile);
G4std::ifstream mac(macroFile);
if (!mac) {
G4cout << "Cannot open macro file """ << macroFile << """" << endl;
G4cout << "Cannot open macro file """ << macroFile << """" << G4endl;
return 2;
}
}
if (argc >= 4) {
G4cerr << "Too many command line arguments (" << argc <<")" << endl;
G4cerr << "Too many command line arguments (" << argc <<")" << G4endl;
return EXIT_FAILURE;
}
@@ -122,7 +122,7 @@ G4int main(int argc, char** argv)
if (session != 0) {
session->SessionStart();
delete session;
// G4cout << "deleted G4UITerminal..." << endl;
// G4cout << "deleted G4UITerminal..." << G4endl;
}
}
else {
+11 -11
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: cltog4.cc,v 1.6 1999/12/05 17:50:22 gcosmo Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: cltog4.cc,v 1.7 1999/12/15 14:49:45 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
#include "G4ios.hh"
@@ -35,33 +35,33 @@ G4int main(int argc, char** argv)
if (argc < 2) {
G4cout << "Correct syntax:" << argv[0] << " <call_list_file> [ <macro_file> ]"
<< endl;
<< G4endl;
G4cout << "If only one argument is specified, macro file " << macroFile
<< "will be used." << endl
<< "will be used." << G4endl
<< "The second argument is used to override the default macro file"
<< " name." << endl;
<< " name." << G4endl;
return 1;
}
if (argc >= 2) {
// Process the command line
inFile = argv[1];
ifstream in(inFile);
G4std::ifstream in(inFile);
if (!in) {
G4cout << "Cannot open input file """ << inFile << """" << endl;
G4cout << "Cannot open input file """ << inFile << """" << G4endl;
return 1;
}
}
if (argc >= 3) {
macroFile = argv[2];
ifstream mac(macroFile);
G4std::ifstream mac(macroFile);
if (!mac) {
G4cout << "Cannot open macro file """ << macroFile << """" << endl;
G4cout << "Cannot open macro file """ << macroFile << """" << G4endl;
return 2;
}
}
if (argc >= 4) {
G4cout << "Too many command line arguments (" << argc <<")" << endl;
G4cout << "Too many command line arguments (" << argc <<")" << G4endl;
return 1;
}
// run manager
@@ -90,7 +90,7 @@ G4int main(int argc, char** argv)
if (session != 0) {
session->SessionStart();
delete session;
// G4cout << "deleted G4UITerminal..." << endl;
// G4cout << "deleted G4UITerminal..." << G4endl;
}
}
else {
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G3toG4DetectorConstruction.hh,v 1.3 1999/12/05 17:50:25 gcosmo Exp $
// GEANT4 tag $Name: geant4-01-00 $
// GEANT4 tag $Name: geant4-01-01 $
//
#ifndef G3toG4DetectorConstruction_h
#define G3toG4DetectorConstruction_h 1
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G3toG4EventAction.hh,v 1.3 1999/12/05 17:50:25 gcosmo Exp $
// GEANT4 tag $Name: geant4-01-00 $
// GEANT4 tag $Name: geant4-01-01 $
//
//
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G3toG4EventActionMessenger.hh,v 1.2 1999/12/05 17:50:25 gcosmo Exp $
// GEANT4 tag $Name: geant4-01-00 $
// GEANT4 tag $Name: geant4-01-01 $
//
//
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G3toG4PhysicsList.hh,v 1.4 1999/12/05 17:50:25 gcosmo Exp $
// GEANT4 tag $Name: geant4-01-00 $
// GEANT4 tag $Name: geant4-01-01 $
//
//
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G3toG4PrimaryGeneratorAction.hh,v 1.3 1999/12/05 17:50:25 gcosmo Exp $
// GEANT4 tag $Name: geant4-01-00 $
// GEANT4 tag $Name: geant4-01-01 $
//
#ifndef G3toG4PrimaryGeneratorAction_h
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G3toG4RunAction.hh,v 1.3 1999/12/05 17:50:26 gcosmo Exp $
// GEANT4 tag $Name: geant4-01-00 $
// GEANT4 tag $Name: geant4-01-01 $
//
#ifndef G3toG4RunAction_h
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G3toG4VisManager.hh,v 1.2 1999/12/05 17:50:26 gcosmo Exp $
// GEANT4 tag $Name: geant4-01-00 $
// GEANT4 tag $Name: geant4-01-01 $
//
//
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G3toG4DetectorConstruction.cc,v 1.6 1999/12/05 17:50:28 gcosmo Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G3toG4DetectorConstruction.cc,v 1.7 1999/12/15 14:49:45 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//--------------------------------------------------------------------------
// G3toG4DetectorConstruction. Most the work is Done in
@@ -25,11 +25,11 @@
G3toG4DetectorConstruction::G3toG4DetectorConstruction(G4String inFile){
_inFile = inFile;
G4cout << "Instantiated G3toG4DetectorConstruction using call list file \""
<< _inFile << "\"" << endl;
<< _inFile << "\"" << G4endl;
}
G3toG4DetectorConstruction::~G3toG4DetectorConstruction(){
// G4cout << "Deleted G3toG4DetectorConstruction..." << endl;
// G4cout << "Deleted G3toG4DetectorConstruction..." << G4endl;
}
G4VPhysicalVolume*
@@ -40,9 +40,9 @@ G3toG4DetectorConstruction::Construct(){
_pv = new G4PVPlacement(0, G4ThreeVector(), _lv, _lv->GetName(), 0,
false, 0);
G4cout << "Top-level G3toG4 logical volume " << _lv->GetName() << " "
<< *(_lv -> GetVisAttributes()) << endl;
<< *(_lv -> GetVisAttributes()) << G4endl;
} else
G4cerr << "creation of logical mother failed !!!" << endl;
G4cerr << "creation of logical mother failed !!!" << G4endl;
return _pv;
}
G4LogicalVolume*
+4 -4
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G3toG4EventAction.cc,v 1.6 1999/12/05 17:50:28 gcosmo Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G3toG4EventAction.cc,v 1.7 1999/12/15 14:49:45 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
@@ -52,7 +52,7 @@ void G3toG4EventAction::EndOfEventAction(const G4Event* Ev)
{
const G4Event* evt = fpEventManager->GetConstCurrentEvent();
G4cout << ">>> Event " << evt->GetEventID() << endl;
G4cout << ">>> Event " << evt->GetEventID() << G4endl;
G4TrajectoryContainer * trajectoryContainer = evt->GetTrajectoryContainer();
G4int n_trajectories = 0;
@@ -60,7 +60,7 @@ void G3toG4EventAction::EndOfEventAction(const G4Event* Ev)
n_trajectories = trajectoryContainer->entries();
}
G4cout << " " << n_trajectories
<< " trajectories stored in this event." << endl;
<< " trajectories stored in this event." << G4endl;
if(G4VVisManager::GetConcreteInstance()){
for(G4int i=0; i<n_trajectories; i++) {
@@ -6,7 +6,7 @@
// and all its terms.
//
// $Id: G3toG4EventActionMessenger.cc,v 1.2 1999/12/05 17:50:29 gcosmo Exp $
// GEANT4 tag $Name: geant4-01-00 $
// GEANT4 tag $Name: geant4-01-01 $
//
//
+3 -3
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G3toG4PhysicsList.cc,v 1.6 1999/12/05 17:50:29 gcosmo Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G3toG4PhysicsList.cc,v 1.7 1999/12/15 14:49:45 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
@@ -226,7 +226,7 @@ void G3toG4PhysicsList::SetCuts()
if (verboseLevel >0){
G4cout << "G3toG4PhysicsList::SetCuts:";
G4cout << "CutLength : " << G4BestUnit(defaultCutValue,"Length") << endl;
G4cout << "CutLength : " << G4BestUnit(defaultCutValue,"Length") << G4endl;
}
// set cut values for gamma at first and for e- second and next for e+,
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G3toG4PrimaryGeneratorAction.cc,v 1.3 1999/12/05 17:50:29 gcosmo Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G3toG4PrimaryGeneratorAction.cc,v 1.4 1999/12/15 14:49:45 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
#include "globals.hh"
@@ -39,7 +39,7 @@ G3toG4PrimaryGeneratorAction::~G3toG4PrimaryGeneratorAction(){
void
G3toG4PrimaryGeneratorAction::GeneratePrimaries(G4Event* anEvent){
G4ThreeVector direction = GetRandomDirection();
G4cout << ">>>>>>>> Primary direction: " << direction << endl;
G4cout << ">>>>>>>> Primary direction: " << direction << G4endl;
particleGun->SetParticleMomentumDirection( direction.unit() ) ;
particleGun->GeneratePrimaryVertex(anEvent);
particleGun->GeneratePrimaryVertex(anEvent);
+3 -3
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G3toG4RunAction.cc,v 1.5 1999/12/05 17:50:29 gcosmo Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G3toG4RunAction.cc,v 1.6 1999/12/15 14:49:45 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
#include "G4ios.hh"
@@ -24,7 +24,7 @@ G3toG4RunAction::~G3toG4RunAction(){;}
void G3toG4RunAction::BeginOfRunAction(const G4Run* aRun){
((G4Run *)(aRun))->SetRunID(runIDcounter++);
G4cout << "### Run " << aRun->GetRunID() << " start." << endl;
G4cout << "### Run " << aRun->GetRunID() << " start." << G4endl;
G4UImanager* UI = G4UImanager::GetUIpointer();
+3 -3
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G3toG4VisManager.cc,v 1.3 1999/12/05 17:50:29 gcosmo Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G3toG4VisManager.cc,v 1.4 1999/12/15 14:49:45 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// John Allison 24th January 1998.
@@ -132,7 +132,7 @@ void G3toG4VisManager::RegisterGraphicsSystems () {
if (fVerbose > 0) {
G4cout <<
"\nYou have successfully chosen to use the following graphics systems."
<< endl;
<< G4endl;
PrintAvailableGraphicsSystems ();
}
}