Ignore:
Timestamp:
Nov 5, 2010, 4:08:39 PM (14 years ago)
Author:
garnier
Message:

update ti head

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/extended/electromagnetic/TestEm8/src/PhysicsList.cc

    r1337 r1342  
    2424// ********************************************************************
    2525//
    26 //
    27 // $Id: PhysicsList.cc,v 1.19 2010/06/04 17:08:15 vnivanch Exp $
    28 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     26// $Id: PhysicsList.cc,v 1.21 2010/10/27 14:52:07 vnivanch Exp $
     27// GEANT4 tag $Name: examples-V09-03-09 $
     28//
     29//---------------------------------------------------------------------------
     30//
     31// ClassName:   PhysicsList
     32//
     33// Description: EM physics with a possibility to add PAI model
     34//
     35// Author:      V.Ivanchenko 01.09.2010
     36//
     37//----------------------------------------------------------------------------
    2938//
    3039
     
    3948#include "G4EmStandardPhysics_option2.hh"
    4049#include "G4EmStandardPhysics_option3.hh"
     50#include "G4EmLivermorePhysics.hh"
     51#include "G4EmPenelopePhysics.hh"
    4152#include "G4DecayPhysics.hh"
    4253
     
    4758#include "G4Electron.hh"
    4859#include "G4Positron.hh"
     60#include "G4Proton.hh"
    4961
    5062#include "G4UnitsTable.hh"
     
    6779  cutForElectron  = defaultCutValue;
    6880  cutForPositron  = defaultCutValue;
    69 
    70   stepMaxProcess  = 0;
     81  cutForProton    = defaultCutValue;
    7182
    7283  pMessenger = new PhysicsListMessenger(this);
     84
     85  stepMaxProcess = new StepMax();
    7386
    7487  // Decay Physics is always defined
     
    140153    emPhysicsList = new G4EmStandardPhysics_option3();
    141154
     155  } else if (name == "emlivermore") {
     156
     157    emName = name;
     158    delete emPhysicsList;
     159    emPhysicsList = new G4EmLivermorePhysics();
     160
     161  } else if (name == "empenelope") {
     162
     163    emName = name;
     164    delete emPhysicsList;
     165    emPhysicsList = new G4EmPenelopePhysics();
     166
    142167  } else if (name == "pai") {
    143168
     
    163188{
    164189  // Step limitation seen as a process
    165   stepMaxProcess = new StepMax();
    166190
    167191  theParticleIterator->reset();
     
    195219  SetCutValue(cutForElectron, "e-");
    196220  SetCutValue(cutForPositron, "e+");
     221  SetCutValue(cutForProton, "proton");
    197222
    198223  if ( verboseLevel > 0 ) { DumpCutValuesTable(); }
     
    221246  cutForPositron = cut;
    222247  SetParticleCuts(cutForPositron, G4Positron::Positron());
     248}
     249
     250//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
     251
     252void PhysicsList::SetCutForProton(G4double cut)
     253{
     254  cutForPositron = cut;
     255  SetParticleCuts(cutForProton, G4Proton::Proton());
    223256}
    224257
Note: See TracChangeset for help on using the changeset viewer.