Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4PiMinusStopAl Class Reference

#include <G4PiMinusStopAl.hh>

+ Inheritance diagram for G4PiMinusStopAl:

Public Member Functions

 G4PiMinusStopAl ()
 
virtual ~G4PiMinusStopAl ()
 
virtual G4double FinalNucleons ()
 
- Public Member Functions inherited from G4PiMinusStopMaterial
 G4PiMinusStopMaterial ()
 
virtual ~G4PiMinusStopMaterial ()
 
virtual std::vector< G4ParticleDefinition * > * DefinitionVector ()
 
virtual std::vector< G4LorentzVector * > * P4Vector (const G4double binding, const G4double mass)
 
virtual G4double FinalNucleons ()=0
 

Additional Inherited Members

- Protected Member Functions inherited from G4PiMinusStopMaterial
G4double GenerateAngle (G4double range)
 
G4LorentzVector MakeP4 (G4double p, G4double theta, G4double phi, G4double e)
 
G4double RecoilEnergy (const G4double mass)
 
- Protected Attributes inherited from G4PiMinusStopMaterial
std::vector< G4ParticleDefinition * > * _definitions
 
std::vector< G4LorentzVector * > * _momenta
 
G4DistributionGenerator_distributionE
 
G4DistributionGenerator_distributionAngle
 
G4double theR
 

Detailed Description

Definition at line 41 of file G4PiMinusStopAl.hh.

Constructor & Destructor Documentation

◆ G4PiMinusStopAl()

G4PiMinusStopAl::G4PiMinusStopAl ( )

Definition at line 88 of file G4PiMinusStopAl.cc.

90{
91 // Cluster size: nucleon pair, alpha, triton etc.
92 // First implementation: interaction with nucleon pair only
93 _clusterSize = 2;
94
95 // R ratio
96 theR = 1. / (1. + npRatio);
97
98 _definitions = new std::vector<G4ParticleDefinition*>();
99 _momenta = new std::vector<G4LorentzVector*>();
100
101 std::vector<double> eKinVector;
102 std::vector<double> eKinDataVector;
103 int i;
104 for (i=0; i<eKinEntries; i++)
105 {
106 eKinVector.push_back(eKin[i]);
107 eKinDataVector.push_back(eKinData[i]);
108 }
109 eKinVector.push_back(eKin[eKinEntries]);
110 _distributionE = new G4DistributionGenerator(eKinVector,eKinDataVector);
111
112 std::vector<double> angleVector;
113 std::vector<double> angleDataVector;
114 for (i=0; i<angleEntries; i++)
115 {
116 angleVector.push_back(angle[i]);
117 angleDataVector.push_back(angleData[i]);
118 }
119 angleVector.push_back(angle[angleEntries]);
120 _distributionAngle = new G4DistributionGenerator(angleVector,angleDataVector);
121}
std::vector< G4ParticleDefinition * > * _definitions
G4DistributionGenerator * _distributionE
std::vector< G4LorentzVector * > * _momenta
G4DistributionGenerator * _distributionAngle

◆ ~G4PiMinusStopAl()

G4PiMinusStopAl::~G4PiMinusStopAl ( )
virtual

Definition at line 126 of file G4PiMinusStopAl.cc.

127{}

Member Function Documentation

◆ FinalNucleons()

G4double G4PiMinusStopAl::FinalNucleons ( )
virtual

Implements G4PiMinusStopMaterial.

Definition at line 129 of file G4PiMinusStopAl.cc.

130{
131 return nFinalNucleons;
132}

The documentation for this class was generated from the following files: