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

None add ionization process, a simple way 

Keywords: add process
Forum: Hadronic Processes
Date: 22 Oct, 2007
From: JinGe <>

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;

ExN01PhysicsList::~ExN01PhysicsList() {;}

void ExN01PhysicsList::ConstructParticle()

#include "G4hIonisation.hh"

void ExN01PhysicsList::ConstructProcess()
  // Define transportation process

void ExN01PhysicsList::SetCuts() {

 if (verboseLevel>0) DumpCutValuesTable();

Thanks in advance!

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

1 None: Re: add ionization process, a simple way   (Vladimir IVANTCHENKO - 26 Oct, 2007)
 Add Message Add Message
to: "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 ]