00001 #include "SimG4Core/PhysicsLists/interface/CMSEmStandardPhysics71.h"
00002
00003 #include "G4ParticleDefinition.hh"
00004 #include "G4ProcessManager.hh"
00005 #include "G4LossTableManager.hh"
00006 #include "G4EmProcessOptions.hh"
00007
00008 #include "G4ComptonScattering.hh"
00009 #include "G4GammaConversion.hh"
00010 #include "G4PhotoElectricEffect.hh"
00011
00012 #include "G4hMultipleScattering.hh"
00013 #include "G4eMultipleScattering.hh"
00014 #include "G4MscStepLimitType.hh"
00015
00016 #include "G4eIonisation.hh"
00017 #include "G4eBremsstrahlung.hh"
00018 #include "G4eplusAnnihilation.hh"
00019
00020 #include "G4MuIonisation.hh"
00021 #include "G4MuBremsstrahlung.hh"
00022 #include "G4MuPairProduction.hh"
00023
00024 #include "G4hIonisation.hh"
00025 #include "G4ionIonisation.hh"
00026 #include "G4hBremsstrahlung.hh"
00027 #include "G4hPairProduction.hh"
00028
00029 #include "G4Gamma.hh"
00030 #include "G4Electron.hh"
00031 #include "G4Positron.hh"
00032 #include "G4MuonPlus.hh"
00033 #include "G4MuonMinus.hh"
00034 #include "G4TauMinus.hh"
00035 #include "G4TauPlus.hh"
00036 #include "G4PionPlus.hh"
00037 #include "G4PionMinus.hh"
00038 #include "G4KaonPlus.hh"
00039 #include "G4KaonMinus.hh"
00040 #include "G4BMesonMinus.hh"
00041 #include "G4BMesonPlus.hh"
00042 #include "G4DMesonMinus.hh"
00043 #include "G4DMesonPlus.hh"
00044 #include "G4Proton.hh"
00045 #include "G4AntiProton.hh"
00046 #include "G4SigmaMinus.hh"
00047 #include "G4AntiSigmaMinus.hh"
00048 #include "G4SigmaPlus.hh"
00049 #include "G4AntiSigmaPlus.hh"
00050 #include "G4XiMinus.hh"
00051 #include "G4AntiXiMinus.hh"
00052 #include "G4OmegaMinus.hh"
00053 #include "G4AntiOmegaMinus.hh"
00054 #include "G4LambdacPlus.hh"
00055 #include "G4AntiLambdacPlus.hh"
00056 #include "G4XicPlus.hh"
00057 #include "G4AntiXicPlus.hh"
00058 #include "G4Deuteron.hh"
00059 #include "G4Triton.hh"
00060 #include "G4He3.hh"
00061 #include "G4Alpha.hh"
00062 #include "G4GenericIon.hh"
00063
00064 CMSEmStandardPhysics71::CMSEmStandardPhysics71(const G4String& name, G4int ver) :
00065 G4VPhysicsConstructor(name), verbose(ver) {
00066 G4LossTableManager::Instance();
00067 }
00068
00069 CMSEmStandardPhysics71::~CMSEmStandardPhysics71() {}
00070
00071 void CMSEmStandardPhysics71::ConstructParticle() {
00072
00073 G4Gamma::Gamma();
00074
00075
00076 G4Electron::Electron();
00077 G4Positron::Positron();
00078 G4MuonPlus::MuonPlus();
00079 G4MuonMinus::MuonMinus();
00080 G4TauMinus::TauMinusDefinition();
00081 G4TauPlus::TauPlusDefinition();
00082
00083
00084 G4PionPlus::PionPlusDefinition();
00085 G4PionMinus::PionMinusDefinition();
00086 G4KaonPlus::KaonPlusDefinition();
00087 G4KaonMinus::KaonMinusDefinition();
00088 G4DMesonMinus::DMesonMinusDefinition();
00089 G4DMesonPlus::DMesonPlusDefinition();
00090 G4BMesonMinus::BMesonMinusDefinition();
00091 G4BMesonPlus::BMesonPlusDefinition();
00092
00093
00094 G4Proton::Proton();
00095 G4AntiProton::AntiProton();
00096 G4SigmaMinus::SigmaMinusDefinition();
00097 G4AntiSigmaMinus::AntiSigmaMinusDefinition();
00098 G4SigmaPlus::SigmaPlusDefinition();
00099 G4AntiSigmaPlus::AntiSigmaPlusDefinition();
00100 G4XiMinus::XiMinusDefinition();
00101 G4AntiXiMinus::AntiXiMinusDefinition();
00102 G4OmegaMinus::OmegaMinusDefinition();
00103 G4AntiOmegaMinus::AntiOmegaMinusDefinition();
00104 G4LambdacPlus::LambdacPlusDefinition();
00105 G4AntiLambdacPlus::AntiLambdacPlusDefinition();
00106 G4XicPlus::XicPlusDefinition();
00107 G4AntiXicPlus::AntiXicPlusDefinition();
00108
00109
00110 G4Deuteron::Deuteron();
00111 G4Triton::Triton();
00112 G4He3::He3();
00113 G4Alpha::Alpha();
00114 G4GenericIon::GenericIonDefinition();
00115 }
00116
00117 void CMSEmStandardPhysics71::ConstructProcess() {
00118
00119
00120 theParticleIterator->reset();
00121 while( (*theParticleIterator)() ){
00122 G4ParticleDefinition* particle = theParticleIterator->value();
00123 G4ProcessManager* pmanager = particle->GetProcessManager();
00124 G4String particleName = particle->GetParticleName();
00125 if(verbose > 1)
00126 G4cout << "### " << GetPhysicsName() << " instantiates for "
00127 << particleName << G4endl;
00128
00129 if (particleName == "gamma") {
00130
00131 pmanager->AddDiscreteProcess(new G4PhotoElectricEffect);
00132 pmanager->AddDiscreteProcess(new G4ComptonScattering);
00133 pmanager->AddDiscreteProcess(new G4GammaConversion);
00134
00135 } else if (particleName == "e-") {
00136
00137 G4eIonisation* eioni = new G4eIonisation();
00138 eioni->SetStepFunction(0.8, 1.0*mm);
00139 G4eMultipleScattering* msc = new G4eMultipleScattering;
00140 msc->SetStepLimitType(fMinimal);
00141 pmanager->AddProcess(msc, -1, 1, 1);
00142 pmanager->AddProcess(eioni, -1, 2, 2);
00143 pmanager->AddProcess(new G4eBremsstrahlung, -1,-3, 3);
00144
00145 } else if (particleName == "e+") {
00146
00147 G4eIonisation* eioni = new G4eIonisation();
00148 eioni->SetStepFunction(0.8, 1.0*mm);
00149 G4eMultipleScattering* msc = new G4eMultipleScattering;
00150 msc->SetStepLimitType(fMinimal);
00151 pmanager->AddProcess(msc, -1, 1, 1);
00152 pmanager->AddProcess(eioni, -1, 2, 2);
00153 pmanager->AddProcess(new G4eBremsstrahlung, -1,-3, 3);
00154 pmanager->AddProcess(new G4eplusAnnihilation, 0,-1, 4);
00155
00156 } else if (particleName == "mu+" ||
00157 particleName == "mu-" ) {
00158
00159 pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
00160 pmanager->AddProcess(new G4MuIonisation, -1, 2, 2);
00161 pmanager->AddProcess(new G4MuBremsstrahlung, -1,-3, 3);
00162 pmanager->AddProcess(new G4MuPairProduction, -1,-4, 4);
00163
00164 } else if (particleName == "alpha" ||
00165 particleName == "He3" ||
00166 particleName == "GenericIon") {
00167
00168 pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
00169 pmanager->AddProcess(new G4ionIonisation, -1, 2, 2);
00170
00171 } else if (particleName == "B+" ||
00172 particleName == "B-" ||
00173 particleName == "D+" ||
00174 particleName == "D-" ||
00175 particleName == "Ds+" ||
00176 particleName == "Ds-" ||
00177 particleName == "anti_lambda_c+" ||
00178 particleName == "anti_omega-" ||
00179 particleName == "anti_proton" ||
00180 particleName == "anti_sigma_c+" ||
00181 particleName == "anti_sigma_c++" ||
00182 particleName == "anti_sigma+" ||
00183 particleName == "anti_sigma-" ||
00184 particleName == "anti_xi_c+" ||
00185 particleName == "anti_xi-" ||
00186 particleName == "deuteron" ||
00187 particleName == "kaon+" ||
00188 particleName == "kaon-" ||
00189 particleName == "lambda_c+" ||
00190 particleName == "omega-" ||
00191 particleName == "pi+" ||
00192 particleName == "pi-" ||
00193 particleName == "proton" ||
00194 particleName == "sigma_c+" ||
00195 particleName == "sigma_c++" ||
00196 particleName == "sigma+" ||
00197 particleName == "sigma-" ||
00198 particleName == "tau+" ||
00199 particleName == "tau-" ||
00200 particleName == "triton" ||
00201 particleName == "xi_c+" ||
00202 particleName == "xi-" ) {
00203
00204 pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
00205 pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
00206
00207 if (particleName == "pi+" ||
00208 particleName == "kaon+" ||
00209 particleName == "kaon-" ||
00210 particleName == "proton" ||
00211 particleName == "pi-" ) {
00212 pmanager->AddProcess(new G4hBremsstrahlung(), -1,-3, 3);
00213 pmanager->AddProcess(new G4hPairProduction(), -1,-4, 4);
00214 }
00215
00216 }
00217 }
00218
00219 G4EmProcessOptions opt;
00220 opt.SetVerbose(verbose);
00221 }