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: G4QuasmonString.hh,v 1.4 2006/06/29 20:06:41 gunter Exp $ |
---|
28 | // GEANT4 tag $Name: geant4-09-02-ref-02 $ |
---|
29 | // |
---|
30 | // ---------------- G4QuasmonString ---------------- |
---|
31 | // by Mikhail Kossov, October 2004. |
---|
32 | // header for Hadron-Hadron String Interaction in the CHIPS Model |
---|
33 | // ------------------------------------------------------------------- |
---|
34 | |
---|
35 | #ifndef G4QuasmonString_h |
---|
36 | #define G4QuasmonString_h 1 |
---|
37 | |
---|
38 | #include "G4QuasmonVector.hh" |
---|
39 | //#include "G4RandomDirection.hh" |
---|
40 | // Call G4RandomDirection() (global) instead of old RndmDir() (local) |
---|
41 | |
---|
42 | class G4QuasmonString |
---|
43 | { |
---|
44 | public: |
---|
45 | G4QuasmonString(G4QHadron projHadron, const G4bool projEnvFlag, const G4int targPDG, |
---|
46 | const G4bool targEnvFlag); |
---|
47 | G4QuasmonString(const G4QuasmonString& right); // copy QString by value |
---|
48 | G4QuasmonString(G4QuasmonString* right); // copy QString by pointer |
---|
49 | ~G4QuasmonString(); // Public Destructor |
---|
50 | |
---|
51 | // Overloaded operators |
---|
52 | const G4QuasmonString& operator=(const G4QuasmonString& right); |
---|
53 | G4bool operator==(const G4QuasmonString &right) const; |
---|
54 | G4bool operator!=(const G4QuasmonString &right) const; |
---|
55 | |
---|
56 | //Selectors |
---|
57 | G4bool GetProjEnvFlag(); |
---|
58 | G4bool GetTargEnvFlag(); |
---|
59 | G4QuasmonVector* GetQuasmons(); // Get not decayed Quasmons (User must ClearAndDestr) |
---|
60 | G4QHadronVector* GetHadrons(); // Get current outputHadrons (User must ClearAndDestr) |
---|
61 | G4double GetWeight(); // Get weight of the event |
---|
62 | G4int GetNOfHadrons(); // Get the number of created G4QHadrons |
---|
63 | G4int GetNOfQuasmons(); // Get the number of created G4Quasmons |
---|
64 | // Modifiers (Output: a Vector of Quasmons for fragmentation, some Quasms can be Hadrons) |
---|
65 | G4QHadronVector* Fragment(); // User must clear and destroy the G4QHadronVector |
---|
66 | |
---|
67 | // Static functions |
---|
68 | //static void SetParameters(G4double StParName=0., G4bool stFlag=false); |
---|
69 | |
---|
70 | private: |
---|
71 | G4QHadronVector HadronizeQString(); // Main HadronizationFunction used in Fragment() |
---|
72 | G4double RandomizeMomFractionFree(G4int nPart); // RandomMomFrac for nPart free partons |
---|
73 | G4double RandomizeMomFractionString(G4int nPart); // RandomMomFrac for nPart free partons |
---|
74 | |
---|
75 | // Body |
---|
76 | private: |
---|
77 | // Static Parameters |
---|
78 | //static G4double StParName; // Example of static parameter (see SetParameters) |
---|
79 | |
---|
80 | // Body |
---|
81 | G4bool theProjEnvFlag; // Projectile Environment Flag |
---|
82 | G4bool theTargEnvFlag; // Target Environment Flag |
---|
83 | G4QContent theProjQC; // Projectile Quark Content |
---|
84 | G4QContent theTargQC; // Target Quark Content |
---|
85 | G4LorentzVector theProj4Mom; // Projectile 4-momentum |
---|
86 | G4LorentzVector theTarg4Mom; // Target 4-momentum |
---|
87 | // Internal Quasmons |
---|
88 | G4QuasmonVector theQuasmons; // Vector of generated secondary Quasmons |
---|
89 | // Output Hadrons |
---|
90 | G4QHadronVector theQHadrons; // Vector of generated output Hadrons |
---|
91 | |
---|
92 | // Internal working parameters |
---|
93 | G4QCHIPSWorld* theWorld; // the CHIPS World |
---|
94 | G4LorentzVector tot4Mom; // Total 4-momentum in the reaction |
---|
95 | G4int totCharge; // Total charge in the reaction (for current control) |
---|
96 | G4int totBaryNum; // Total baryon number in the reaction (for cur.cont.) |
---|
97 | G4double theWeight; // Weight of the event |
---|
98 | }; |
---|
99 | |
---|
100 | //General function makes Random Unit 3D-Vector |
---|
101 | G4ThreeVector RndmDir(); // @@ ?? |
---|
102 | |
---|
103 | // Inline functions |
---|
104 | inline G4bool G4QuasmonString::operator==(const G4QuasmonString &rhs) const |
---|
105 | {return this == &rhs;} |
---|
106 | inline G4bool G4QuasmonString::operator!=(const G4QuasmonString &rhs) const |
---|
107 | {return this != &rhs;} |
---|
108 | |
---|
109 | #endif |
---|