Message: Re: add ionization process, a simple way Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: add ionization process, a simple way 

Forum: Hadronic Processes
Re: None add ionization process, a simple way (JinGe)
Date: 26 Oct, 2007
From: Vladimir IVANTCHENKO <vnivanch@mail.cern.ch>

On Mon, 22 Oct 2007, JinGe wrote:

> *** Discussion title: Hadronic Processes
> Email replies to PublicHyperNews@slac.stanford.edu must include:
>   In-Reply-To: <"/hadronprocess/797"@geant4-hn.slac.stanford.edu>
>   Subject: ...change this to be about your reply.
> 
> I want to find a way for a beginner to add process. I am thinking of
> using: AddProcess(new G4hIonisation, -1, 2,2); How can I plug it into my
> code? I guess preferrably put it in the function: ConstructProcess().
> 
> My code is:
> 
> #include "ExN01PhysicsList.hh"
> #include "G4ParticleTypes.hh"
> #include "G4ProcessManager.hh"
> 
> class G4ProcessManager;
> 
> ExN01PhysicsList::ExN01PhysicsList():  G4VUserPhysicsList()
> {
>   defaultCutValue = 1.0*cm;
>    SetVerboseLevel(1);
> }
> 
> ExN01PhysicsList::~ExN01PhysicsList() {;}
> 
> void ExN01PhysicsList::ConstructParticle()
> {
>   G4Proton::ProtonDefinition();
> }
> 
> #include "G4hIonisation.hh"
> 
> void ExN01PhysicsList::ConstructProcess()
> {
>   // Define transportation process
>   AddTransportation();
> }
> 
> void ExN01PhysicsList::SetCuts() {
> 
>   SetCutsWithDefault();  
>  if (verboseLevel>0) DumpCutValuesTable();
> }
> 
> Thanks in advance!
> 

Please, visit examples/extended/electromagnetic 

there are variants of Physics Lists.

VI

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

 Add Message Add Message
to: "Re: add ionization process, a simple way"

 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 ]