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 | // $Id: G4QParentCluster.hh,v 1.24 2009/02/23 09:49:24 mkossov Exp $ |
---|
28 | // GEANT4 tag $Name: hadr-chips-V09-03-08 $ |
---|
29 | // |
---|
30 | // ---------------- G4QParentCluster ---------------- |
---|
31 | // by Mikhail Kossov, Sept 1999. |
---|
32 | // class header for a Parent nuclear cluster in the CHIPS Model |
---|
33 | // ------------------------------------------------------------------- |
---|
34 | // Short description: The parent cluster is the cluster, which can be |
---|
35 | // used for the nuclear fragment production. Different clusters csn be |
---|
36 | // used as the parent cluser for the particular G4QCandidate (nuclear |
---|
37 | // fragment), e.g. t and He3 for the t-fragment production. So the |
---|
38 | // G4QParentClusterVector is needed. |
---|
39 | // ------------------------------------------------------------------- |
---|
40 | |
---|
41 | #ifndef G4QParentCluster_h |
---|
42 | #define G4QParentCluster_h 1 |
---|
43 | |
---|
44 | #include <iostream> |
---|
45 | #include "globals.hh" |
---|
46 | #include "G4QContent.hh" |
---|
47 | |
---|
48 | class G4QParentCluster |
---|
49 | { |
---|
50 | public: |
---|
51 | // Constructors |
---|
52 | G4QParentCluster(G4int PDGCode = 0); // Construction by PDGCode |
---|
53 | G4QParentCluster(G4int PDGCode, G4double prob); // Construction by PDGCode & Probab |
---|
54 | G4QParentCluster(const G4QParentCluster& rhs); // Copy Constructor by value |
---|
55 | G4QParentCluster(G4QParentCluster* rhs); // Copy Constructor by pointer |
---|
56 | |
---|
57 | ~G4QParentCluster(); // Public Destructor |
---|
58 | |
---|
59 | // Operators |
---|
60 | const G4QParentCluster& operator=(const G4QParentCluster& rhs); |
---|
61 | G4bool operator==(const G4QParentCluster& rhs) const; |
---|
62 | G4bool operator!=(const G4QParentCluster& rhs) const; |
---|
63 | |
---|
64 | // Selectors |
---|
65 | G4int GetPDGCode() const; // Get PDG code of the Parent Cluster |
---|
66 | G4double GetProbability() const; // Get a probability of hadronization on it |
---|
67 | G4int GetNQPart2() const; // Get n-2 for the fragment |
---|
68 | G4QContent GetTransQC() const; // Get QuarkCont of a Pseudo Exchange Meson |
---|
69 | G4double GetLow() const; // Get a low limit for randomization |
---|
70 | G4double GetHigh() const; // Get a high limit for randomization |
---|
71 | G4double GetEBMass() const; // Get a Nuclear Bounded mass of the parent cluster |
---|
72 | G4double GetEBind() const; // Get Environment BindingEnergy for the parentCluster |
---|
73 | G4double GetNBMass() const; // Get Environmental BoundedMass of the parent Cluster |
---|
74 | G4double GetNBind() const; // Get TotalNucleusBindingEnergy for the parentCluster |
---|
75 | |
---|
76 | // Modifiers |
---|
77 | void SetPDGCode(G4int newPDGCode); // Set PDG code of the Parent Cluster |
---|
78 | void SetProbability(G4double probab); // Set probab. to hadronize on this cluster |
---|
79 | void SetNQPart2(G4int nm2); // Get n-2 for the fragment |
---|
80 | void SetTransQC(G4QContent newTrans); // Set QuarkCont of a Pseudo Exchange Meson |
---|
81 | void SetLow(G4double loLim); // Set a low limit for hadronization |
---|
82 | void SetHigh(G4double hiLim); // Set a high limit for hadronization |
---|
83 | void SetEBMass(G4double bMass); // Set a bounded mass of the parent cluster in E |
---|
84 | void SetEBind(G4double bEn); // Set binding energy of the parent cluster in E |
---|
85 | void SetNBMass(G4double bMass); // Set a bounded mass of the parent cluster in N |
---|
86 | void SetNBind(G4double bEn); // Set binding energy of the parent cluster in N |
---|
87 | |
---|
88 | // General |
---|
89 | |
---|
90 | private: |
---|
91 | // Encapsulated functions |
---|
92 | |
---|
93 | private: |
---|
94 | // the Body |
---|
95 | G4int thePDGCode; |
---|
96 | G4double theProbability; |
---|
97 | // Secondary |
---|
98 | G4int nQPart2; |
---|
99 | G4QContent transQC; // Quark Content of the pseudo exchange meson |
---|
100 | G4double lowLimit; |
---|
101 | G4double highLimit; |
---|
102 | G4double theEnvBoundedMass; |
---|
103 | G4double theEnvBindingEnergy; |
---|
104 | G4double theNucBoundedMass; |
---|
105 | G4double theNucBindingEnergy; |
---|
106 | }; |
---|
107 | |
---|
108 | // Not member operators |
---|
109 | std::ostream& operator<<(std::ostream& lhs, G4QParentCluster& rhs); |
---|
110 | std::ostream& operator<<(std::ostream& lhs, const G4QParentCluster& rhs); |
---|
111 | |
---|
112 | inline G4bool G4QParentCluster::operator==(const G4QParentCluster& rhs) const |
---|
113 | {return this==&rhs;} |
---|
114 | inline G4bool G4QParentCluster::operator!=(const G4QParentCluster& rhs) const |
---|
115 | {return this!=&rhs;} |
---|
116 | |
---|
117 | inline G4int G4QParentCluster::GetPDGCode() const {return thePDGCode;} |
---|
118 | inline G4double G4QParentCluster::GetProbability() const {return theProbability;} |
---|
119 | inline G4int G4QParentCluster::GetNQPart2() const {return nQPart2;} |
---|
120 | inline G4QContent G4QParentCluster::GetTransQC() const {return transQC;} |
---|
121 | inline G4double G4QParentCluster::GetHigh() const {return highLimit;} |
---|
122 | inline G4double G4QParentCluster::GetLow() const {return lowLimit;} |
---|
123 | inline G4double G4QParentCluster::GetEBMass() const {return theEnvBoundedMass;} |
---|
124 | inline G4double G4QParentCluster::GetEBind() const {return theEnvBindingEnergy;} |
---|
125 | inline G4double G4QParentCluster::GetNBMass() const {return theNucBoundedMass;} |
---|
126 | inline G4double G4QParentCluster::GetNBind() const {return theNucBindingEnergy;} |
---|
127 | |
---|
128 | inline void G4QParentCluster::SetPDGCode(G4int newPDGCode) {thePDGCode = newPDGCode;} |
---|
129 | inline void G4QParentCluster::SetProbability(G4double prob) {theProbability = prob;} |
---|
130 | inline void G4QParentCluster::SetNQPart2(G4int nm2) {nQPart2 = nm2;} |
---|
131 | inline void G4QParentCluster::SetTransQC(G4QContent newTrans) {transQC = newTrans;} |
---|
132 | inline void G4QParentCluster::SetHigh(G4double hiLim) {highLimit = hiLim;} |
---|
133 | inline void G4QParentCluster::SetLow(G4double loLim) {lowLimit = loLim;} |
---|
134 | inline void G4QParentCluster::SetEBMass(G4double bMass) {theEnvBoundedMass = bMass;} |
---|
135 | inline void G4QParentCluster::SetNBMass(G4double bMass) {theNucBoundedMass = bMass;} |
---|
136 | inline void G4QParentCluster::SetEBind(G4double bEn) {theEnvBindingEnergy= bEn;} |
---|
137 | inline void G4QParentCluster::SetNBind(G4double bEn) {theNucBindingEnergy= bEn;} |
---|
138 | |
---|
139 | #endif |
---|
140 | |
---|
141 | |
---|
142 | |
---|