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

#include <G4PiMinusStopLi.hh>

+ Inheritance diagram for G4PiMinusStopLi:

Public Member Functions

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

Constructor & Destructor Documentation

◆ G4PiMinusStopLi()

G4PiMinusStopLi::G4PiMinusStopLi ( )

Definition at line 96 of file G4PiMinusStopLi.cc.

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

◆ ~G4PiMinusStopLi()

G4PiMinusStopLi::~G4PiMinusStopLi ( )
virtual

Definition at line 134 of file G4PiMinusStopLi.cc.

135{}

Member Function Documentation

◆ FinalNucleons()

G4double G4PiMinusStopLi::FinalNucleons ( )
virtual

Implements G4PiMinusStopMaterial.

Definition at line 137 of file G4PiMinusStopLi.cc.

138{
139 return nFinalNucleons;
140}

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