Import Geant4 0.0.0 source tree
This commit is contained in:
@@ -0,0 +1,105 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 GEANT4 collaboration.
|
||||
//
|
||||
// By copying, distributing or modifying the Program (or any work
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4ParticleChangeForLoss.hh,v 2.1 1998/12/02 17:19:26 urban Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
// GEANT 4 class header file
|
||||
//
|
||||
// For information related to this code contact:
|
||||
// CERN, CN Division, ASD group
|
||||
//
|
||||
// ------------------------------------------------------------
|
||||
// Implemented for the new scheme 23 Mar. 1998 H.Kurahige
|
||||
//
|
||||
// This class is a concrete class for ParticleChange for EnergyLoss
|
||||
//
|
||||
#ifndef G4ParticleChangeForLoss_h
|
||||
#define G4ParticleChangeForLoss_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ios.hh"
|
||||
class G4DynamicParticle;
|
||||
#include "G4VParticleChange.hh"
|
||||
|
||||
class G4ParticleChangeForLoss: public G4VParticleChange
|
||||
{
|
||||
public:
|
||||
// default constructor
|
||||
G4ParticleChangeForLoss();
|
||||
|
||||
// destructor
|
||||
virtual ~G4ParticleChangeForLoss();
|
||||
|
||||
protected:
|
||||
// hide copy constructor and assignment operaor as protected
|
||||
G4ParticleChangeForLoss(const G4ParticleChangeForLoss &right);
|
||||
G4ParticleChangeForLoss & operator=(const G4ParticleChangeForLoss &right);
|
||||
|
||||
public:
|
||||
// equal/unequal operator
|
||||
G4bool operator==(const G4ParticleChangeForLoss &right) const;
|
||||
G4bool operator!=(const G4ParticleChangeForLoss &right) const;
|
||||
|
||||
|
||||
public:
|
||||
// ----------------------------------------------------
|
||||
// --- the following methods are for updating G4Step -----
|
||||
virtual G4Step* UpdateStepForAlongStep(G4Step* Step);
|
||||
|
||||
virtual void Initialize(const G4Track&);
|
||||
// Initialize all propoerties by using G4Track information
|
||||
|
||||
G4double GetEnergyChange() const;
|
||||
void SetEnergyChange(G4double theEnergyChange);
|
||||
// Get/Set the final kinetic energy of the current particle.
|
||||
|
||||
|
||||
public:
|
||||
virtual void DumpInfo() const;
|
||||
|
||||
protected:
|
||||
G4double theEnergyChange;
|
||||
// The final kinetic energy of the current particle.
|
||||
|
||||
public:
|
||||
// for Debug
|
||||
G4bool debugFlag;
|
||||
G4bool CheckIt(const G4Track&);
|
||||
};
|
||||
|
||||
inline
|
||||
G4double G4ParticleChangeForLoss::GetEnergyChange() const
|
||||
{
|
||||
return theEnergyChange;
|
||||
}
|
||||
|
||||
inline
|
||||
void G4ParticleChangeForLoss::SetEnergyChange(G4double Energy)
|
||||
{
|
||||
theEnergyChange = Energy;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user