QGSP_QEL.icc

Go to the documentation of this file.
00001 //
00002 // ********************************************************************
00003 // * License and Disclaimer                                           *
00004 // *                                                                  *
00005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
00006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
00007 // * conditions of the Geant4 Software License,  included in the file *
00008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
00009 // * include a list of copyright holders.                             *
00010 // *                                                                  *
00011 // * Neither the authors of this software system, nor their employing *
00012 // * institutes,nor the agencies providing financial support for this *
00013 // * work  make  any representation or  warranty, express or implied, *
00014 // * regarding  this  software system or assume any liability for its *
00015 // * use.  Please see the license in the file  LICENSE  and URL above *
00016 // * for the full disclaimer and the limitation of liability.         *
00017 // *                                                                  *
00018 // * This  code  implementation is the result of  the  scientific and *
00019 // * technical work of the GEANT4 collaboration.                      *
00020 // * By using,  copying,  modifying or  distributing the software (or *
00021 // * any work based  on the software)  you  agree  to acknowledge its *
00022 // * use  in  resulting  scientific  publications,  and indicate your *
00023 // * acceptance of all terms of the Geant4 Software license.          *
00024 // ********************************************************************
00025 //
00026 // $Id$
00027 //
00028 //---------------------------------------------------------------------------
00029 //
00030 // ClassName:   QGSP_QEL
00031 //              using chips version of hadron Elastic scattering
00032 //
00033 // Author: 2006 G.Folger
00034 //
00035 // Created from QGSP
00036 // Modified:
00037 // 18.05.2009 G.Folger: obsoleted
00038 // 26.04.2007 G.Folger: Enable quasielastic for QGS string model
00039 // 16.05.2007 V.Ivanchenko: rename EM builders
00040 // 16.08.2010 H.Kurashige: Remove inclusion of G4ParticleWithCuts 
00041 // 16.10.2012 A.Ribon: Use new default stopping
00042 //
00043 //----------------------------------------------------------------------------
00044 //
00045 #include <iomanip>   
00046 
00047 #include "globals.hh"
00048 #include "G4ios.hh"
00049 #include "G4ProcessManager.hh"
00050 #include "G4ProcessVector.hh"
00051 #include "G4ParticleTypes.hh"
00052 #include "G4ParticleTable.hh"
00053 
00054 #include "G4Material.hh"
00055 #include "G4MaterialTable.hh"
00056 
00057 #include "G4DecayPhysics.hh"
00058 #include "G4EmStandardPhysics.hh"
00059 #include "G4EmExtraPhysics.hh"
00060 #include "G4IonPhysics.hh"
00061 #include "G4StoppingPhysics.hh"
00062 #include "G4HadronQElasticPhysics.hh"
00063 #include "G4NeutronTrackingCut.hh"
00064 
00065 #include "G4DataQuestionaire.hh"
00066 #include "HadronPhysicsQGSP.hh"
00067 
00068 #include "G4WarnPLStatus.hh"
00069 
00070 template<class T> TQGSP_QEL<T>::TQGSP_QEL(G4int ver):  T()
00071 {
00072   // default cut value  (1.0mm) 
00073   // defaultCutValue = 1.0*CLHEP::mm;
00074 
00075   G4DataQuestionaire it(photon);
00076   G4cout << "<<< Geant4 Physics List simulation engine: QGSP_QEL 2.0"<<G4endl;
00077   G4cout <<G4endl;
00078 
00079   this->defaultCutValue = 0.7*CLHEP::mm;  
00080   this->SetVerboseLevel(ver);
00081 
00082   G4WarnPLStatus obs;
00083   obs.Unsupported("QGSP_QEL");
00084 
00085   // EM Physics
00086   this->RegisterPhysics( new G4EmStandardPhysics(ver) );
00087 
00088   // Synchroton Radiation & GN Physics
00089   this->RegisterPhysics( new G4EmExtraPhysics(ver) );
00090 
00091   // Decays
00092   this->RegisterPhysics( new G4DecayPhysics(ver) );
00093 
00094    // Hadron Elastic scattering, "CHIPS" version
00095   this-> RegisterPhysics( new G4HadronQElasticPhysics(ver) );
00096 
00097    // Hadron Physics
00098    G4bool quasiElastic;
00099   this->RegisterPhysics( new HadronPhysicsQGSP("hadron",quasiElastic=true));
00100 
00101   // Stopping Physics
00102   this->RegisterPhysics( new G4StoppingPhysics(ver) );
00103 
00104   // Ion Physics
00105   this->RegisterPhysics( new G4IonPhysics(ver));
00106   
00107   // Neutron tracking cut
00108   this->RegisterPhysics( new G4NeutronTrackingCut("Neutron tracking cut", ver));
00109 
00110 }
00111 
00112 template<class T> TQGSP_QEL<T>::~TQGSP_QEL()
00113 {
00114 }
00115 
00116 template<class T> void TQGSP_QEL<T>::SetCuts()
00117 {
00118   if (this->verboseLevel >1){
00119     G4cout << "QGSP_QEL::SetCuts:";
00120   }  
00121   //  " G4VUserPhysicsList::SetCutsWithDefault" method sets 
00122   //   the default cut value for all particle types 
00123 
00124   this->SetCutsWithDefault();   
00125    
00126 //  if (this->verboseLevel > 0)
00127 //    G4VUserPhysicsList::DumpCutValuesTable();  
00128 }
00129 
00130 
00131 
00132 // 2002 by J.P. Wellisch

Generated on Mon May 27 17:50:33 2013 for Geant4 by  doxygen 1.4.7