Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4PreCompoundInterface.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// GEANT4 Class header file
28//
29// File name: G4PreCompoundInterface
30//
31// Author: V.Ivantchenko, 20 January 2025
32//
33// Class Description:
34// Model implementation for pre-equilibrium decay model.
35// It is an alternative to the default model.
36//
37
38#ifndef G4PreCompoundInterface_h
39#define G4PreCompoundInterface_h 1
40
42#include "G4Fragment.hh"
44#include "G4ReactionProduct.hh"
46
51
53{
54public:
55
57
58 ~G4PreCompoundInterface() override;
59
60 G4ReactionProductVector* DeExcite(G4Fragment& aFragment) override;
61
62 void BuildPhysicsTable(const G4ParticleDefinition&) override;
63 void InitialiseModel() override;
64
65 void ModelDescription(std::ostream& outFile) const override;
66 void DeExciteModelDescription(std::ostream&) const override;
67
69 const G4PreCompoundInterface& operator=
70 (const G4PreCompoundInterface &right) = delete;
71 G4bool operator==(const G4PreCompoundInterface &right) const = delete;
72 G4bool operator!=(const G4PreCompoundInterface &right) const = delete;
73
74private:
75
76 void BreakUpFragment(G4Fragment&, G4ReactionProductVector*);
77
78 inline
79 void PerformEquilibriumEmission(const G4Fragment&,
81
82 G4PreCompoundEmissionInt* theEmission{nullptr};
83 G4VPreCompoundTransitions* theTransition{nullptr};
84 G4NuclearLevelData* fNuclData{nullptr};
85
86 G4double fLowLimitExc{0.0};
87 G4double fHighLimitExc{DBL_MAX};
88
89 G4bool isActive{true};
90 G4bool isInitialised{false};
91
92 G4int minZ{9};
93 G4int minA{17};
94 G4int fVerbose{1};
95};
96
97inline void G4PreCompoundInterface::PerformEquilibriumEmission(
98 const G4Fragment& aFragment,
99 G4ReactionProductVector* result) const
100{
101 auto deexResult = GetExcitationHandler()->BreakItUp(aFragment);
102 for (auto & frag : *deexResult) { result->push_back(std::move(frag)); }
103 delete deexResult;
104}
105
106#endif
107
std::vector< G4ReactionProduct * > G4ReactionProductVector
double G4double
Definition G4Types.hh:83
bool G4bool
Definition G4Types.hh:86
int G4int
Definition G4Types.hh:85
G4ReactionProductVector * BreakItUp(const G4Fragment &theInitialState)
G4PreCompoundInterface(const G4PreCompoundInterface &)=delete
void ModelDescription(std::ostream &outFile) const override
G4bool operator==(const G4PreCompoundInterface &right) const =delete
G4bool operator!=(const G4PreCompoundInterface &right) const =delete
G4ReactionProductVector * DeExcite(G4Fragment &aFragment) override
void DeExciteModelDescription(std::ostream &) const override
void BuildPhysicsTable(const G4ParticleDefinition &) override
G4ExcitationHandler * GetExcitationHandler() const
G4VPreCompoundModel(G4ExcitationHandler *ptr=nullptr, const G4String &modelName="PrecompoundModel")
#define DBL_MAX
Definition templates.hh:62