Ignore:
Timestamp:
Apr 6, 2009, 12:21:12 PM (15 years ago)
Author:
garnier
Message:

update processes

File:
1 edited

Legend:

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

    r819 r961  
    2424// ********************************************************************
    2525//
    26 // $Id: G4MultipleScattering.cc,v 1.70 2007/10/29 08:57:19 vnivanch Exp $
    27 // GEANT4 tag $Name: geant4-09-01-patch-02 $
     26// $Id: G4MultipleScattering.cc,v 1.75 2008/10/15 17:53:44 vnivanch Exp $
     27// GEANT4 tag $Name: geant4-09-02-ref-02 $
    2828//
    2929// -----------------------------------------------------------------------------
     
    121121// 12-02-07 skin can be changed via UI command, default skin=1 (VI)
    122122// 24-04-07 default skin=0 (temporal protection) (VI)
     123// 11-03-08 use G4VMscModel interface (VI)
    123124//
    124125// -----------------------------------------------------------------------------
     
    130131#include "G4UrbanMscModel.hh"
    131132#include "G4MscStepLimitType.hh"
     133#include "G4UrbanMscModel.hh"
    132134
    133135//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
     
    138140  : G4VMultipleScattering(processName)
    139141{
    140   dtrl              = 0.05;
    141   lambdalimit       = 1.*mm;
    142  
    143   samplez           = false ;
    144   isInitialized     = false; 
     142  isInitialized = false; 
    145143}
    146144
     
    178176    SetLateralDisplasmentFlag(false);
    179177    SetBuildLambdaTable(false);
    180     SetSkin(0.0);
    181     SetRangeFactor(0.2);
    182178  }
    183179
    184180  // initialisation of parameters - defaults for particles other
    185181  // than ions can be overwritten by users
    186   mscUrban = new G4UrbanMscModel(RangeFactor(),dtrl,lambdalimit,
    187                                  GeomFactor(),Skin(),
    188                                  samplez,StepLimitType());
     182  mscUrban = new G4UrbanMscModel();
     183  mscUrban->SetStepLimitType(StepLimitType());
    189184  mscUrban->SetLateralDisplasmentFlag(LateralDisplasmentFlag());
     185  mscUrban->SetSkin(Skin());
     186  mscUrban->SetRangeFactor(RangeFactor());
     187  mscUrban->SetGeomFactor(GeomFactor());
    190188
    191189  AddEmModel(1,mscUrban);
     
    204202void G4MultipleScattering::PrintInfo()
    205203{
    206   G4cout << "      Boundary/stepping algorithm is active with RangeFactor= "
    207          << RangeFactor()
    208          << "  Step limit type " << StepLimitType()
     204  G4cout << "      RangeFactor= " << RangeFactor()
     205         << ", step limit type: " << StepLimitType()
     206         << ", lateralDisplacement: " << LateralDisplasmentFlag()
     207         << ", skin= " << Skin() 
     208         << ", geomFactor= " << GeomFactor() 
    209209         << G4endl;
    210210}
Note: See TracChangeset for help on using the changeset viewer.