#include <G4VHadDecayAlgorithm.hh>
Definition at line 43 of file G4VHadDecayAlgorithm.hh.
G4VHadDecayAlgorithm::G4VHadDecayAlgorithm |
( |
const G4String & |
algName, |
|
|
G4int |
verbose = 0 |
|
) |
| |
|
inline |
virtual G4VHadDecayAlgorithm::~G4VHadDecayAlgorithm |
( |
| ) |
|
|
inlinevirtual |
Definition at line 49 of file G4VHadDecayAlgorithm.cc.
59 if (masses.size() == 2U)
virtual void GenerateTwoBody(G4double initialMass, const std::vector< G4double > &masses, std::vector< G4LorentzVector > &finalState)=0
virtual G4bool IsDecayAllowed(G4double initialMass, const std::vector< G4double > &masses) const
virtual void GenerateMultiBody(G4double initialMass, const std::vector< G4double > &masses, std::vector< G4LorentzVector > &finalState)=0
G4GLOB_DLL std::ostream G4cout
const G4String & GetName() const
const G4String& G4VHadDecayAlgorithm::GetName |
( |
| ) |
const |
|
inline |
G4int G4VHadDecayAlgorithm::GetVerboseLevel |
( |
| ) |
const |
|
inline |
G4bool G4VHadDecayAlgorithm::IsDecayAllowed |
( |
G4double |
initialMass, |
|
|
const std::vector< G4double > & |
masses |
|
) |
| const |
|
protectedvirtual |
Definition at line 69 of file G4VHadDecayAlgorithm.cc.
72 (initialMass > 0. && masses.size() >= 2 &&
73 initialMass >= std::accumulate(masses.begin(),masses.end(),0.));
76 G4cout <<
GetName() <<
"::IsDecayAllowed? initialMass " << initialMass
77 <<
" " << masses.size() <<
" masses sum "
78 << std::accumulate(masses.begin(),masses.end(),0.) <<
G4endl;
G4GLOB_DLL std::ostream G4cout
void PrintVector(const std::vector< G4double > &v, const G4String &name, std::ostream &os) const
const G4String & GetName() const
void G4VHadDecayAlgorithm::PrintVector |
( |
const std::vector< G4double > & |
v, |
|
|
const G4String & |
name, |
|
|
std::ostream & |
os |
|
) |
| const |
|
protected |
Definition at line 123 of file G4VHadDecayAlgorithm.cc.
125 os <<
" " << vname <<
"(" << v.size() <<
") ";
126 std::copy(v.begin(), v.end(), std::ostream_iterator<G4double>(os,
" "));
virtual void G4VHadDecayAlgorithm::SetVerboseLevel |
( |
G4int |
verbose | ) |
|
|
inlinevirtual |
Definition at line 91 of file G4VHadDecayAlgorithm.cc.
93 G4double PSQ = (M0+M1+M2)*(M0+M1-M2)*(M0-M1+M2)*(M0-M1-M2);
96 <<
" to M1(GeV) " << M1/
GeV <<
" and M2(GeV) " << M2/
GeV
97 <<
" PSQ(MeV) " << PSQ/
MeV <<
" < 0" <<
G4endl;
106 return std::sqrt(PSQ)/(2.*M0);
G4GLOB_DLL std::ostream G4cout
static constexpr double eV
const G4String & GetName() const
static constexpr double GeV
static constexpr double MeV
G4double G4VHadDecayAlgorithm::UniformPhi |
( |
| ) |
const |
|
protected |
G4double G4VHadDecayAlgorithm::UniformTheta |
( |
| ) |
const |
|
protected |
The documentation for this class was generated from the following files: