|
||||
File indexing completed on 2025-01-18 09:59:30
0001 // 0002 // ******************************************************************** 0003 // * License and Disclaimer * 0004 // * * 0005 // * The Geant4 software is copyright of the Copyright Holders of * 0006 // * the Geant4 Collaboration. It is provided under the terms and * 0007 // * conditions of the Geant4 Software License, included in the file * 0008 // * LICENSE and available at http://cern.ch/geant4/license . These * 0009 // * include a list of copyright holders. * 0010 // * * 0011 // * Neither the authors of this software system, nor their employing * 0012 // * institutes,nor the agencies providing financial support for this * 0013 // * work make any representation or warranty, express or implied, * 0014 // * regarding this software system or assume any liability for its * 0015 // * use. Please see the license in the file LICENSE and URL above * 0016 // * for the full disclaimer and the limitation of liability. * 0017 // * * 0018 // * This code implementation is the result of the scientific and * 0019 // * technical work of the GEANT4 collaboration. * 0020 // * By using, copying, modifying or distributing the software (or * 0021 // * any work based on the software) you agree to acknowledge its * 0022 // * use in resulting scientific publications, and indicate your * 0023 // * acceptance of all terms of the Geant4 Software license. * 0024 // ******************************************************************** 0025 // 0026 // 0027 //--------------------------------------------------------------------------- 0028 // 0029 // ClassName: INCLXXPhysicsListHelper 0030 // 0031 // Author: 04.03.2013 D. Mancusi 0032 // Created by modifying and generalising the QGSP_INCLXX source files 0033 // 0034 //---------------------------------------------------------------------------- 0035 // 0036 #ifndef TINCLXXPhysicsListHelper_h 0037 #define TINCLXXPhysicsListHelper_h 1 0038 0039 #include <CLHEP/Units/SystemOfUnits.h> 0040 0041 #include "globals.hh" 0042 #include "G4VModularPhysicsList.hh" 0043 #include "CompileTimeConstraints.hh" 0044 #include "G4String.hh" 0045 0046 /** 0047 * <h1>Physics list helper INCLXXPhysicsListHelper</h1> 0048 * 0049 * <h2>Use case</h2> 0050 * This class is used to define the following INCLXX-based physics lists: 0051 * * QGSP_INCLXX 0052 * * QGSP_INCLXX_HP 0053 * * FTFP_INCLXX 0054 * * FTFP_INCLXX_HP 0055 * They are mainly intended for use with energies less than 3 GeV. This is 0056 * useful for e.g. spallation studies and Accelerator Driven Systems (ADS) 0057 * applications. 0058 * 0059 * <h2>Usage</h2> 0060 * The physics lists above can be activated in a simulation application by 0061 * giving it as part of the user initialization to the run manager, e.g.: 0062 * @code 0063 * G4RunManager *runManager = new G4RunManager; 0064 * G4VUserPhysicsList *physics = new QGSP_INCLXX; 0065 * runManager->SetUserInitialization(physics); 0066 * @endcode 0067 * 0068 * <h2>Hadronic models</h2> 0069 * The list uses INCL++ intra-nuclear cascade model in the energy range 0 - 3 0070 * GeV. Between 3 - 15 GeV Bertini cascade is used and above 15 GeV the high 0071 * energy QGSP model or FTFP model. The _HP variants use NeutronHP below 20 0072 * MeV. 0073 * 0074 * @see G4HadronPhysicsINCLXX 0075 * @see G4INCLXXProtonBuilder 0076 * @see G4INCLXXNeutronBuilder 0077 * @see G4INCLXXPiKBuilder 0078 * @see G4IonINCLXXPhysics 0079 */ 0080 template<class T, bool withNeutronHP, bool withFTFP> 0081 class TINCLXXPhysicsListHelper: public T 0082 { 0083 public: 0084 TINCLXXPhysicsListHelper(G4int ver = 1); 0085 virtual ~TINCLXXPhysicsListHelper(); 0086 0087 public: 0088 // SetCuts() 0089 virtual void SetCuts(); 0090 0091 private: 0092 enum {ok = CompileTimeConstraints::IsA<T, G4VModularPhysicsList>::ok }; 0093 G4String name; 0094 }; 0095 0096 #include "INCLXXPhysicsListHelper.icc" 0097 typedef TINCLXXPhysicsListHelper<G4VModularPhysicsList,false,false> QGSP_INCLXX; 0098 typedef TINCLXXPhysicsListHelper<G4VModularPhysicsList,true, false> QGSP_INCLXX_HP; 0099 typedef TINCLXXPhysicsListHelper<G4VModularPhysicsList,false,true> FTFP_INCLXX; 0100 typedef TINCLXXPhysicsListHelper<G4VModularPhysicsList,true, true> FTFP_INCLXX_HP; 0101 0102 // 2013 by D. Mancusi 0103 0104 #endif 0105 0106 0107
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |