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

#include <G4PiMinusStopTa.hh>

+ Inheritance diagram for G4PiMinusStopTa:

Public Member Functions

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

Constructor & Destructor Documentation

◆ G4PiMinusStopTa()

G4PiMinusStopTa::G4PiMinusStopTa ( )

Definition at line 90 of file G4PiMinusStopTa.cc.

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

◆ ~G4PiMinusStopTa()

G4PiMinusStopTa::~G4PiMinusStopTa ( )
virtual

Definition at line 127 of file G4PiMinusStopTa.cc.

128{}

Member Function Documentation

◆ FinalNucleons()

G4double G4PiMinusStopTa::FinalNucleons ( )
virtual

Implements G4PiMinusStopMaterial.

Definition at line 130 of file G4PiMinusStopTa.cc.

131{
132 return nFinalNucleons;
133}

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