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

#include <G4PiMinusStopO.hh>

+ Inheritance diagram for G4PiMinusStopO:

Public Member Functions

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

Constructor & Destructor Documentation

◆ G4PiMinusStopO()

G4PiMinusStopO::G4PiMinusStopO ( )

Definition at line 90 of file G4PiMinusStopO.cc.

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

◆ ~G4PiMinusStopO()

G4PiMinusStopO::~G4PiMinusStopO ( )
virtual

Definition at line 128 of file G4PiMinusStopO.cc.

129{}

Member Function Documentation

◆ FinalNucleons()

G4double G4PiMinusStopO::FinalNucleons ( )
virtual

Implements G4PiMinusStopMaterial.

Definition at line 131 of file G4PiMinusStopO.cc.

132{
133 return nFinalNucleons;
134}

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