Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4FermiUnstableFragment.hh
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#ifndef G4FERMIUNSTABLEFRAGMENT_HH
32#define G4FERMIUNSTABLEFRAGMENT_HH
33
34#include "G4VFermiFragmentAN.hh"
35
37{
38 public:
40 G4int polarization, G4double excitationEnergy,
41 std::vector<G4FermiNucleiData>&& decayData);
42
43 void AppendDecayFragments(const G4LorentzVector& momentum,
44 std::vector<G4FermiParticle>& particles) const override;
45
46 private:
47 void DoInitialize() override;
48
49 std::vector<G4FermiNucleiData> decayData_;
50
51 std::vector<G4double> masses_;
52};
53
54#define FERMI_ADD_UNSTABLE_FRAGMENT(NAME, FRAGMENTS) \
55 inline G4FermiUnstableFragment NAME(G4FermiAtomicMass atomicMass, \
56 G4FermiChargeNumber chargeNumber, G4int polarization, \
57 G4double excitationEnergy) \
58 { \
59 return G4FermiUnstableFragment(atomicMass, chargeNumber, polarization, excitationEnergy, \
60 FRAGMENTS); \
61 }
62
63// He5 ----> alpha + neutron
64FERMI_ADD_UNSTABLE_FRAGMENT(He5Fragment, std::vector<G4FermiNucleiData>({
65 G4FermiNucleiData{4_m, 2_c},
66 G4FermiNucleiData{1_m, 0_c},
67 }))
68
69// B9 ----> alpha + alpha + proton
70FERMI_ADD_UNSTABLE_FRAGMENT(B9Fragment, std::vector<G4FermiNucleiData>({
71 G4FermiNucleiData{4_m, 2_c},
72 G4FermiNucleiData{4_m, 2_c},
73 G4FermiNucleiData{1_m, 1_c},
74 }))
75
76// Be8 ----> alpha + alpha
77FERMI_ADD_UNSTABLE_FRAGMENT(Be8Fragment, std::vector<G4FermiNucleiData>({
78 G4FermiNucleiData{4_m, 2_c},
79 G4FermiNucleiData{4_m, 2_c},
80 }))
81
82// Li5 ----> alpha + proton
83FERMI_ADD_UNSTABLE_FRAGMENT(Li5Fragment, std::vector<G4FermiNucleiData>({
84 G4FermiNucleiData{4_m, 2_c},
85 G4FermiNucleiData{1_m, 1_c},
86 }))
87
89
90#endif // G4FERMIUNSTABLEFRAGMENT_HH
#define FERMI_ADD_UNSTABLE_FRAGMENT(NAME, FRAGMENTS)
CLHEP::HepLorentzVector G4LorentzVector
double G4double
Definition G4Types.hh:83
int G4int
Definition G4Types.hh:85
void AppendDecayFragments(const G4LorentzVector &momentum, std::vector< G4FermiParticle > &particles) const override
G4FermiUnstableFragment(G4FermiAtomicMass atomicMass, G4FermiChargeNumber chargeNumber, G4int polarization, G4double excitationEnergy, std::vector< G4FermiNucleiData > &&decayData)
G4VFermiFragmentAN(G4FermiAtomicMass atomicMass, G4FermiChargeNumber chargeNumber, G4int polarization, G4double excitationEnergy)
virtual void DoInitialize()=0