Ignore:
Timestamp:
Jun 18, 2010, 11:42:07 AM (14 years ago)
Author:
garnier
Message:

update geant4-09-04-beta-cand-01 interfaces-V09-03-09 vis-V09-03-08

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/electromagnetic/muons/src/G4MuIonisation.cc

    r1228 r1315  
    2424// ********************************************************************
    2525//
    26 // $Id: G4MuIonisation.cc,v 1.59 2009/02/26 11:04:20 vnivanch Exp $
    27 // GEANT4 tag $Name: geant4-09-03 $
     26// $Id: G4MuIonisation.cc,v 1.61 2010/06/04 09:30:40 vnivanch Exp $
     27// GEANT4 tag $Name: geant4-09-04-beta-cand-01 $
    2828//
    2929// -------------------------------------------------------------------
     
    8989#include "G4BohrFluctuations.hh"
    9090#include "G4UnitsTable.hh"
     91#include "G4ICRU73QOModel.hh"
    9192
    9293//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
     
    140141
    141142    mass = theParticle->GetPDGMass();
     143    G4double q = theParticle->GetPDGCharge();
     144    G4double elow = 0.2*MeV;
    142145    SetSecondaryParticle(G4Electron::Electron());
    143146
    144147    // Bragg peak model
    145     if (!EmModel(1)) SetEmModel(new G4BraggModel(),1);
     148    if (!EmModel(1)) {
     149      if(q > 0.0) { SetEmModel(new G4BraggModel(),1); }
     150      else {
     151        SetEmModel(new G4ICRU73QOModel(),1);
     152        //elow = 1.0*MeV;
     153      }
     154    }
    146155    EmModel(1)->SetLowEnergyLimit(MinKinEnergy());
    147     EmModel(1)->SetHighEnergyLimit(0.2*MeV);
     156    EmModel(1)->SetHighEnergyLimit(elow);
    148157    AddEmModel(1, EmModel(1), new G4IonFluctuations());
    149158
    150159    // high energy fluctuation model
    151     if (!FluctModel()) SetFluctModel(new G4UniversalFluctuation());
     160    if (!FluctModel()) { SetFluctModel(new G4UniversalFluctuation()); }
    152161
    153162    // moderate energy model
    154     if (!EmModel(2)) SetEmModel(new G4BetheBlochModel(),2);
    155     EmModel(2)->SetLowEnergyLimit(0.2*MeV);
     163    if (!EmModel(2)) { SetEmModel(new G4BetheBlochModel(),2); }
     164    EmModel(2)->SetLowEnergyLimit(elow);
    156165    EmModel(2)->SetHighEnergyLimit(1.0*GeV);
    157166    AddEmModel(2, EmModel(2), FluctModel());
    158167
    159168    // high energy model
    160     if (!EmModel(3)) SetEmModel(new G4MuBetheBlochModel(),3);
     169    if (!EmModel(3)) { SetEmModel(new G4MuBetheBlochModel(),3); }
    161170    EmModel(3)->SetLowEnergyLimit(1.0*GeV);
    162171    EmModel(3)->SetHighEnergyLimit(MaxKinEnergy());
Note: See TracChangeset for help on using the changeset viewer.