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: G4Mars5GeVMechanism.hh,v 2.3 1998/12/11 20:52:56 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4Mars5GeVMechanism.hh,v 1.2 1999/04/13 09:43:21 kurasige Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
@@ -61,7 +61,7 @@ class G4Mars5GeVMechanism :public G4VEvtBiasMechanism
|
||||
G4Mars5GeVMechanism(const G4String& name = "MARS5GeV");
|
||||
G4Mars5GeVMechanism(const G4Mars5GeVMechanism&);
|
||||
|
||||
~G4Mars5GeVMechanism();
|
||||
virtual ~G4Mars5GeVMechanism();
|
||||
|
||||
virtual G4VParticleChange* ApplyMath( G4VParticleChange*, const G4Step& );
|
||||
virtual G4bool IsApplicable(G4ParticleDefinition*) const;
|
||||
@@ -121,7 +121,7 @@ class G4Mars5GeVMechanism :public G4VEvtBiasMechanism
|
||||
MarsMUplus, MarsMUminus, MarsGAM, MarsEminus, MarsEplus, MarsAP,
|
||||
MarsPI0, MarsD, MarsT, MarsHe3, MarsHe4 };
|
||||
|
||||
G4int GetMarsEncoding(G4ParticleDefinition* )const;
|
||||
G4int GetMarsEncoding(const G4ParticleDefinition* )const;
|
||||
const G4String& GetParticleName(G4int marsEncoding) const;
|
||||
G4ParticleDefinition* GetParticleDefinition(G4int marsEncoding) const;
|
||||
|
||||
@@ -161,7 +161,7 @@ class G4Mars5GeVMechanism :public G4VEvtBiasMechanism
|
||||
#include "G4ParticleTable.hh"
|
||||
|
||||
inline
|
||||
G4int G4Mars5GeVMechanism::GetMarsEncoding(G4ParticleDefinition* particle) const{
|
||||
G4int G4Mars5GeVMechanism::GetMarsEncoding(const G4ParticleDefinition* particle) const{
|
||||
const G4String& name = particle->GetParticleName();
|
||||
G4int encoding = MarsUndefined;
|
||||
if (name == "proton") {
|
||||
@@ -270,7 +270,7 @@ inline
|
||||
G4ParticleDefinition* G4Mars5GeVMechanism::GetParticleDefinition(G4int encoding) const
|
||||
{
|
||||
G4String name = GetParticleName(encoding);
|
||||
G4ParticleDefinition* particle = NULL;
|
||||
G4ParticleDefinition* particle = 0;
|
||||
if (name != "None") {
|
||||
particle = theParticleTable->FindParticle(name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user