Changeset 1055 for trunk/source/processes/hadronic/models/chiral_inv_phase_space/body/include/G4QParton.hh
- Timestamp:
- May 28, 2009, 4:26:57 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/hadronic/models/chiral_inv_phase_space/body/include/G4QParton.hh
r1007 r1055 28 28 #define G4QParton_h 1 29 29 30 // $Id: G4QParton.hh,v 1. 2 2006/12/12 11:02:22mkossov Exp $31 // GEANT4 tag $Name: geant4-09-0 2$30 // $Id: G4QParton.hh,v 1.3 2009/02/23 09:49:24 mkossov Exp $ 31 // GEANT4 tag $Name: geant4-09-03-beta-cand-01 $ 32 32 // 33 33 // ------------------------------------------------------------ … … 40 40 // G4Parton 41 41 // ----------------------------------------------------------------- 42 // Short description: The Quark-Gluon String consists of the partons, which 43 // are quarks and some times gluons. 44 // ------------------------------------------------------------------------ 42 45 43 46 #include "globals.hh" … … 57 60 // Random Flavor/Colour/Spin definition for default constructor (with .3 s-suppresion) 58 61 PDGencoding=(G4int)(2.3*G4UniformRand())+1; //@@ What about antiquarks? (M.K.) 59 60 62 theDefinition=G4ParticleTable::GetParticleTable()->FindParticle(PDGencoding); 63 // random colour (1,2,3)=(R,G,B) for quarks and (-1,-2,-3)=(aR,aG,aB) for anti-quarks 61 64 theColour = (G4int)(3*G4UniformRand())+1; 62 65 if(theColour>3) theColour = 3; … … 64 67 theSpinZ = (G4int)(2*G4UniformRand()) - 0.5; 65 68 } 66 69 G4QParton(G4int PDGencoding); // Collor/Spin are still random 67 70 G4QParton(const G4QParton &right); 68 71 G4QParton(const G4QParton* right); … … 73 76 // Operators 74 77 const G4QParton& operator=(const G4QParton &right); 75 G4int operator==(const G4QParton &right) const {return this==&right;} 76 G4int operator!=(const G4QParton &right) const {return this!=&right;} 78 G4int operator==(const G4QParton &right) const {return this==&right;} 79 G4int operator!=(const G4QParton &right) const {return this!=&right;} 77 80 78 81 // Modifiers … … 97 100 G4String GetParticleSubType() {return theDefinition->GetParticleSubType();} 98 101 private: 99 102 // Body 100 103 G4int PDGencoding; 101 104 G4ParticleDefinition* theDefinition;
Note: See TracChangeset
for help on using the changeset viewer.