Introduction to Geant4
Lectures by Andrea dell'Acqua (CERN)

From the Ann Arbor Workshop on Geant4
26 February to 2 March, 2001.

Exercise N03A


This is the first of two exercises that are found in Lecture 9, Particles and Physics Processes.  Exercise 3A begins on slide number 19.
 
 

Steps ExN03A

  1. ConstructProcess for a geantino
  1. ConstructProcess for gammas
  2. Void MyPhysicsList::ConstructProcess()
    {
        AddTransportation();
        ConstructEM();
    }
    void MyPhysicsList::ConstructEM()
    {
        G4ParticleDefinition* particle = G4Gamma::GammaDefinition();
        G4ProcessManager *pmanager = particle->GetProcessManager();
        G4PhotoElectricEffect *thePhotoElectricEffect = new G4PhotoElectricEffect;
        G4ComptonScattering *theComptonScattering = new G4ComptonScattering;
        G4GammaConversion *theGammaConversion = new G4GammaConversion;
        pmanager->AddDiscreteProcess(thePhotoElectricEffect);
        pmanager->AddDiscreteProcess(theComptonScattering);
        pmanager->AddDiscreteProcess(theGammaConversion);
    }
The aim of the exercise is to add particles and physics processes and to define cuts for these particles in the physics list.
  1. Go into FramePhysicsList and add geantino, electron, positron, mu+ and mu- into ConstructParticle().
  2. Go into ConstructProcess() and add processes for the particles you just defined.
  3. Add cuts for these particles in SetCuts().
  4. Use ExampleN02 for reference (don't copy&paste into the blue. Try and understand what is happening.)
  5. To find a particle into the particle table, use either the particle iterator or the FindParticle() method.
  6. Shoot an electron (we are using the same geometry as in the Frame example).  See if a shower develops in the calorimeter.

Definitions

Helpful Links

Checklist

Back to the Geant4 Lectures


For information: wlap@umich.edu
http://www.umich.edu/~wlap Last modified: syscmd(date)