Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4VFermiFragmentAN.cc
Go to the documentation of this file.
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26//
27// G4FermiBreakUpAN alternative FermiBreakUp model
28// by A. Novikov (January 2025)
29//
30
31#include "G4VFermiFragmentAN.hh"
34#include "G4SystemOfUnits.hh"
35#include "Randomize.hh"
36
37#include <iomanip>
38
40 G4FermiChargeNumber chargeNumber,
41 G4int polarization, G4double excitationEnergy)
42 : atomicMass_(atomicMass),
43 chargeNumber_(chargeNumber),
44 polarization_(polarization),
45 excitationEnergy_(excitationEnergy)
46{
47 groudStateMass_ = CLHEP::proton_mass_c2;
48}
49
55
56std::vector<G4FermiParticle>
58{
59 std::vector<G4FermiParticle> result;
60 AppendDecayFragments(momentum, result);
61 return result;
62}
63
68
73
78
83
88
93
94std::ostream& std::operator<<(std::ostream& out, const G4VFermiFragmentAN& fragment)
95{
96 const auto oldFlags = out.flags();
97 const auto oldUserPrecision = out.precision();
98
99 out.setf(std::ios::floatfield);
100 out << "FermiFragment: { A = " << fragment.GetAtomicMass()
101 << ", Z = " << fragment.GetChargeNumber() << ", pol = " << fragment.GetPolarization();
102
103 out.setf(std::ios::scientific, std::ios::floatfield);
104 out << std::setprecision(3) << ", U = " << fragment.GetExcitationEnergy() / CLHEP::MeV << " }";
105
106 out.setf(oldFlags, std::ios::floatfield);
107 out.precision(oldUserPrecision);
108
109 return out;
110}
CLHEP::HepLorentzVector G4LorentzVector
double G4double
Definition G4Types.hh:83
int G4int
Definition G4Types.hh:85
static G4double GetNuclearMass(G4FermiAtomicMass atomicMass, G4FermiChargeNumber chargeNumber)
G4double GetTotalEnergy() const
G4FermiChargeNumber GetChargeNumber() const
G4double GetMass() const
G4FermiChargeNumber chargeNumber_
G4FermiAtomicMass atomicMass_
G4int GetPolarization() const
G4double GetExcitationEnergy() const
virtual void AppendDecayFragments(const G4LorentzVector &momentum, std::vector< G4FermiParticle > &particles) const =0
G4VFermiFragmentAN(G4FermiAtomicMass atomicMass, G4FermiChargeNumber chargeNumber, G4int polarization, G4double excitationEnergy)
G4FermiAtomicMass GetAtomicMass() const
std::vector< G4FermiParticle > GetDecayFragments(const G4LorentzVector &momentum) const
virtual void DoInitialize()=0
std::ostream & operator<<(std::ostream &out, const G4FermiAtomicMass &mass)