90 lines
2.4 KiB
C++
90 lines
2.4 KiB
C++
// 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: G4HadronInelasticProcess.hh,v 1.1 1999/01/07 16:11:35 gunter Exp $
|
|
// GEANT4 tag $Name: geant4-00-01 $
|
|
//
|
|
// Hadronic Inelastic Process class
|
|
// The specific particle inelastic processes derive from this class
|
|
// This is an abstract base class, since the pure virtual function
|
|
// PostStepDoIt has not been defined yet.
|
|
//
|
|
// J.L. Chuma, TRIUMF, 10-Mar-1997
|
|
// Last modified: 27-Mar-1997
|
|
//
|
|
// 14-APR-98 F.W.Jones: variant G4HadronInelastic process for
|
|
// G4CrossSectionDataSet/DataStore class design.
|
|
// 29-JUN-98 F.W.Jones: default data set G4HadronCrossSections
|
|
//
|
|
|
|
#ifndef G4HadronInelasticProcess_h
|
|
#define G4HadronInelasticProcess_h 1
|
|
|
|
#include "G4HadronicProcess.hh"
|
|
//#include "G4LPhysicsFreeVector.hh"
|
|
#include "G4HadronCrossSections.hh"
|
|
#include "G4CrossSectionDataStore.hh"
|
|
#include "G4HadronInelasticDataSet.hh"
|
|
|
|
|
|
class G4HadronInelasticProcess : public G4HadronicProcess
|
|
{
|
|
public:
|
|
|
|
G4HadronInelasticProcess(
|
|
const G4String &processName,
|
|
G4ParticleDefinition *aParticle ) :
|
|
G4HadronicProcess( processName ),
|
|
theCrossSectionDataStore(new G4CrossSectionDataStore)
|
|
{
|
|
theCrossSectionDataStore->AddDataSet(new G4HadronInelasticDataSet);
|
|
theParticle = aParticle;
|
|
// BuildThePhysicsTable();
|
|
}
|
|
|
|
virtual ~G4HadronInelasticProcess()
|
|
{ }
|
|
|
|
G4double GetMeanFreePath(
|
|
const G4Track &aTrack,
|
|
G4double previousStepSize,
|
|
G4ForceCondition *condition );
|
|
|
|
void BuildThePhysicsTable();
|
|
|
|
G4double GetMicroscopicCrossSection(
|
|
const G4DynamicParticle *aParticle,
|
|
const G4Element *anElement);
|
|
|
|
G4VParticleChange *PostStepDoIt(
|
|
const G4Track &aTrack, const G4Step &aStep )
|
|
{
|
|
SetDispatch( this );
|
|
return G4HadronicProcess::GeneralPostStepDoIt( aTrack, aStep );
|
|
}
|
|
|
|
void SetCrossSectionDataStore(G4CrossSectionDataStore* aDataStore)
|
|
{
|
|
theCrossSectionDataStore = aDataStore;
|
|
}
|
|
|
|
G4CrossSectionDataStore* GetCrossSectionDataStore()
|
|
{
|
|
return theCrossSectionDataStore;
|
|
}
|
|
|
|
protected:
|
|
|
|
// G4HadronicCrossSections theCrossSectionData;
|
|
G4CrossSectionDataStore* theCrossSectionDataStore;
|
|
|
|
G4ParticleDefinition *theParticle;
|
|
};
|
|
|
|
#endif
|
|
|