// // ******************************************************************** // * 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: G4QCHIPSWorld.cc,v 1.33 2009/02/23 09:49:24 mkossov Exp $ // GEANT4 tag $Name: geant4-09-03 $ // // ---------------- G4QCHIPSWorld ---------------- // by Mikhail Kossov, Sept 1999. // class for the CHIPS World definition in CHIPS Model // ------------------------------------------------------------------- // Short description: The CHIPS World is a world of elementary particles // and nuclear fragments. This class is a singletone, but without fixed // limits. E.g. the nuclear fragments as possible G4Candidates can be // initialized in the CHIPS World only up to Be8 od C12 or other bigger // nuclear fragment. If one need the heavy fragment production then the // the CHIPS World must be initialized up to these fragments (see the // CHIPS Manual), but the price in performans will be big, because in // each act of the fragmentation competition these numerous candidates // take place in the competition and the hadronization probability is // calculated each time for each of them, so the Be8 limit (Be8->alpha+ // alpha decays very fast and contribute to the alpha-spectrum) is the // most optimal. // ------------------------------------------------------------------- //#define debug //#define pdebug #include "G4QCHIPSWorld.hh" // Initialization of the CHIPSWorld Pointer // G4QCHIPSWorld* G4QCHIPSWorld::aWorld =0; // G4QParticleVector G4QCHIPSWorld::qWorld; // Constructor G4QCHIPSWorld::G4QCHIPSWorld() { } G4QCHIPSWorld::~G4QCHIPSWorld() // The CHIPS World is destructed only in the EndOfJob { //G4int nP=GetQWorld().size(); //G4cout<<"G4QCHIPSWorld::Destructor: Before nP="<"<InitQParticle(i); // //if(!i) G4cout<<"G4QCHIPSWorld::GetParticles:Pt#0="<