[819] | 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 | // |
---|
[1055] | 27 | // $Id: G4QSplitter.hh,v 1.3 2009/02/23 09:49:24 mkossov Exp $ |
---|
| 28 | // GEANT4 tag $Name: geant4-09-03-beta-cand-01 $ |
---|
[819] | 29 | // |
---|
| 30 | // ---------------- G4QSplitter ---------------- |
---|
| 31 | // by Mikhail Kossov, Avgust 2005. |
---|
| 32 | // header for Hadron-Hadron Splitter in parton pairs of the CHIPS Model |
---|
| 33 | // -------------------------------------------------------------------- |
---|
[1055] | 34 | // Short description: the hadron befor the interaction must be splitted |
---|
| 35 | // in partons: quark-antiquark (mesons) or quark-diquark (baryon) parts |
---|
| 36 | // (some time in more than two parts, e.g. baryon in three quarks or a |
---|
| 37 | // few quark-antiquark pairs can be added for the splitting). Then each |
---|
| 38 | // projectile parton can create a parton pair (G4QPartonPair) with the |
---|
| 39 | // target parton. This pair with the big rapidity difference on the ends |
---|
| 40 | // creates a planar Quark-Gluon String (a pole). A pair of the projectile |
---|
| 41 | // partons with a pair of the target partons can create a cylindrical |
---|
| 42 | // string (doubled string in the algorithm - a cut). |
---|
| 43 | // -------------------------------------------------===------------------ |
---|
[819] | 44 | |
---|
| 45 | #ifndef G4QSplitter_h |
---|
| 46 | #define G4QSplitter_h 1 |
---|
| 47 | |
---|
| 48 | #include "G4QuasmonVector.hh" |
---|
| 49 | //#include "G4RandomDirection.hh" |
---|
| 50 | // Call G4RandomDirection() (global) instead of old RndmDir() (local) |
---|
| 51 | |
---|
| 52 | class G4QSplitter |
---|
| 53 | { |
---|
| 54 | public: |
---|
| 55 | // projectile Hadron (probably as a part of proj Nucleus) colliding with a nuclear target |
---|
| 56 | //G4QSplitter(G4QHadron projHadron, const G4bool projEnvFlag, const G4int targPDG); |
---|
| 57 | // projectile Hadron (probably as a part of proj Nucleus) colliding with nuclear Cluster |
---|
| 58 | G4QSplitter(G4QHadron projHadron, const G4bool projEnvFlag, const G4int targPDG, |
---|
[1055] | 59 | const G4bool targEnvFlag); // Cluster can have target nuclear environment |
---|
[819] | 60 | // projectile Cluster (probably as a part of proj Nucleus) colliding with nuclear target |
---|
| 61 | //G4QSplitter(G4QNucleus projCluster, const G4bool projEnvFlag, const G4int targPDG); |
---|
| 62 | // projectile Cluster (probably as a part of proj Nucleus) colliding with nuclear Cluster |
---|
| 63 | //G4QSplitter(G4QNucleus projCluster, const G4bool projEnvFlag, const G4int targPDG, |
---|
[1055] | 64 | // const G4bool targEnvFlag); // Cluster can have target nuclear environment |
---|
[819] | 65 | G4QSplitter(const G4QSplitter& right); // Copy the splitted system by value |
---|
| 66 | G4QSplitter(G4QSplitter* right); // Copy the splitted system by pointer |
---|
| 67 | ~G4QSplitter(); // Public Destructor |
---|
| 68 | |
---|
| 69 | // Overloaded operators |
---|
| 70 | const G4QSplitter& operator=(const G4QSplitter& right); // Copy the splitted system |
---|
| 71 | G4bool operator==(const G4QSplitter &right) const; // Compare two splitted systems |
---|
| 72 | G4bool operator!=(const G4QSplitter &right) const; // Compare two splitted systems |
---|
| 73 | |
---|
| 74 | //Selectors |
---|
| 75 | G4bool GetProjEnvFlag(); // Flag of nuclear environment around the projectile |
---|
| 76 | G4bool GetTargEnvFlag(); // Flag of nuclear environment around the target |
---|
| 77 | G4QuasmonVector* GetQuasmons(); // Get not decayed Quasmons (User must ClearAndDestr) |
---|
| 78 | G4QHadronVector* GetHadrons(); // Get current outputHadrons (User must ClearAndDestr) |
---|
| 79 | G4double GetWeight(); // Get weight of the event (?) |
---|
| 80 | G4int GetNOfHadrons(); // Get the number of created G4QHadrons |
---|
| 81 | G4int GetNOfQuasmons(); // Get the number of created G4Quasmons |
---|
| 82 | // Modifiers (Output: a Vector of Quasmons for fragmentation, some Quasms can be Hadrons) |
---|
| 83 | G4QHadronVector* Fragment(); // User must clear and destroy the G4QHadronVector |
---|
| 84 | |
---|
| 85 | // Static functions |
---|
| 86 | //static void SetParameters(G4double StParName=0., G4bool stFlag=false); |
---|
| 87 | |
---|
| 88 | private: |
---|
| 89 | G4QHadronVector HadronizeQString(); // Main HadronizationFunction used in Fragment() |
---|
| 90 | G4double RandomizeMomFractionFree(G4int nPart); // RandomMomFrac for nPart free partons |
---|
| 91 | G4double RandomizeMomFractionString(G4int nPart); // RandomMomFrac for nPart free partons |
---|
| 92 | |
---|
| 93 | // Body |
---|
| 94 | private: |
---|
| 95 | // Static Parameters |
---|
| 96 | //static G4double StParName; // Example of static parameter (see SetParameters) |
---|
| 97 | |
---|
| 98 | // Body |
---|
| 99 | G4bool theProjEnvFlag; // Projectile Environment Flag |
---|
| 100 | G4bool theTargEnvFlag; // Target Environment Flag |
---|
| 101 | G4QContent theProjQC; // Projectile Quark Content |
---|
| 102 | G4QContent theTargQC; // Target Quark Content |
---|
| 103 | G4LorentzVector theProj4Mom; // Projectile 4-momentum |
---|
| 104 | G4LorentzVector theTarg4Mom; // Target 4-momentum |
---|
| 105 | // Internal Quasmons |
---|
| 106 | G4QuasmonVector theQuasmons; // Vector of generated secondary Quasmons |
---|
| 107 | // Output Hadrons |
---|
| 108 | G4QHadronVector theQHadrons; // Vector of generated output Hadrons |
---|
| 109 | |
---|
| 110 | // Internal working parameters |
---|
| 111 | G4QCHIPSWorld* theWorld; // the CHIPS World |
---|
| 112 | G4LorentzVector tot4Mom; // Total 4-momentum in the reaction |
---|
| 113 | G4int totCharge; // Total charge in the reaction (for current control) |
---|
| 114 | G4int totBaryNum; // Total baryon number in the reaction (for cur.cont.) |
---|
| 115 | G4double theWeight; // Weight of the event |
---|
| 116 | }; |
---|
| 117 | |
---|
| 118 | //General function makes Random Unit 3D-Vector |
---|
| 119 | G4ThreeVector RndmDir(); // @@ ?? |
---|
| 120 | |
---|
| 121 | // Inline functions |
---|
| 122 | inline G4bool G4QSplitter::operator==(const G4QSplitter &rhs) const {return this == &rhs;} |
---|
| 123 | inline G4bool G4QSplitter::operator!=(const G4QSplitter &rhs) const {return this != &rhs;} |
---|
| 124 | |
---|
| 125 | #endif |
---|