CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_6/src/SimG4Core/PhysicsLists/src/CMSEmNoDeltaRay.cc

Go to the documentation of this file.
00001 #include "SimG4Core/PhysicsLists/interface/CMSEmNoDeltaRay.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 "G4hhIonisation.hh"
00019 
00020 #include "G4eBremsstrahlung.hh"
00021 #include "G4eplusAnnihilation.hh"
00022 
00023 #include "G4MuBremsstrahlung.hh"
00024 #include "G4MuPairProduction.hh"
00025 
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 CMSEmNoDeltaRay::CMSEmNoDeltaRay(const G4String& name, G4int ver, std::string reg):
00065   G4VPhysicsConstructor(name), verbose(ver), region(reg) {
00066   G4LossTableManager::Instance();
00067 }
00068 
00069 CMSEmNoDeltaRay::~CMSEmNoDeltaRay() {}
00070 
00071 void CMSEmNoDeltaRay::ConstructParticle() {
00072   // gamma
00073   G4Gamma::Gamma();
00074 
00075   // leptons
00076   G4Electron::Electron();
00077   G4Positron::Positron();
00078   G4MuonPlus::MuonPlus();
00079   G4MuonMinus::MuonMinus();
00080   G4TauMinus::TauMinusDefinition();
00081   G4TauPlus::TauPlusDefinition();
00082 
00083   // mesons
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   // barions
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   // ions
00110   G4Deuteron::Deuteron();
00111   G4Triton::Triton();
00112   G4He3::He3();
00113   G4Alpha::Alpha();
00114   G4GenericIon::GenericIonDefinition();
00115 }
00116 
00117 void CMSEmNoDeltaRay::ConstructProcess() {
00118   // Add standard EM Processes
00119   G4Region* reg = 0;
00120   if (region != " ") {
00121     G4RegionStore* regStore = G4RegionStore::GetInstance();
00122     reg = regStore->GetRegion(region, true);
00123   }
00124 
00125   theParticleIterator->reset();
00126   while( (*theParticleIterator)() ){
00127     G4ParticleDefinition* particle = theParticleIterator->value();
00128     G4ProcessManager* pmanager = particle->GetProcessManager();
00129     G4String particleName = particle->GetParticleName();
00130     if(verbose > 1)
00131       G4cout << "### " << GetPhysicsName() << " instantiates for " 
00132              << particleName << " at " << particle << G4endl;
00133 
00134     if (particleName == "gamma") {
00135 
00136       pmanager->AddDiscreteProcess(new G4PhotoElectricEffect);
00137       pmanager->AddDiscreteProcess(new G4ComptonScattering);
00138       pmanager->AddDiscreteProcess(new G4GammaConversion);
00139 
00140     } else if (particleName == "e-") {
00141 
00142       //      G4eIonisation* eioni = new G4eIonisation();
00143       //      eioni->SetStepFunction(0.8, 1.0*mm);
00144       G4eMultipleScattering* msc = new G4eMultipleScattering;
00145       msc->SetStepLimitType(fMinimal);
00146       if (reg != 0) {
00147         G4UrbanMscModel93* msc_el  = new G4UrbanMscModel93();
00148         msc_el->SetRangeFactor(0.04);
00149         msc->AddEmModel(0,msc_el,reg);
00150       }
00151       pmanager->AddProcess(msc,                   -1, 1, 1);
00152       pmanager->AddProcess(new G4hhIonisation,    -1, 2, 2);
00153       pmanager->AddProcess(new G4eBremsstrahlung, -1,-3, 3);
00154 
00155     } else if (particleName == "e+") {
00156 
00157       //      G4eIonisation* eioni = new G4eIonisation();
00158       //      eioni->SetStepFunction(0.8, 1.0*mm);
00159       G4eMultipleScattering* msc = new G4eMultipleScattering;
00160       msc->SetStepLimitType(fMinimal);
00161       if (reg != 0) {
00162         G4UrbanMscModel93* msc_pos  = new G4UrbanMscModel93();
00163         msc_pos->SetRangeFactor(0.04);
00164         msc->AddEmModel(0,msc_pos,reg);
00165       }
00166       pmanager->AddProcess(msc,                     -1, 1, 1);
00167       pmanager->AddProcess(new G4hhIonisation,      -1, 2, 2);
00168       pmanager->AddProcess(new G4eBremsstrahlung,   -1,-3, 3);
00169       pmanager->AddProcess(new G4eplusAnnihilation,  0,-1, 4);
00170 
00171     } else if (particleName == "mu+" ||
00172                particleName == "mu-"    ) {
00173 
00174       pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
00175       pmanager->AddProcess(new G4hhIonisation,        -1, 2, 2);
00176       pmanager->AddProcess(new G4MuBremsstrahlung,    -1,-3, 3);
00177       pmanager->AddProcess(new G4MuPairProduction,    -1,-4, 4);
00178 
00179     } else if (particleName == "alpha" ||
00180                particleName == "He3" ||
00181                particleName == "GenericIon") {
00182 
00183       pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
00184       pmanager->AddProcess(new G4hhIonisation,        -1, 2, 2);
00185 
00186     } else if (particleName == "pi+" ||
00187                particleName == "kaon+" ||
00188                particleName == "kaon-" ||
00189                particleName == "proton" ||
00190                particleName == "pi-" ) {
00191 
00192       pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
00193       pmanager->AddProcess(new G4hhIonisation,        -1, 2, 2);
00194       pmanager->AddProcess(new G4hBremsstrahlung(),   -1,-3, 3);
00195       pmanager->AddProcess(new G4hPairProduction(),   -1,-4, 4);
00196 
00197     } else if (particleName == "B+" ||
00198                particleName == "B-" ||
00199                particleName == "D+" ||
00200                particleName == "D-" ||
00201                particleName == "Ds+" ||
00202                particleName == "Ds-" ||
00203                particleName == "anti_lambda_c+" ||
00204                particleName == "anti_omega-" ||
00205                particleName == "anti_proton" ||
00206                particleName == "anti_sigma_c+" ||
00207                particleName == "anti_sigma_c++" ||
00208                particleName == "anti_sigma+" ||
00209                particleName == "anti_sigma-" ||
00210                particleName == "anti_xi_c+" ||
00211                particleName == "anti_xi-" ||
00212                particleName == "deuteron" ||
00213                particleName == "lambda_c+" ||
00214                particleName == "omega-" ||
00215                particleName == "sigma_c+" ||
00216                particleName == "sigma_c++" ||
00217                particleName == "sigma+" ||
00218                particleName == "sigma-" ||
00219                particleName == "tau+" ||
00220                particleName == "tau-" ||
00221                particleName == "triton" ||
00222                particleName == "xi_c+" ||
00223                particleName == "xi-" ) {
00224 
00225       pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
00226       pmanager->AddProcess(new G4hhIonisation,        -1, 2, 2);
00227     }
00228   }
00229 
00230   // Setup options
00231   //
00232   G4EmProcessOptions opt;
00233   opt.SetVerbose(verbose);
00234   // ApplyCuts
00235   //
00236   opt.SetApplyCuts(true);
00237 
00238   // Physics tables
00239   //
00240   opt.SetMinEnergy(100.*eV);
00241   opt.SetMaxEnergy(10.*TeV);
00242   opt.SetDEDXBinning(77);
00243   opt.SetLambdaBinning(77);
00244 
00245 }