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: G4HadronElasticPhysics 00031 // 00032 // Author: 23 November 2006 V. Ivanchenko 00033 // 00034 // Modified: 00035 // 29.07.2010 V.Ivanchenko rename this class from G4HadronHElasticPhysics to 00036 // G4HadronElasticPhysics, old version of the class 00037 // is renamed to G4HadronElasticPhysics93 00038 // 03.06.2011 V.Ivanchenko change design - added access to pointers of the 00039 // neutron process and model 00040 // 00041 //---------------------------------------------------------------------------- 00042 // 00043 00044 #ifndef G4HadronElasticPhysics_h 00045 #define G4HadronElasticPhysics_h 1 00046 00047 #include "globals.hh" 00048 #include "G4VPhysicsConstructor.hh" 00049 #include "G4HadronElastic.hh" 00050 #include "G4HadronicProcess.hh" 00051 00052 class G4HadronElasticPhysics : public G4VPhysicsConstructor 00053 { 00054 public: 00055 00056 G4HadronElasticPhysics(G4int ver = 0); 00057 00058 // obsolete 00059 G4HadronElasticPhysics(const G4String& name , 00060 G4int ver = 0, G4bool hp = false, 00061 const G4String& type=""); 00062 00063 virtual ~G4HadronElasticPhysics(); 00064 00065 // This method will be invoked in the Construct() method. 00066 // each particle type will be instantiated 00067 virtual void ConstructParticle(); 00068 00069 // This method will be invoked in the Construct() method. 00070 // each physics process will be instantiated and 00071 // registered to the process manager of each particle type 00072 virtual void ConstructProcess(); 00073 00074 inline G4HadronElastic* GetNeutronModel(); 00075 00076 inline G4HadronicProcess* GetNeutronProcess(); 00077 00078 private: 00079 00080 // copy constructor and hide assignment operator 00081 G4HadronElasticPhysics(G4HadronElasticPhysics &); 00082 G4HadronElasticPhysics & operator=(const G4HadronElasticPhysics &right); 00083 00084 G4int verbose; 00085 G4bool wasActivated; 00086 00087 G4HadronElastic* neutronModel; 00088 G4HadronicProcess* neutronProcess; 00089 00090 }; 00091 00092 inline G4HadronElastic* G4HadronElasticPhysics::GetNeutronModel() 00093 { 00094 return neutronModel; 00095 } 00096 00097 inline G4HadronicProcess* G4HadronElasticPhysics::GetNeutronProcess() 00098 { 00099 return neutronProcess; 00100 } 00101 00102 #endif 00103 00104 00105 00106 00107 00108 00109 00110