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

#include <G4PiMinusStopCo.hh>

+ Inheritance diagram for G4PiMinusStopCo:

Public Member Functions

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

Constructor & Destructor Documentation

◆ G4PiMinusStopCo()

G4PiMinusStopCo::G4PiMinusStopCo ( )

Definition at line 92 of file G4PiMinusStopCo.cc.

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

◆ ~G4PiMinusStopCo()

G4PiMinusStopCo::~G4PiMinusStopCo ( )
virtual

Definition at line 130 of file G4PiMinusStopCo.cc.

131{}

Member Function Documentation

◆ FinalNucleons()

G4double G4PiMinusStopCo::FinalNucleons ( )
virtual

Implements G4PiMinusStopMaterial.

Definition at line 133 of file G4PiMinusStopCo.cc.

134{
135 return nFinalNucleons;
136}

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