G4MuMultipleScattering.cc

Go to the documentation of this file.
00001 //
00002 // ********************************************************************
00003 // * License and Disclaimer                                           *
00004 // *                                                                  *
00005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
00006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
00007 // * conditions of the Geant4 Software License,  included in the file *
00008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
00009 // * include a list of copyright holders.                             *
00010 // *                                                                  *
00011 // * Neither the authors of this software system, nor their employing *
00012 // * institutes,nor the agencies providing financial support for this *
00013 // * work  make  any representation or  warranty, express or implied, *
00014 // * regarding  this  software system or assume any liability for its *
00015 // * use.  Please see the license in the file  LICENSE  and URL above *
00016 // * for the full disclaimer and the limitation of liability.         *
00017 // *                                                                  *
00018 // * This  code  implementation is the result of  the  scientific and *
00019 // * technical work of the GEANT4 collaboration.                      *
00020 // * By using,  copying,  modifying or  distributing the software (or *
00021 // * any work based  on the software)  you  agree  to acknowledge its *
00022 // * use  in  resulting  scientific  publications,  and indicate your *
00023 // * acceptance of all terms of the Geant4 Software license.          *
00024 // ********************************************************************
00025 //
00026 // $Id$
00027 //
00028 // -----------------------------------------------------------------------------
00029 //
00030 // GEANT4 Class file
00031 //
00032 // File name:     G4MuMultipleScattering
00033 //
00034 // Author:        Laszlo Urban
00035 //
00036 // Creation date: 24.10.2006 cloned from G4MultipleScattering
00037 // 
00038 // Modified:
00039 // 12-02-07 skin can be changed via UI command (VI)
00040 // 20.03.07 Remove local parameter skin, set facgeom=0.1(V.Ivanchenko) 
00041 //
00042 // -----------------------------------------------------------------------------
00043 //
00044 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00045 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00046 
00047 #include "G4MuMultipleScattering.hh"
00048 #include "G4SystemOfUnits.hh"
00049 #include "G4WentzelVIModel.hh"
00050 #include "G4UrbanMscModel95.hh"
00051 #include "G4MscStepLimitType.hh"
00052 
00053 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00054 
00055 using namespace std;
00056 
00057 G4MuMultipleScattering::G4MuMultipleScattering(const G4String& pnam)
00058   : G4VMultipleScattering(pnam)
00059 {
00060   isInitialized = false;  
00061   SetStepLimitType(fMinimal);
00062 }
00063 
00064 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00065 
00066 G4MuMultipleScattering::~G4MuMultipleScattering()
00067 {}
00068 
00069 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00070 
00071 G4bool G4MuMultipleScattering::IsApplicable (const G4ParticleDefinition& p)
00072 {
00073   return (p.GetPDGCharge() != 0.0 && !p.IsShortLived());
00074 }
00075 
00076 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00077 
00078 void G4MuMultipleScattering::InitialiseProcess(const G4ParticleDefinition*)
00079 {
00080   // Modification of parameters between runs
00081   if(isInitialized) { return; }
00082   if(!EmModel(1)) { SetEmModel(new G4UrbanMscModel95(), 1); }
00083   AddEmModel(1, EmModel(1));
00084   isInitialized = true;
00085 }
00086 
00087 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00088 
00089 void G4MuMultipleScattering::PrintInfo()
00090 {
00091   G4cout << "      RangeFactor= " << RangeFactor()
00092          << ", step limit type: " << StepLimitType()
00093          << ", lateralDisplacement: " << LateralDisplasmentFlag()
00094          << ", polarAngleLimit(deg)= " << PolarAngleLimit()/degree
00095          << G4endl;
00096 }
00097 
00098 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
00099 

Generated on Mon May 27 17:48:54 2013 for Geant4 by  doxygen 1.4.7