[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 | // |
---|
[962] | 27 | // $Id: G4FragmentingString.hh,v 1.4 2007/12/20 15:38:06 vuzhinsk Exp $ |
---|
| 28 | // GEANT4 tag $Name: geant4-09-02-ref-02 $ |
---|
[819] | 29 | // |
---|
| 30 | |
---|
| 31 | #ifndef G4FragmentingString_h |
---|
| 32 | #define G4FragmentingString_h 1 |
---|
| 33 | |
---|
| 34 | // ------------------------------------------------------------ |
---|
| 35 | // GEANT 4 class header file |
---|
| 36 | // |
---|
| 37 | // ---------------- G4FragmentingString ---------------- |
---|
| 38 | // by Gunter Folger, September 2001. |
---|
| 39 | // class for an excited string used in Fragmention |
---|
| 40 | // ------------------------------------------------------------ |
---|
| 41 | |
---|
| 42 | #include "G4ios.hh" |
---|
| 43 | #include "globals.hh" |
---|
| 44 | #include "G4ThreeVector.hh" |
---|
| 45 | #include "G4LorentzVector.hh" |
---|
| 46 | #include "G4ParticleDefinition.hh" |
---|
| 47 | |
---|
| 48 | class G4ExcitedString; |
---|
| 49 | |
---|
| 50 | class G4FragmentingString |
---|
| 51 | { |
---|
| 52 | |
---|
| 53 | public: |
---|
| 54 | |
---|
| 55 | G4FragmentingString(const G4FragmentingString &right); |
---|
| 56 | G4FragmentingString(const G4ExcitedString &excited); |
---|
| 57 | G4FragmentingString(const G4FragmentingString &old, |
---|
| 58 | G4ParticleDefinition * newdecay, |
---|
| 59 | const G4LorentzVector *momentum); |
---|
[962] | 60 | G4FragmentingString(const G4FragmentingString &old, // Uzhi |
---|
| 61 | G4ParticleDefinition * newdecay); // Uzhi |
---|
| 62 | |
---|
[819] | 63 | ~G4FragmentingString(); |
---|
| 64 | |
---|
| 65 | int operator==(const G4FragmentingString &right) const; |
---|
| 66 | |
---|
| 67 | int operator!=(const G4FragmentingString &right) const; |
---|
| 68 | |
---|
| 69 | |
---|
| 70 | G4LorentzVector Get4Momentum() const; |
---|
| 71 | |
---|
| 72 | G4ThreeVector StablePt(); |
---|
| 73 | G4ThreeVector DecayPt(); |
---|
| 74 | |
---|
| 75 | G4double LightConePlus(); |
---|
| 76 | G4double LightConeMinus(); |
---|
| 77 | G4double LightConeDecay(); |
---|
| 78 | |
---|
| 79 | G4double Mass() const; |
---|
| 80 | G4double Mass2() const; |
---|
[962] | 81 | G4double MassT2() const; |
---|
[819] | 82 | |
---|
| 83 | G4ParticleDefinition* GetLeftParton(void) const; |
---|
| 84 | G4ParticleDefinition* GetRightParton(void) const; |
---|
| 85 | |
---|
| 86 | G4ParticleDefinition* GetStableParton() const; // stable at the moment |
---|
| 87 | G4ParticleDefinition* GetDecayParton() const; // currently involved in fragmentation |
---|
| 88 | |
---|
| 89 | void SetLeftPartonStable(); |
---|
| 90 | void SetRightPartonStable(); |
---|
| 91 | |
---|
| 92 | G4int GetDecayDirection() const; |
---|
| 93 | |
---|
| 94 | G4bool DecayIsQuark(); |
---|
| 95 | G4bool StableIsQuark(); |
---|
| 96 | G4bool FourQuarkString(void) const; |
---|
| 97 | |
---|
| 98 | |
---|
| 99 | private: |
---|
| 100 | |
---|
| 101 | G4ParticleDefinition *LeftParton, *RightParton; |
---|
| 102 | G4ThreeVector Ptleft,Ptright; // Pt (px,py) for partons (pz ignored!) |
---|
| 103 | G4double Pplus, Pminus; // p-, p+ of string, Plus ass. to Left! |
---|
| 104 | |
---|
| 105 | G4ParticleDefinition * theStableParton, * theDecayParton; |
---|
| 106 | |
---|
| 107 | enum DecaySide { None, Left, Right }; |
---|
| 108 | DecaySide decaying; |
---|
| 109 | }; |
---|
| 110 | |
---|
| 111 | inline |
---|
| 112 | int G4FragmentingString::operator==(const G4FragmentingString &right) const |
---|
| 113 | { |
---|
| 114 | return this == &right; |
---|
| 115 | } |
---|
| 116 | |
---|
| 117 | inline |
---|
| 118 | int G4FragmentingString::operator!=(const G4FragmentingString &right) const |
---|
| 119 | { |
---|
| 120 | return this != &right; |
---|
| 121 | } |
---|
| 122 | |
---|
| 123 | |
---|
| 124 | inline |
---|
| 125 | G4ParticleDefinition * G4FragmentingString::GetStableParton() const |
---|
| 126 | { |
---|
| 127 | return theStableParton; |
---|
| 128 | } |
---|
| 129 | |
---|
| 130 | inline |
---|
| 131 | G4ParticleDefinition * G4FragmentingString::GetDecayParton() const |
---|
| 132 | { |
---|
| 133 | return theDecayParton; |
---|
| 134 | } |
---|
| 135 | |
---|
| 136 | inline |
---|
| 137 | G4ParticleDefinition* G4FragmentingString::GetLeftParton(void) const |
---|
| 138 | { |
---|
| 139 | return LeftParton; |
---|
| 140 | } |
---|
| 141 | |
---|
| 142 | inline |
---|
| 143 | G4ParticleDefinition* G4FragmentingString::GetRightParton(void) const |
---|
| 144 | { |
---|
| 145 | return RightParton; |
---|
| 146 | } |
---|
| 147 | |
---|
| 148 | |
---|
| 149 | |
---|
| 150 | #endif |
---|
| 151 | |
---|
| 152 | |
---|