Ignore:
Timestamp:
Nov 5, 2010, 3:45:55 PM (14 years ago)
Author:
garnier
Message:

update ti head

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/electromagnetic/standard/src/G4alphaIonisation.cc

    r1337 r1340  
    2424// ********************************************************************
    2525//
    26 // $Id: G4alphaIonisation.cc,v 1.1 2009/11/10 11:50:30 vnivanch Exp $
    27 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     26// $Id: G4alphaIonisation.cc,v 1.3 2010/10/26 10:06:12 vnivanch Exp $
     27// GEANT4 tag $Name: emstand-V09-03-24 $
    2828//
    2929// -------------------------------------------------------------------
     
    6464  : G4VEnergyLossProcess(name),
    6565    theParticle(0),
    66     isInitialised(false),
    67     nuclearStopping(true)
     66    isInitialised(false)
    6867{
    6968  //  SetLinearLossLimit(0.15);
     
    7473  mass = 0.0;
    7574  ratio = 0.0;
     75  eth = 8*MeV;
    7676}
    7777
     
    8585G4bool G4alphaIonisation::IsApplicable(const G4ParticleDefinition& p)
    8686{
    87   return (p.GetPDGCharge() == 2*eplus);
     87  return (!p.IsShortLived() &&
     88          std::fabs(p.GetPDGCharge() - 2*CLHEP::eplus) < 0.01);
    8889}
    8990
     
    122123    SetSecondaryParticle(G4Electron::Electron());
    123124
    124     if (!EmModel(1)) SetEmModel(new G4BraggIonModel(), 1);
     125    if (!EmModel(1)) { SetEmModel(new G4BraggIonModel(), 1); }
    125126    EmModel(1)->SetLowEnergyLimit(MinKinEnergy());
    126127
     
    129130    EmModel(1)->SetHighEnergyLimit(eth);
    130131
    131     if (!FluctModel()) SetFluctModel(new G4UniversalFluctuation());
     132    if (!FluctModel()) { SetFluctModel(new G4UniversalFluctuation()); }
    132133    AddEmModel(1, EmModel(1), new G4IonFluctuations());
    133134
    134     if (!EmModel(2)) SetEmModel(new G4BetheBlochModel(),2); 
     135    if (!EmModel(2)) { SetEmModel(new G4BetheBlochModel(),2); } 
    135136    EmModel(2)->SetLowEnergyLimit(eth);
    136137    EmModel(2)->SetHighEnergyLimit(MaxKinEnergy());
     
    139140    isInitialised = true;
    140141  }
    141   // reinitialisation of corrections for the new run
    142   EmModel(1)->ActivateNuclearStopping(nuclearStopping);
    143   EmModel(2)->ActivateNuclearStopping(nuclearStopping);
    144142}
    145143
     
    147145
    148146void G4alphaIonisation::PrintInfo()
    149 {
    150   if (G4Alpha::Alpha() == theParticle) {
    151     if(EmModel(1) && EmModel(2)) {
    152       G4cout << "      NuclearStopping= " << nuclearStopping
    153              << G4endl;
    154     }
    155   }
    156 }
     147{}
    157148
    158149//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
Note: See TracChangeset for help on using the changeset viewer.