Import Geant4 0.1.0 source tree
This commit is contained in:
@@ -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 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user