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 | #ifndef G4INUCL_COLLIDER_HH |
---|
27 | #define G4INUCL_COLLIDER_HH |
---|
28 | |
---|
29 | #include "G4Collider.hh" |
---|
30 | #include "G4IntraNucleiCascader.hh" |
---|
31 | #include "G4NonEquilibriumEvaporator.hh" |
---|
32 | #include "G4EquilibriumEvaporator.hh" |
---|
33 | #include "G4Fissioner.hh" |
---|
34 | #include "G4BigBanger.hh" |
---|
35 | #include "G4ElementaryParticleCollider.hh" |
---|
36 | #include "G4InteractionCase.hh" |
---|
37 | #include "G4InuclNuclei.hh" |
---|
38 | #include "G4InuclSpecialFunctions.hh" |
---|
39 | #include "G4Analyser.hh" |
---|
40 | |
---|
41 | using namespace G4InuclSpecialFunctions; |
---|
42 | |
---|
43 | class G4InuclCollider { |
---|
44 | |
---|
45 | public: |
---|
46 | |
---|
47 | G4InuclCollider(); |
---|
48 | |
---|
49 | G4InuclCollider(G4ElementaryParticleCollider* ecollider, |
---|
50 | G4IntraNucleiCascader* incascader, |
---|
51 | G4NonEquilibriumEvaporator* noeqevaporator, |
---|
52 | G4EquilibriumEvaporator* eqevaporator, |
---|
53 | G4Fissioner* fissioner, |
---|
54 | G4BigBanger* bigbanger) { |
---|
55 | |
---|
56 | setElementaryParticleCollider(ecollider); |
---|
57 | setIntraNucleiCascader(incascader,ecollider); |
---|
58 | setNonEquilibriumEvaporator(noeqevaporator); |
---|
59 | setEquilibriumEvaporator(eqevaporator, fissioner, bigbanger); |
---|
60 | setBigBanger(bigbanger); |
---|
61 | |
---|
62 | }; |
---|
63 | |
---|
64 | void setElementaryParticleCollider(G4ElementaryParticleCollider* ecollider) { |
---|
65 | |
---|
66 | theElementaryParticleCollider = ecollider; |
---|
67 | }; |
---|
68 | |
---|
69 | void setIntraNucleiCascader(G4IntraNucleiCascader* incascader, |
---|
70 | G4ElementaryParticleCollider* ecollider) { |
---|
71 | |
---|
72 | theIntraNucleiCascader = incascader; |
---|
73 | theIntraNucleiCascader->setElementaryParticleCollider(ecollider); |
---|
74 | }; |
---|
75 | |
---|
76 | void setNonEquilibriumEvaporator(G4NonEquilibriumEvaporator* noeqevaporator) { |
---|
77 | |
---|
78 | theNonEquilibriumEvaporator = noeqevaporator; |
---|
79 | }; |
---|
80 | |
---|
81 | void setEquilibriumEvaporator(G4EquilibriumEvaporator* eqevaporator, |
---|
82 | G4Fissioner* fissioner, |
---|
83 | G4BigBanger* bigbanger) { |
---|
84 | |
---|
85 | theEquilibriumEvaporator = eqevaporator; |
---|
86 | theEquilibriumEvaporator->setFissioner(fissioner); |
---|
87 | theEquilibriumEvaporator->setBigBanger(bigbanger); |
---|
88 | }; |
---|
89 | |
---|
90 | void setBigBanger(G4BigBanger* bigbanger) { |
---|
91 | |
---|
92 | theBigBanger = bigbanger; |
---|
93 | }; |
---|
94 | |
---|
95 | G4CollisionOutput collide(G4InuclParticle* bullet, |
---|
96 | G4InuclParticle* target); |
---|
97 | |
---|
98 | private: |
---|
99 | |
---|
100 | G4int verboseLevel; |
---|
101 | |
---|
102 | G4bool inelasticInteractionPossible(G4InuclParticle* bullet, |
---|
103 | G4InuclParticle* target, |
---|
104 | G4double ekin) const; |
---|
105 | |
---|
106 | G4InteractionCase bulletTargetSetter(G4InuclParticle* bullet, |
---|
107 | G4InuclParticle* target) const; |
---|
108 | |
---|
109 | G4bool explosion(G4InuclNuclei* target) const; |
---|
110 | |
---|
111 | G4ElementaryParticleCollider* theElementaryParticleCollider; |
---|
112 | G4IntraNucleiCascader* theIntraNucleiCascader; |
---|
113 | G4NonEquilibriumEvaporator* theNonEquilibriumEvaporator; |
---|
114 | G4EquilibriumEvaporator* theEquilibriumEvaporator; |
---|
115 | G4BigBanger* theBigBanger; |
---|
116 | |
---|
117 | }; |
---|
118 | |
---|
119 | #endif // G4INUCL_COLLIDER_HH |
---|
120 | |
---|
121 | |
---|