#include <G4HadDecayGenerator.hh>
Definition at line 49 of file G4HadDecayGenerator.hh.
◆ Algorithm
◆ G4HadDecayGenerator() [1/2]
Definition at line 55 of file G4HadDecayGenerator.cc.
57 switch (alg) {
63 }
64
66 G4cout <<
" >>> G4HadDecayGenerator";
69 }
70}
G4GLOB_DLL std::ostream G4cout
G4VHadDecayAlgorithm * theAlgorithm
void ReportInvalidAlgorithm(Algorithm alg) const
const G4String & GetName() const
◆ G4HadDecayGenerator() [2/2]
◆ ~G4HadDecayGenerator()
G4HadDecayGenerator::~G4HadDecayGenerator |
( |
| ) |
|
|
virtual |
◆ Generate() [1/3]
Definition at line 150 of file G4HadDecayGenerator.cc.
152 {
154 G4cout <<
" >>> G4HadDecayGenerator::Generate (frame)" <<
G4endl;
155
157 if (good) {
159 for (size_t i=0; i<finalState.size(); i++) {
160 finalState[i].boost(bv);
161 }
162 }
163
164 return good;
165}
Hep3Vector boostVector() const
G4bool Generate(G4double initialMass, const std::vector< G4double > &masses, std::vector< G4LorentzVector > &finalState)
◆ Generate() [2/3]
◆ Generate() [3/3]
Definition at line 120 of file G4HadDecayGenerator.cc.
122 {
124 G4cout <<
" >>> G4HadDecayGenerator::Generate (mass)" <<
G4endl;
125
127
128 if (masses.size() == 1U)
130
132 return !finalState.empty();
133}
void ReportMissingAlgorithm() const
G4bool GenerateOneBody(G4double initialMass, const std::vector< G4double > &masses, std::vector< G4LorentzVector > &finalState) const
void Generate(G4double initialMass, const std::vector< G4double > &masses, std::vector< G4LorentzVector > &finalState)
Referenced by Generate().
◆ GenerateOneBody()
Definition at line 170 of file G4HadDecayGenerator.cc.
173 {
175 G4cout <<
" >>> G4HadDecayGenerator::GenerateOneBody" <<
G4endl;
176
177
178 finalState.clear();
179
180 if (masses.size() != 1U) return false;
181 if (std::fabs(initialMass-masses[0]) > eV) return false;
182
184
186 return true;
187}
CLHEP::HepLorentzVector G4LorentzVector
Referenced by Generate().
◆ GetAlgorithmName()
const G4String & G4HadDecayGenerator::GetAlgorithmName |
( |
| ) |
const |
◆ ReportInvalidAlgorithm()
void G4HadDecayGenerator::ReportInvalidAlgorithm |
( |
Algorithm |
alg | ) |
const |
|
protected |
◆ ReportMissingAlgorithm()
void G4HadDecayGenerator::ReportMissingAlgorithm |
( |
| ) |
const |
|
protected |
◆ SetVerboseLevel()
void G4HadDecayGenerator::SetVerboseLevel |
( |
G4int |
verbose | ) |
|
◆ UseAlgorithm()
◆ theAlgorithm
◆ verboseLevel
G4int G4HadDecayGenerator::verboseLevel |
|
protected |
The documentation for this class was generated from the following files: