00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
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
00060 #include "G4IonConstructor.hh"
00061 #include "G4BuilderType.hh"
00062
00063
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
00131
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
00157
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
00181 G4IonConstructor pConstructor;
00182 pConstructor.ConstructParticle();
00183 }