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/G4ionIonisation.cc

    r1337 r1340  
    2424// ********************************************************************
    2525//
    26 // $Id: G4ionIonisation.cc,v 1.70 2009/11/27 20:06:32 vnivanch Exp $
    27 // GEANT4 tag $Name: geant4-09-04-beta-01 $
     26// $Id: G4ionIonisation.cc,v 1.72 2010/10/26 10:42:04 vnivanch Exp $
     27// GEANT4 tag $Name: emstand-V09-03-24 $
    2828//
    2929// -------------------------------------------------------------------
     
    6666#include "G4Electron.hh"
    6767#include "G4Proton.hh"
    68 //#include "G4Alpha.hh"
    6968#include "G4GenericIon.hh"
    7069#include "G4BraggModel.hh"
     
    8382G4ionIonisation::G4ionIonisation(const G4String& name)
    8483  : G4VEnergyLossProcess(name),
    85     corr(0),
    8684    theParticle(0),
    8785    isInitialised(false),
    88     stopDataActive(true),
    89     nuclearStopping(true)
     86    stopDataActive(true)
    9087{
    9188  SetLinearLossLimit(0.02);
     
    9592  //  SetVerboseLevel(1);
    9693  corr = G4LossTableManager::Instance()->EmCorrections();
     94  eth = 2*MeV;
    9795}
    9896
     
    136134    const G4ParticleDefinition* theBaseParticle = 0;
    137135
    138     if(part == ion)     theBaseParticle = 0;
    139     else if(bpart == 0) theBaseParticle = ion;
    140     else                theBaseParticle = bpart;
     136    if(part == ion)     { theBaseParticle = 0; }
     137    else if(bpart == 0) { theBaseParticle = ion; }
     138    else                { theBaseParticle = bpart; }
    141139
    142140    SetBaseParticle(theBaseParticle);
    143141    SetSecondaryParticle(G4Electron::Electron());
    144142
    145     if (!EmModel(1)) SetEmModel(new G4BraggIonModel(), 1);
     143    if (!EmModel(1)) { SetEmModel(new G4BraggIonModel(), 1); }
    146144    EmModel(1)->SetLowEnergyLimit(MinKinEnergy());
    147145
     
    150148    EmModel(1)->SetHighEnergyLimit(eth);
    151149
    152     if (!FluctModel()) SetFluctModel(new G4IonFluctuations());
     150    if (!FluctModel()) { SetFluctModel(new G4IonFluctuations()); }
    153151    AddEmModel(1, EmModel(1), FluctModel());
    154152
    155     if (!EmModel(2)) SetEmModel(new G4BetheBlochModel(),2); 
     153    if (!EmModel(2)) { SetEmModel(new G4BetheBlochModel(),2); } 
    156154    EmModel(2)->SetLowEnergyLimit(eth);
    157155    EmModel(2)->SetHighEnergyLimit(MaxKinEnergy());
     
    166164  }
    167165  // reinitialisation of corrections for the new run
    168   EmModel(1)->ActivateNuclearStopping(nuclearStopping);
    169   EmModel(2)->ActivateNuclearStopping(nuclearStopping);
    170   if(part == ion) corr->InitialiseForNewRun();
     166  if(part == ion) { corr->InitialiseForNewRun(); }
    171167}
    172168
     
    178174    G4cout << "      Stopping Power data for "
    179175           << corr->GetNumberOfStoppingVectors()
    180            << " ion/material pairs, nuclearStopping: " << nuclearStopping
     176           << " ion/material pairs "
    181177           << G4endl;
    182178  }
Note: See TracChangeset for help on using the changeset viewer.