source: trunk/source/processes/electromagnetic/standard/include/G4hMultipleScattering.hh@ 1036

Last change on this file since 1036 was 1007, checked in by garnier, 17 years ago

update to geant4.9.2

File size: 4.1 KB
Line 
1//
2// ********************************************************************
3// * License and Disclaimer *
4// * *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
10// * *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
17// * *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
25//
26// $Id: G4hMultipleScattering.hh,v 1.6 2008/05/09 08:23:44 vnivanch Exp $
27// GEANT4 tag $Name: geant4-09-02 $
28//
29// -----------------------------------------------------------------------------
30//
31// GEANT4 Class header file
32//
33// File name: G4hMultipleScattering
34//
35// Author: Laszlo Urban
36//
37// Creation date: 24.10.2006 cloned from G4MultipleScattering by VI
38//
39// Modifications:
40// 20.03.07 Remove local parameter skin (V.Ivanchenko)
41//
42//
43//------------------------------------------------------------------------------
44
45// class description
46//
47// The class simulates the multiple scattering for any kind
48// of charged particle.
49//
50// class description - end
51
52//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
53//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
54
55#ifndef G4hMultipleScattering_h
56#define G4hMultipleScattering_h 1
57
58#include "G4VMultipleScattering.hh"
59
60//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
61
62class G4VMscModel;
63
64class G4hMultipleScattering : public G4VMultipleScattering
65
66{
67public: // with description
68
69 G4hMultipleScattering(const G4String& processName="msc");
70
71 virtual ~G4hMultipleScattering();
72
73 // returns true for charged particles, false otherwise
74 G4bool IsApplicable (const G4ParticleDefinition& p);
75
76 // Print few lines of informations about the process: validity range,
77 void PrintInfo();
78
79 // geom. step length distribution should be sampled or not
80 void Setsamplez(G4bool value) { samplez = value;};
81
82 // to reduce the energy/step dependence
83 void Setdtrl(G4double value) { dtrl = value;};
84
85 // 'soften' step limitation above lambdalimit
86 void SetLambdalimit(G4double value) { lambdalimit = value;};
87
88 // The function overloads the corresponding function of the base
89 // class.It limits the step near to boundaries only
90 // and invokes the method GetMscContinuousStepLimit at every step.
91 G4double AlongStepGetPhysicalInteractionLength(
92 const G4Track&,
93 G4double previousStepSize,
94 G4double currentMinimalStep,
95 G4double& currentSafety,
96 G4GPILSelection* selection);
97
98protected:
99
100 // This function initialise models
101 void InitialiseProcess(const G4ParticleDefinition*);
102
103private: // data members
104
105 G4VMscModel* mscUrban;
106
107 G4double lambdalimit;
108 G4double dtrl;
109
110 G4bool samplez;
111 G4bool isInitialized;
112 G4bool isIon;
113
114};
115
116//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
117
118#endif
Note: See TracBrowser for help on using the repository browser.