Message: Re: charge of ions isn't changed Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Idea Re: charge of ions isn't changed 

Forum: Particles
Re: Question charge of ions isn't changed (Aleksei)
Date: 02 Nov, 2018
From: Aleksei <Aleksei>

Hello friends! I suppose the problem was solved. All what you need it is to add this code (below) in your own physics list. This code was taken from example TestEM7. And also this topic (http://hypernews.slac.stanford.edu/HyperNews/geant4/get/emprocess/1215.html) helped me! Maybe it will be useful for someone! Good luck!

G4EmConfigurator* em_config = 
    G4LossTableManager::Instance()->EmConfigurator();
  auto particleIterator=GetParticleIterator();
  particleIterator->reset();
  while ((*particleIterator)())
  {
    G4ParticleDefinition* particle = particleIterator->value();
    G4String partname = particle->GetParticleName();
    if(partname == "alpha" || partname == "He3" || partname == "GenericIon") {
      G4BraggIonGasModel* mod1 = new G4BraggIonGasModel();
      G4BetheBlochIonGasModel* mod2 = new G4BetheBlochIonGasModel();
      G4double eth = 2.*MeV*particle->GetPDGMass()/proton_mass_c2;
      em_config->SetExtraEmModel(partname,"ionIoni",mod1,"",0.0,eth,
                                 new G4IonFluctuations());
      em_config->SetExtraEmModel(partname,"ionIoni",mod2,"",eth,100*TeV,
                                 new G4UniversalFluctuation());

    }
  }

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Question: Re: charge of ions isn't changed   (Vladimir Ivanchenko - 02 Nov, 2018)
(_ None: Re: charge of ions isn't changed   (Aleksei - 02 Nov, 2018)
 Add Message Add Message
to: "Re: charge of ions isn't changed"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]