// // ******************************************************************** // * 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$ // //--------------------------------------------------------------------------- // // ClassName: HadronPhysicsQGSP // // Author: 2002 J.P. Wellisch // // Modified: // 21.11.2005 G.Folger: don't keep processes as data members, but new these // 08.06.2006 V.Ivanchenko: remove stopping // 30.03.2007 G.Folger: Add quasielastic option, turned off by default // 25.04.2007 G.Folger: Use quasielastic by default // 31.10.2012 A.Ribon: Use G4MiscBuilder // //---------------------------------------------------------------------------- // #ifndef HadronPhysicsQGSP_h #define HadronPhysicsQGSP_h 1 #include "globals.hh" #include "G4ios.hh" #include "G4VPhysicsConstructor.hh" #include "G4MiscBuilder.hh" #include "G4PiKBuilder.hh" #include "G4LEPPiKBuilder.hh" #include "G4QGSPPiKBuilder.hh" #include "G4ProtonBuilder.hh" #include "G4LEPProtonBuilder.hh" #include "G4QGSPProtonBuilder.hh" #include "G4NeutronBuilder.hh" #include "G4LEPNeutronBuilder.hh" #include "G4QGSPNeutronBuilder.hh" class HadronPhysicsQGSP : public G4VPhysicsConstructor { public: HadronPhysicsQGSP(G4int verbose =1); HadronPhysicsQGSP(const G4String& name, G4bool quasiElastic=true); virtual ~HadronPhysicsQGSP(); public: virtual void ConstructParticle(); virtual void ConstructProcess(); void SetQuasiElastic(G4bool value) {QuasiElastic = value;}; void SetProjectileDiffraction(G4bool value) {ProjectileDiffraction = value;}; private: void CreateModels(); G4NeutronBuilder * theNeutrons; G4LEPNeutronBuilder * theLEPNeutron; G4QGSPNeutronBuilder * theQGSPNeutron; G4PiKBuilder * thePiK; G4LEPPiKBuilder * theLEPPiK; G4QGSPPiKBuilder * theQGSPPiK; G4ProtonBuilder * thePro; G4LEPProtonBuilder * theLEPPro; G4QGSPProtonBuilder * theQGSPPro; G4MiscBuilder * theMisc; G4bool QuasiElastic; G4bool ProjectileDiffraction; }; #endif