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

#include <G4PiMinusStopC.hh>

+ Inheritance diagram for G4PiMinusStopC:

Public Member Functions

 G4PiMinusStopC ()
 
virtual ~G4PiMinusStopC ()
 
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 G4PiMinusStopC.hh.

Constructor & Destructor Documentation

◆ G4PiMinusStopC()

G4PiMinusStopC::G4PiMinusStopC ( )

Definition at line 106 of file G4PiMinusStopC.cc.

108{
109 // Cluster size: nucleon pair, alpha, triton etc.
110 // First implementation: interaction with nucleon pair only
111 _clusterSize = 2;
112
113 // R ratio
114 theR = 1. / (1. + npRatio);
115
116 _definitions = new std::vector<G4ParticleDefinition*>();
117 _momenta = new std::vector<G4LorentzVector*>();
118
119 std::vector<double> eKinVector;
120 std::vector<double> eKinDataVector;
121 int i;
122 for (i=0; i<eKinEntries; i++)
123 {
124 eKinVector.push_back(eKin[i]);
125 eKinDataVector.push_back(eKinData[i]);
126 }
127 eKinVector.push_back(eKin[eKinEntries]);
128 _distributionE = new G4DistributionGenerator(eKinVector,eKinDataVector);
129
130 std::vector<double> angleVector;
131 std::vector<double> angleDataVector;
132 for (i=0; i<angleEntries; i++)
133 {
134 angleVector.push_back(angle[i]);
135 angleDataVector.push_back(angleData[i]);
136 }
137 angleVector.push_back(angle[angleEntries]);
138 _distributionAngle = new G4DistributionGenerator(angleVector,angleDataVector);
139}
std::vector< G4ParticleDefinition * > * _definitions
G4DistributionGenerator * _distributionE
std::vector< G4LorentzVector * > * _momenta
G4DistributionGenerator * _distributionAngle

◆ ~G4PiMinusStopC()

G4PiMinusStopC::~G4PiMinusStopC ( )
virtual

Definition at line 144 of file G4PiMinusStopC.cc.

145{}

Member Function Documentation

◆ FinalNucleons()

G4double G4PiMinusStopC::FinalNucleons ( )
virtual

Implements G4PiMinusStopMaterial.

Definition at line 147 of file G4PiMinusStopC.cc.

148{
149 return nFinalNucleons;
150}

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