Import Geant4 5.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 16:57:27 +02:00
parent 330b82b769
commit 37fff30d2e
5733 changed files with 263867 additions and 74574 deletions
@@ -21,29 +21,34 @@
// ********************************************************************
//
//
// $Id: G4PScoreProcess.cc,v 1.2 2002/04/09 17:40:15 gcosmo Exp $
// GEANT4 tag $Name: geant4-04-01 $
// $Id: G4PScoreProcess.cc,v 1.6 2002/11/04 10:47:56 dressel Exp $
// GEANT4 tag $Name: geant4-05-00 $
//
// ----------------------------------------------------------------------
// GEANT 4 class source file
//
// G4PIScoreProcess.cc
// G4PScoreProcess.cc
//
// ----------------------------------------------------------------------
#include "G4PScoreProcess.hh"
#include "G4VPScorer.hh"
#include "G4PStep.hh"
#include "G4VScorer.hh"
#include "G4GeometryCellStep.hh"
#include "G4VParallelStepper.hh"
G4PScoreProcess::G4PScoreProcess(G4VParallelStepper &astepper,
G4VPScorer &aScorer,
G4VScorer &aScorer,
const G4String &aName)
: G4VProcess(aName),
fPstepper(astepper),
fScorer(aScorer)
:
G4VProcess(aName),
fPstepper(astepper),
fScorer(aScorer),
fKillTrack(false)
{
G4VProcess::pParticleChange = new G4ParticleChange;
if (!G4VProcess::pParticleChange) {
G4Exception("ERROR:G4PScoreProcess::G4PScoreProcess: new failed to create G4ParticleChange!");
}
}
G4PScoreProcess::~G4PScoreProcess()
@@ -65,6 +70,44 @@ G4PScoreProcess::PostStepDoIt(const G4Track& aTrack, const G4Step &aStep)
{
pParticleChange->Initialize(aTrack);
fScorer.Score(aStep, fPstepper.GetPStep());
if (fKillTrack) {
fKillTrack = false;
pParticleChange->SetStatusChange(fStopAndKill);
}
return G4VProcess::pParticleChange;
}
void G4PScoreProcess::KillTrack() const {
fKillTrack = true;
}
const G4String &G4PScoreProcess::GetName() const {
return theProcessName;
}
G4double G4PScoreProcess::
AlongStepGetPhysicalInteractionLength(const G4Track&,
G4double ,
G4double ,
G4double& ,
G4GPILSelection*) {
return -1.0;
}
G4double G4PScoreProcess::
AtRestGetPhysicalInteractionLength(const G4Track& ,
G4ForceCondition*) {
return -1.0;
}
G4VParticleChange* G4PScoreProcess::
AtRestDoIt(const G4Track&, const G4Step&) {
return 0;
}
G4VParticleChange* G4PScoreProcess::
AlongStepDoIt(const G4Track&, const G4Step&) {
return 0;
}