G4IonBinaryCascadePhysics.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:   G4IonBinaryCascadePhysics
00031 //
00032 // Author:      V.Ivanchenko 09.11.2005
00033 //
00034 // Modified:
00035 // 23.06.06 V.Ivanchenko set emaxLHEP=1 TeV
00036 // 24.06.06 V.Ivanchenko fix typo
00037 //
00038 //----------------------------------------------------------------------------
00039 //
00040 
00041 #include "G4IonBinaryCascadePhysics.hh"
00042 
00043 #include "G4SystemOfUnits.hh"
00044 #include "G4DeuteronInelasticProcess.hh"
00045 #include "G4TritonInelasticProcess.hh"
00046 #include "G4AlphaInelasticProcess.hh"
00047 #include "G4HadronInelasticProcess.hh"
00048 
00049 #include "G4BinaryLightIonReaction.hh"
00050 #include "G4TripathiCrossSection.hh"
00051 #include "G4TripathiLightCrossSection.hh"
00052 #include "G4IonsShenCrossSection.hh"
00053 #include "G4IonProtonCrossSection.hh"
00054 
00055 #include "G4ParticleDefinition.hh"
00056 #include "G4ParticleTable.hh"
00057 #include "G4ProcessManager.hh"
00058 
00059 // Nuclei
00060 #include "G4IonConstructor.hh"
00061 #include "G4BuilderType.hh"
00062 
00063 // factory
00064 #include "G4PhysicsConstructorFactory.hh"
00065 //
00066 G4_DECLARE_PHYSCONSTR_FACTORY(G4IonBinaryCascadePhysics);
00067 
00068 
00069 G4IonBinaryCascadePhysics::G4IonBinaryCascadePhysics(G4int ver)
00070   :  G4VPhysicsConstructor("IonBinaryCascade"), verbose(ver), wasActivated(false)
00071 {
00072   fLEDModel = 0;
00073   fLETModel = 0;
00074   fLEAModel = 0;
00075   fTripathi = 0; 
00076   fTripathiLight = 0;
00077   fShen = 0;
00078   fIonH = 0;
00079   emax     = 20.*GeV;
00080   emaxLHEP = 1.*TeV;
00081   eminBIC  = 0.*MeV;
00082   SetPhysicsType(bIons);
00083   if(verbose > 1) G4cout << "### G4IonBinaryCascadePhysics" << G4endl;
00084 }
00085 
00086 G4IonBinaryCascadePhysics::G4IonBinaryCascadePhysics(const G4String& name, 
00087                                                      G4int ver)
00088   :  G4VPhysicsConstructor(name), verbose(ver), wasActivated(false)
00089 {
00090   fLEDModel = 0;
00091   fLETModel = 0;
00092   fLEAModel = 0;
00093   fTripathi = 0; 
00094   fTripathiLight = 0;
00095   fShen = 0;
00096   fIonH = 0;
00097   emax     = 20.*GeV;
00098   emaxLHEP = 1.*TeV;
00099   eminBIC  = 0.*MeV;
00100   SetPhysicsType(bIons);
00101   if(verbose > 1) G4cout << "### G4IonBinaryCascadePhysics" << G4endl;
00102 }
00103 
00104 G4IonBinaryCascadePhysics::~G4IonBinaryCascadePhysics()
00105 {
00106   if(wasActivated) {
00107     delete fTripathi;
00108     delete fTripathiLight;
00109     delete fShen;
00110     delete fIonH;
00111     delete fLEDModel;
00112     delete fLETModel;
00113     delete fLEAModel;
00114     G4int i;
00115     G4int n = p_list.size();
00116     for(i=0; i<n; i++) {delete p_list[i];}
00117     n = model_list.size();
00118     for(i=0; i<n; i++) {delete model_list[i];}
00119   }
00120 }
00121 
00122 void G4IonBinaryCascadePhysics::ConstructProcess()
00123 {
00124   if(wasActivated) { return; }
00125   wasActivated = true;
00126 
00127   G4BinaryLightIonReaction* fBC= new G4BinaryLightIonReaction();
00128   model_list.push_back(fBC);
00129   fShen = new G4IonsShenCrossSection;
00130   //fTripathi = new G4TripathiCrossSection;
00131   //fTripathiLight = new G4TripathiLightCrossSection;
00132   fIonH = new G4IonProtonCrossSection;
00133 
00134   fLEDModel = new G4LEDeuteronInelastic();
00135   fLETModel = new G4LETritonInelastic();
00136   fLEAModel = new G4LEAlphaInelastic();
00137 
00138   AddProcess("dInelastic", G4Deuteron::Deuteron(), fBC, fLEDModel);
00139   AddProcess("tInelastic",G4Triton::Triton(),  fBC, fLETModel);
00140   AddProcess("He3Inelastic",G4He3::He3(),  fBC, 0);
00141   AddProcess("alphaInelastic", G4Alpha::Alpha(),  fBC, fLEAModel);
00142   AddProcess("ionInelastic",G4GenericIon::GenericIon(),  fBC, 0);
00143 
00144 }
00145 
00146 void G4IonBinaryCascadePhysics::AddProcess(const G4String& name,
00147                                            G4ParticleDefinition* p, 
00148                                            G4HadronicInteraction* hmodel,
00149                                            G4HadronicInteraction* lmodel)
00150 {
00151   G4HadronInelasticProcess* hadi = new G4HadronInelasticProcess(name, p);
00152   p_list.push_back(hadi);
00153   G4ProcessManager* pManager = p->GetProcessManager();
00154   pManager->AddDiscreteProcess(hadi);
00155   hadi->AddDataSet(fShen);
00156   //hadi->AddDataSet(fTripathi);
00157   //hadi->AddDataSet(fTripathiLight);
00158   if(p == G4GenericIon::GenericIon()) { hadi->AddDataSet(fIonH); }
00159   hmodel->SetMinEnergy(eminBIC);
00160   hmodel->SetMaxEnergy(emax);
00161   hadi->RegisterMe(hmodel);
00162   if(lmodel) {
00163     lmodel->SetMinEnergy(emax - MeV);
00164     lmodel->SetMaxEnergy(emaxLHEP);
00165     hadi->RegisterMe(lmodel);
00166   }  
00167   if(verbose > 1) {
00168     G4cout << "Register " << hadi->GetProcessName()
00169            << " for " << p->GetParticleName()
00170            << " Binary Cascade for E(MeV)= " << eminBIC << " - " << emax;
00171     if(lmodel) {
00172       G4cout  << " LHEP for E(MeV)= " << emax-MeV << " - " << emaxLHEP;
00173     }
00174     G4cout << G4endl;
00175   }
00176 }
00177 
00178 void G4IonBinaryCascadePhysics::ConstructParticle()
00179 {
00180   //  Construct light ions
00181   G4IonConstructor pConstructor;
00182   pConstructor.ConstructParticle();  
00183 }

Generated on Mon May 27 17:48:39 2013 for Geant4 by  doxygen 1.4.7