Import Geant4 0.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 15:09:25 +02:00
parent b97f8d0df7
commit aaa409b6ee
2922 changed files with 55107 additions and 81674 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
# $Id: GNUmakefile,v 2.1 1998/07/02 15:26:52 gunter Exp $
# $Id: GNUmakefile,v 1.1 1999/01/07 16:05:42 gunter Exp $
# --------------------------------------------------------------
# GNUmakefile for examples module. Gabriele Cosmo, 06/04/98.
# --------------------------------------------------------------
+4 -1
View File
@@ -1,4 +1,4 @@
$Id: History,v 2.13 1998/12/08 16:37:28 allison Exp $
$Id: History,v 1.2 1999/04/16 11:19:54 kurasige Exp $
-------------------------------------------------------------------
=========================================================
@@ -14,6 +14,9 @@ track of all tags.
----------------------------------------------------------
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
16th April 1999 H.Kurashige
- modify ExN02SteppingAction::UserSteppingAction
- modify ExN02PhysicsList::SetCuts
4th December 1998 John Apostolakis
+1 -1
View File
@@ -1,4 +1,4 @@
$Id: README,v 2.4 1998/10/09 14:27:35 japost Exp $
$Id: README,v 1.1 1999/01/07 16:05:43 gunter Exp $
-------------------------------------------------------------------
=========================================================
+2 -2
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: exampleN02.cc,v 2.11 1998/12/08 16:37:28 allison Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: exampleN02.cc,v 1.1 1999/01/07 16:05:43 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// --------------------------------------------------------------
+1 -3
View File
@@ -7,9 +7,7 @@
/gun/particle e+
/run/beamOn 1
/run/beamOn 10
/tracking/verbose 0
/run/beamOn 100
# /run/beamOn 1000
exit
File diff suppressed because it is too large Load Diff
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN02ChamberParameterisation.hh,v 1.2 1998/11/30 17:18:43 japost Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: ExN02ChamberParameterisation.hh,v 1.1 1999/01/07 16:05:46 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// A parameterisation that describes a series of boxes along Z
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN02DetectorConstruction.hh,v 1.3 1998/10/09 14:31:01 japost Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: ExN02DetectorConstruction.hh,v 1.1 1999/01/07 16:05:46 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN02DetectorMessenger.hh,v 1.3 1998/10/09 14:31:02 japost Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: ExN02DetectorMessenger.hh,v 1.1 1999/01/07 16:05:46 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN02EventAction.hh,v 1.3 1998/10/09 14:31:02 japost Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: ExN02EventAction.hh,v 1.2 1999/04/24 09:38:03 asaim Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
@@ -24,8 +24,8 @@ class ExN02EventAction : public G4UserEventAction
~ExN02EventAction();
public:
void BeginOfEventAction();
void EndOfEventAction();
void BeginOfEventAction(const G4Event*);
void EndOfEventAction(const G4Event*);
private:
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN02MagneticField.hh,v 1.1 1998/10/09 14:31:03 japost Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: ExN02MagneticField.hh,v 1.1 1999/01/07 16:05:47 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// A class for control of the Magnetic Field of the detector.
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN02PhysicsList.hh,v 1.4 1998/10/09 14:31:03 japost Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: ExN02PhysicsList.hh,v 1.2 1999/04/16 11:19:56 kurasige Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// ------------------------------------------------------------
@@ -52,8 +52,9 @@ class ExN02PhysicsList: public G4VUserPhysicsList
virtual void ConstructProcess();
//
virtual void SetCuts(G4double aCut);
virtual void SetCuts();
protected:
// these methods Construct particles
virtual void ConstructBosons();
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN02PrimaryGeneratorAction.hh,v 1.3 1998/10/09 14:31:04 japost Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: ExN02PrimaryGeneratorAction.hh,v 1.1 1999/01/07 16:05:47 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN02PrimaryGeneratorMessenger.hh,v 1.3 1998/10/09 14:31:05 japost Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: ExN02PrimaryGeneratorMessenger.hh,v 1.1 1999/01/07 16:05:47 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN02RunAction.hh,v 1.3 1998/10/09 14:31:06 japost Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: ExN02RunAction.hh,v 1.2 1999/04/16 11:19:56 kurasige Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
@@ -22,11 +22,11 @@ class ExN02RunAction : public G4UserRunAction
{
public:
ExN02RunAction();
~ExN02RunAction();
virtual ~ExN02RunAction();
public:
void BeginOfRunAction(G4Run* aRun);
void EndOfRunAction(G4Run* aRun);
virtual void BeginOfRunAction(const G4Run* aRun);
virtual void EndOfRunAction(const G4Run* aRun);
private:
G4int runIDcounter;
@@ -34,3 +34,7 @@ class ExN02RunAction : public G4UserRunAction
#endif
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN02SteppingAction.hh,v 1.3 1998/10/09 14:31:06 japost Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: ExN02SteppingAction.hh,v 1.2 1999/04/16 11:19:57 kurasige Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
@@ -23,9 +23,9 @@ class ExN02SteppingAction : public G4UserSteppingAction
{
public:
ExN02SteppingAction(ExN02DetectorConstruction* myDC,ExN02EventAction* myEA);
~ExN02SteppingAction(){};
virtual ~ExN02SteppingAction(){};
void UserSteppingAction();
virtual void UserSteppingAction(const G4Step*);
private:
ExN02DetectorConstruction* myDetector;
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN02TrackerHit.hh,v 1.1 1998/10/09 14:31:07 japost Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: ExN02TrackerHit.hh,v 1.1 1999/01/07 16:05:48 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
#ifndef ExN02TrackerHit_h
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN02TrackerSD.hh,v 1.1 1998/10/09 14:31:08 japost Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: ExN02TrackerSD.hh,v 1.1 1999/01/07 16:05:48 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
#ifndef ExN02TrackerSD_h
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN02VisManager.hh,v 1.3 1998/10/09 14:31:09 japost Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: ExN02VisManager.hh,v 1.2 1999/06/24 07:48:46 stesting Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
@@ -31,6 +31,8 @@
#ifndef ExN02VisManager_h
#define ExN02VisManager_h 1
#ifdef G4VIS_USE
#include "G4VisManager.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
@@ -48,3 +50,5 @@ private:
};
#endif
#endif
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN02ChamberParameterisation.cc,v 1.1 1998/10/09 14:35:30 japost Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: ExN02ChamberParameterisation.cc,v 1.1 1999/01/07 16:05:48 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
#include "ExN02ChamberParameterisation.hh"
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN02DetectorConstruction.cc,v 1.9 1998/12/04 21:26:12 japost Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: ExN02DetectorConstruction.cc,v 1.1 1999/01/07 16:05:48 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN02DetectorMessenger.cc,v 1.4 1998/10/09 14:35:32 japost Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: ExN02DetectorMessenger.cc,v 1.1 1999/01/07 16:05:49 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
+4 -6
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN02EventAction.cc,v 1.3 1998/10/09 14:35:32 japost Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: ExN02EventAction.cc,v 1.2 1999/04/24 09:38:04 asaim Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
@@ -27,13 +27,11 @@ ExN02EventAction::ExN02EventAction()
ExN02EventAction::~ExN02EventAction()
{}
void ExN02EventAction::BeginOfEventAction()
void ExN02EventAction::BeginOfEventAction(const G4Event*)
{}
void ExN02EventAction::EndOfEventAction()
void ExN02EventAction::EndOfEventAction(const G4Event* evt)
{
const G4Event* evt = fpEventManager->GetConstCurrentEvent();
G4cout << ">>> Event " << evt->GetEventID() << endl;
G4TrajectoryContainer * trajectoryContainer = evt->GetTrajectoryContainer();
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN02MagneticField.cc,v 1.2 1998/12/04 20:25:22 japost Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: ExN02MagneticField.cc,v 1.1 1999/01/07 16:05:49 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// User Field class implementation.
+16 -28
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN02PhysicsList.cc,v 1.4 1998/10/09 14:35:33 japost Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: ExN02PhysicsList.cc,v 1.2 1999/04/16 11:19:59 kurasige Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// ------------------------------------------------------------
@@ -40,7 +40,7 @@ ExN02PhysicsList::ExN02PhysicsList(): G4VUserPhysicsList(),
theeplusAnnihilation(NULL)
{
defaultCutValue = 2.0*mm;
SetVerboseLevel(1);
SetVerboseLevel(1);
}
ExN02PhysicsList::~ExN02PhysicsList()
@@ -69,28 +69,29 @@ void ExN02PhysicsList::ConstructBosons()
// gamma
G4Gamma::GammaDefinition();
// optical photon
G4OpticalPhoton::OpticalPhotonDefinition();
}
void ExN02PhysicsList::ConstructLeptons()
{
// leptons
// e+/-
G4Electron::ElectronDefinition();
G4Positron::PositronDefinition();
// mu+/-
G4MuonPlus::MuonPlusDefinition();
G4MuonMinus::MuonMinusDefinition();
// nu_e
G4NeutrinoE::NeutrinoEDefinition();
G4AntiNeutrinoE::AntiNeutrinoEDefinition();
// nu_mu
G4NeutrinoMu::NeutrinoMuDefinition();
G4AntiNeutrinoMu::AntiNeutrinoMuDefinition();
}
void ExN02PhysicsList::ConstructMesons()
{
// mesons
// mesons
// light mesons
G4PionPlus::PionPlusDefinition();
G4PionMinus::PionMinusDefinition();
G4PionZero::PionZeroDefinition();
@@ -107,9 +108,10 @@ void ExN02PhysicsList::ConstructMesons()
void ExN02PhysicsList::ConstructBarions()
{
// barions
// barions
G4Proton::ProtonDefinition();
G4AntiProton::AntiProtonDefinition();
G4Neutron::NeutronDefinition();
G4AntiNeutron::AntiNeutronDefinition();
}
@@ -262,27 +264,13 @@ void ExN02PhysicsList::ConstructGeneral()
}
}
void ExN02PhysicsList::SetCuts(G4double cut)
void ExN02PhysicsList::SetCuts()
{
if (verboseLevel >0){
if (verboseLevel >1){
G4cout << "ExN02PhysicsList::SetCuts:";
G4cout << "CutLength : " << cut/mm << " (mm)" << endl;
}
// " G4VUserPhysicsList::SetCutsWithDefault" method sets
// the default cut value for all particle types
SetCutsWithDefault();
// set cut values for gamma at first and for e- second and next for e+,
// because some processes for e+/e- need cut values for gamma
SetCutValue(cut, "gamma");
SetCutValue(cut, "e-");
SetCutValue(cut, "e+");
// set cut values for proton and anti_proton before all other hadrons
// because some processes for hadrons need cut values for proton/anti_proton
SetCutValue(cut, "proton");
SetCutValue(cut, "anti_proton");
SetCutValueForOthers(cut);
if (verboseLevel>1) {
DumpCutValuesTable();
}
}
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN02PrimaryGeneratorAction.cc,v 1.3 1998/10/09 14:35:34 japost Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: ExN02PrimaryGeneratorAction.cc,v 1.1 1999/01/07 16:05:49 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// $ Id: $
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN02PrimaryGeneratorMessenger.cc,v 1.3 1998/10/09 14:35:34 japost Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: ExN02PrimaryGeneratorMessenger.cc,v 1.1 1999/01/07 16:05:50 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
+8 -5
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN02RunAction.cc,v 1.3 1998/10/09 14:35:34 japost Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: ExN02RunAction.cc,v 1.2 1999/04/16 11:20:00 kurasige Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
@@ -26,9 +26,9 @@ ExN02RunAction::~ExN02RunAction()
{
}
void ExN02RunAction::BeginOfRunAction(G4Run* aRun)
void ExN02RunAction::BeginOfRunAction(const G4Run* aRun)
{
aRun->SetRunID(runIDcounter++);
((G4Run *)(aRun))->SetRunID(runIDcounter++);
G4cout << "### Run " << aRun->GetRunID() << " start." << endl;
@@ -46,7 +46,7 @@ void ExN02RunAction::BeginOfRunAction(G4Run* aRun)
void ExN02RunAction::EndOfRunAction(G4Run* aRun)
void ExN02RunAction::EndOfRunAction(const G4Run*)
{
G4VVisManager* pVVisManager = G4VVisManager::GetConcreteInstance();
@@ -56,3 +56,6 @@ void ExN02RunAction::EndOfRunAction(G4Run* aRun)
}
}
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN02SteppingAction.cc,v 1.3 1998/10/09 14:35:35 japost Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: ExN02SteppingAction.cc,v 1.2 1999/04/16 11:20:01 kurasige Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
@@ -19,10 +19,8 @@ ExN02SteppingAction::ExN02SteppingAction(ExN02DetectorConstruction* myDC, ExN02E
:myDetector(myDC), eventAction(myEA)
{ }
void ExN02SteppingAction::UserSteppingAction()
void ExN02SteppingAction::UserSteppingAction(const G4Step* aStep)
{
G4Step* aStep = GetSteppingManager()->GetStep();
// collect the energy deposited in the absorber
const G4VPhysicalVolume* currentVolume = aStep->GetPreStepPoint()-> GetPhysicalVolume();
+2 -2
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN02TrackerHit.cc,v 1.1 1998/10/09 14:35:35 japost Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: ExN02TrackerHit.cc,v 1.1 1999/01/07 16:05:50 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
#include "ExN02TrackerHit.hh"
+2 -2
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN02TrackerSD.cc,v 1.1 1998/10/09 14:35:35 japost Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: ExN02TrackerSD.cc,v 1.1 1999/01/07 16:05:50 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
#include "ExN02TrackerSD.hh"
+2 -2
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN02VisManager.cc,v 1.4 1998/11/30 10:21:31 allison Exp $
// GEANT4 tag $Name: geant4-00 $
// $Id: ExN02VisManager.cc,v 1.1 1999/01/07 16:05:51 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
//
//
// John Allison 24th January 1998.