CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_0/src/SimG4Core/PhysicsLists/src/CMSEmStandardPhysicsLPM.cc

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