// // ******************************************************************** // * License and Disclaimer * // * * // * The Geant4 software is copyright of the Copyright Holders of * // * the Geant4 Collaboration. It is provided under the terms and * // * conditions of the Geant4 Software License, included in the file * // * LICENSE and available at http://cern.ch/geant4/license . These * // * include a list of copyright holders. * // * * // * Neither the authors of this software system, nor their employing * // * institutes,nor the agencies providing financial support for this * // * work make any representation or warranty, express or implied, * // * regarding this software system or assume any liability for its * // * use. Please see the license in the file LICENSE and URL above * // * for the full disclaimer and the limitation of liability. * // * * // * This code implementation is the result of the scientific and * // * technical work of the GEANT4 collaboration. * // * By using, copying, modifying or distributing the software (or * // * any work based on the software) you agree to acknowledge its * // * use in resulting scientific publications, and indicate your * // * acceptance of all terms of the Geant4 Software license. * // ******************************************************************** // // // $Id: G4QParton.cc,v 1.9 2009/07/17 16:54:57 mkossov Exp $ // GEANT4 tag $Name: geant4-09-03 $ // // ------------------------------------------------------------ // GEANT 4 class implementation file // // ---------------- G4QParton ---------------- // by Mikhail Kossov, Oct 2006. // class for Parton (inside a string) used by Parton String Models // For comparison mirror member functions are taken from G4 class: // G4Parton // ------------------------------------------------------------------------ // Short description: The Quark-Gluon String consists of the partons, which // are quarks and some times gluons. // ------------------------------------------------------------------------ //#define debug #include "G4QParton.hh" G4QParton::G4QParton() // By default creates only quarks (not di-quarks) { // CHIPS is working only with u, d, and s quarks (SU(3)xSU(3)) (no gluons! M.K.) // Random Flavor/Colour/Spin definition for default constructor (with .3 s-suppresion) PGGCode=(G4int)(2.3*G4UniformRand())+1; //@@ Additional parameter of s/u (M.K.) theType=1; #ifdef debug G4cout<<"....G4QParton::DefConstructer: PDG = "<0) { if (PDG==1) QCont=G4QContent(1,0,0,0,0,0); // d else if(PDG==2) QCont=G4QContent(0,1,0,0,0,0); // u else if(PDG==3) QCont=G4QContent(0,0,1,0,0,0); // s else { G4cerr<<"***G4QParton::SetPDGCode: bad quark PDG="<