143 lines
5.3 KiB
C++
143 lines
5.3 KiB
C++
//
|
|
// ********************************************************************
|
|
// * DISCLAIMER *
|
|
// * *
|
|
// * The following disclaimer summarizes all the specific disclaimers *
|
|
// * of contributors to this software. The specific disclaimers,which *
|
|
// * govern, are listed with their locations in: *
|
|
// * http://cern.ch/geant4/license *
|
|
// * *
|
|
// * Neither the authors of this software system, nor their employing *
|
|
// * institutes,nor the agencies providing financial support for this *
|
|
// * work make any representation or warranty, express or implied, *
|
|
// * regarding this software system or assume any liability for its *
|
|
// * use. *
|
|
// * *
|
|
// * This code implementation is the intellectual property of the *
|
|
// * 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: G4MuNuclearInteraction.hh,v 1.4 2001/07/11 10:08:25 gunter Exp $
|
|
// GEANT4 tag $Name: geant4-05-00 $
|
|
//
|
|
// $Id:
|
|
// ------------------------------------------------------------
|
|
// GEANT 4 class header file
|
|
//
|
|
// History: first implementation, based on object model of
|
|
// 2nd December 1995, G.Cosmo
|
|
// -------- G4MuNuclearInteraction physics process ---------
|
|
// by Laszlo Urban, May 1998
|
|
// ************************************************************
|
|
|
|
#ifndef G4MuNuclearInteraction_h
|
|
#define G4MuNuclearInteraction_h 1
|
|
|
|
#include "G4ios.hh"
|
|
#include "globals.hh"
|
|
#include "Randomize.hh"
|
|
#include "G4VDiscreteProcess.hh"
|
|
#include "G4Track.hh"
|
|
#include "G4Step.hh"
|
|
#include "G4MuonMinus.hh"
|
|
#include "G4MuonPlus.hh"
|
|
#include "G4PionZero.hh"
|
|
#include "G4OrderedTable.hh"
|
|
#include "G4PhysicsTable.hh"
|
|
#include "G4ElementTable.hh"
|
|
#include "G4PhysicsLogVector.hh"
|
|
#include "G4ParametrizedHadronicVertex.hh"
|
|
|
|
class G4MuNuclearInteraction : public G4VDiscreteProcess
|
|
|
|
{
|
|
public:
|
|
|
|
G4MuNuclearInteraction(const G4String& processName = "MuNucl");
|
|
|
|
~G4MuNuclearInteraction();
|
|
|
|
G4bool IsApplicable(const G4ParticleDefinition&);
|
|
|
|
void SetPhysicsTableBining(G4double lowE, G4double highE, G4int nBins);
|
|
|
|
void BuildPhysicsTable(const G4ParticleDefinition& ParticleType);
|
|
|
|
void PrintInfoDefinition() ;
|
|
|
|
G4double GetMeanFreePath(const G4Track& track,
|
|
G4double previousStepSize,
|
|
G4ForceCondition* condition ) ;
|
|
|
|
G4VParticleChange *PostStepDoIt(const G4Track& track,
|
|
const G4Step& Step ) ;
|
|
|
|
protected:
|
|
|
|
G4double ComputeMeanFreePath( const G4ParticleDefinition* ParticleType,
|
|
G4double KineticEnergy,
|
|
const G4Material* aMaterial);
|
|
|
|
void ComputePartialSumSigma( const G4ParticleDefinition* ParticleType,
|
|
G4double KineticEnergy,
|
|
const G4Material* aMaterial);
|
|
|
|
virtual G4double ComputeMicroscopicCrossSection(
|
|
const G4ParticleDefinition* ParticleType,
|
|
G4double KineticEnergy,
|
|
G4double AtomicNumber,
|
|
G4double AtomicMass);
|
|
|
|
virtual G4double ComputeDMicroscopicCrossSection(
|
|
const G4ParticleDefinition* ParticleType,
|
|
G4double KineticEnergy,
|
|
G4double AtomicNumber,
|
|
G4double AtomicMass,
|
|
G4double epsilon);
|
|
|
|
private:
|
|
|
|
G4MuNuclearInteraction & operator=(const G4MuNuclearInteraction &right);
|
|
G4MuNuclearInteraction(const G4MuNuclearInteraction&);
|
|
|
|
G4Element* SelectRandomAtom(G4Material* aMaterial) const;
|
|
|
|
void MakeSamplingTables( const G4ParticleDefinition* ParticleType );
|
|
|
|
private:
|
|
|
|
G4PhysicsTable* theMeanFreePathTable;
|
|
G4PhysicsTable* theCrossSectionTable ;
|
|
|
|
G4OrderedTable PartialSumSigma;
|
|
|
|
G4double LowestKineticEnergy;
|
|
G4double HighestKineticEnergy;
|
|
G4int TotBin;
|
|
|
|
//cut from R.P. Kokoulin
|
|
const G4double CutFixed ;
|
|
// for the atomic weight conversion
|
|
G4double GramPerMole ;
|
|
|
|
const G4MuonMinus* theMuonMinus;
|
|
const G4MuonPlus* theMuonPlus;
|
|
const G4PionZero* thePionZero;
|
|
|
|
// tables for sampling ..............
|
|
static G4int nzdat,ntdat,NBIN ;
|
|
static G4double zdat[5],adat[5],tdat[8] ;
|
|
static G4double ya[1001],proba[5][8][1001] ;
|
|
|
|
// for the hadronic final state; use base cass * in next release
|
|
G4ParametrizedHadronicVertex theHadronicVertex;
|
|
};
|
|
|
|
#include "G4MuNuclearInteraction.icc"
|
|
|
|
#endif
|