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