File indexing completed on 2025-01-18 09:59:21
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039
0040 #ifndef G4VEvaporation_h
0041 #define G4VEvaporation_h 1
0042
0043 #include "globals.hh"
0044 #include "G4Fragment.hh"
0045 #include "G4VEvaporationFactory.hh"
0046 #include "G4VEvaporationChannel.hh"
0047 #include <vector>
0048
0049 class G4VEvaporationChannel;
0050 class G4VFermiBreakUp;
0051
0052 class G4VEvaporation
0053 {
0054 public:
0055
0056 G4VEvaporation();
0057 virtual ~G4VEvaporation();
0058
0059
0060
0061
0062 virtual void BreakFragment(G4FragmentVector*, G4Fragment* theNucleus);
0063
0064
0065 virtual void InitialiseChannels();
0066
0067 virtual void SetPhotonEvaporation(G4VEvaporationChannel* ptr);
0068
0069 inline void SetFermiBreakUp(G4VFermiBreakUp* ptr);
0070
0071 inline G4VFermiBreakUp* GetFermiBreakUp() const;
0072 inline G4VEvaporationChannel* GetPhotonEvaporation() const;
0073 inline G4VEvaporationChannel* GetFissionChannel() const;
0074 inline G4VEvaporationChannel* GetChannel(std::size_t idx) const;
0075
0076
0077 inline void SetOPTxs(G4int opt);
0078
0079 inline void UseSICB(G4bool use);
0080
0081 inline std::size_t GetNumberOfChannels() const;
0082
0083 G4VEvaporation(const G4VEvaporation &right) = delete;
0084 const G4VEvaporation & operator=(const G4VEvaporation &right) = delete;
0085 G4bool operator==(const G4VEvaporation &right) const = delete;
0086 G4bool operator!=(const G4VEvaporation &right) const = delete;
0087
0088 protected:
0089
0090 void CleanChannels();
0091
0092 G4VEvaporationChannel* thePhotonEvaporation{nullptr};
0093 G4VFermiBreakUp* theFBU{nullptr};
0094
0095 G4int OPTxs{3};
0096 G4bool useSICB{true};
0097
0098 std::vector<G4VEvaporationChannel*>* theChannels{nullptr};
0099 G4VEvaporationFactory* theChannelFactory{nullptr};
0100 };
0101
0102 inline void G4VEvaporation::SetFermiBreakUp(G4VFermiBreakUp* ptr)
0103 {
0104 theFBU = ptr;
0105 }
0106
0107 inline G4VFermiBreakUp* G4VEvaporation::GetFermiBreakUp() const
0108 {
0109 return theFBU;
0110 }
0111
0112 inline G4VEvaporationChannel* G4VEvaporation::GetPhotonEvaporation() const
0113 {
0114 return thePhotonEvaporation;
0115 }
0116
0117 inline G4VEvaporationChannel* G4VEvaporation::GetFissionChannel() const
0118 {
0119 return (nullptr != theChannels && theChannels->size() > 1) ?
0120 (*theChannels)[1] : nullptr;
0121 }
0122
0123 inline G4VEvaporationChannel* G4VEvaporation::GetChannel(std::size_t idx) const
0124 {
0125 return (nullptr != theChannels && theChannels->size() > idx) ?
0126 (*theChannels)[idx] : nullptr;
0127 }
0128
0129 inline void G4VEvaporation::SetOPTxs(G4int opt)
0130 {
0131 OPTxs = opt;
0132 }
0133
0134 inline void G4VEvaporation::UseSICB(G4bool use)
0135 {
0136 useSICB = use;
0137 }
0138
0139 inline std::size_t G4VEvaporation::GetNumberOfChannels() const
0140 {
0141 return (nullptr != theChannels) ? theChannels->size() : 0;
0142 }
0143
0144 #endif