HadronPhysicsLHEP_EMV.cc

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:   HadronPhysicsLHEP_EMV
00031 //
00032 // Author: 2002 J.P. Wellisch
00033 //
00034 // Modified:
00035 // 16.12.2005 G.Folger: create from HadronPhysicsLHEP_GN
00036 // 08.06.2006 V.Ivanchenko: remove stopping
00037 //
00038 //----------------------------------------------------------------------------
00039 
00040 #include "HadronPhysicsLHEP_EMV.hh"
00041 
00042 #include "globals.hh"
00043 #include "G4ios.hh"
00044 #include <iomanip>   
00045 
00046 // factory
00047 #include "G4PhysicsConstructorFactory.hh"
00048 //
00049 G4_DECLARE_PHYSCONSTR_FACTORY(HadronPhysicsLHEP_EMV);
00050 
00051 HadronPhysicsLHEP_EMV::HadronPhysicsLHEP_EMV(G4int) 
00052     :  G4VPhysicsConstructor("hInelastic LHEP_EMV")
00053     , theNeutrons(0)
00054     , theLHEPNeutron(0)
00055     , thePiK(0)
00056     , theLHEPPiK(0)
00057     , thePro(0)
00058     , theLHEPPro(0)
00059     , theMiscLHEP(0)
00060 {}
00061 
00062 HadronPhysicsLHEP_EMV::HadronPhysicsLHEP_EMV(const G4String& name)
00063     :  G4VPhysicsConstructor(name) 
00064     , theNeutrons(0)
00065     , theLHEPNeutron(0)
00066     , thePiK(0)
00067     , theLHEPPiK(0)
00068     , thePro(0)
00069     , theLHEPPro(0)
00070     , theMiscLHEP(0)
00071 {}
00072 
00073 void HadronPhysicsLHEP_EMV::CreateModels()
00074 {
00075   theNeutrons=new G4NeutronBuilder;
00076   theNeutrons->RegisterMe(theLHEPNeutron=new G4LHEPNeutronBuilder);
00077 
00078   thePro=new G4ProtonBuilder;
00079   thePro->RegisterMe(theLHEPPro=new G4LHEPProtonBuilder);
00080 
00081   thePiK=new G4PiKBuilder;
00082   thePiK->RegisterMe(theLHEPPiK=new G4LHEPPiKBuilder);
00083 }
00084 
00085 HadronPhysicsLHEP_EMV::~HadronPhysicsLHEP_EMV()
00086 {
00087    delete theLHEPNeutron;
00088    delete theNeutrons;
00089    delete theLHEPPro;
00090    delete thePro;
00091    delete theLHEPPiK;
00092    delete thePiK;
00093 }
00094 
00095 #include "G4ParticleDefinition.hh"
00096 #include "G4ParticleTable.hh"
00097 
00098 #include "G4MesonConstructor.hh"
00099 #include "G4BaryonConstructor.hh"
00100 #include "G4ShortLivedConstructor.hh"
00101 
00102 void HadronPhysicsLHEP_EMV::ConstructParticle()
00103 {
00104   G4MesonConstructor pMesonConstructor;
00105   pMesonConstructor.ConstructParticle();
00106 
00107   G4BaryonConstructor pBaryonConstructor;
00108   pBaryonConstructor.ConstructParticle();
00109 
00110   G4ShortLivedConstructor pShortLivedConstructor;
00111   pShortLivedConstructor.ConstructParticle();  
00112   
00113   theMiscLHEP=new G4MiscLHEPBuilder;
00114 }
00115 
00116 #include "G4ProcessManager.hh"
00117 void HadronPhysicsLHEP_EMV::ConstructProcess()
00118 {
00119   CreateModels();
00120   theNeutrons->Build();
00121   thePro->Build();
00122   thePiK->Build();
00123   theMiscLHEP->Build();
00124 }
00125 

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