Project

General

Profile

N02to

running the N02to example:

./exampleN02 run1.mac

Numerical values set in the example (excerpts from the files):

N02to/run1.mac:
...
# e+ in 256 MeV the direction (1.,0.,0.)  (default kinematic)
# 1 event with detailled printing
#
/tracking/verbose 1
/N02/det/trackMaxSteps 200000
/N02/det/trackMaxLen   10 km
/run/beamOn 1
# 
# electron 25 MeV in the direction (1.,0.,0.)
# 1 event
#
/N02/det/trackMaxSteps 20000
/N02/det/trackMaxLen   1 km
/gun/particle e-
/gun/energy 25 MeV
/tracking/verbose 1
/run/beamOn 1

in the code:

N02to/src/ExN02PrimaryGeneratorAction.cc:
...
// default particle

  G4ParticleTable* particleTable = G4ParticleTable::GetParticleTable();
  G4ParticleDefinition* particle = particleTable->FindParticle("e+");

  particleGun->SetParticleDefinition(particle);
  particleGun->SetParticleMomentumDirection(G4ThreeVector(1.,0.,0.));
  particleGun->SetParticleEnergy(256.0*MeV);

  G4double position = 0.0*cm;
  particleGun->SetParticlePosition(G4ThreeVector(0.*cm,0.*cm,position));

N02to/src/ExN02DetectorConstruction.cc:

  fpMagField = new ExN02MagneticField(G4ThreeVector(0.,0.,1.0*tesla));

N02to/src/ExN02DetectorMessenger.cc
show examples of setting some of the values mentioned above.

N02to/src/ExN02MagneticField.cc
defines stepper related data and provides examples on how to set some tolerances

Other numerical values are set/defined e.g. in:

geant4/source/particles/leptons

include/G4Positron.hh
src/G4Positron.cc
include/G4Electron.hh
src/G4Electron.cc

#include <CLHEP/Units/PhysicalConstants.h>

CLHEP/Units/

GlobalPhysicalConstants.h
GlobalSystemOfUnits.h
PhysicalConstants.h
SystemOfUnits.h


The above files are often used via files in:
geant4/source/global/management/include/