CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch12/src/SimG4Core/PhysicsLists/src/CMSEmStandardPhysics92.cc

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