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: G4eMultipleScattering.hh,v 1.3 2009/11/01 13:04:12 vnivanch Exp $ |
---|
27 | // GEANT4 tag $Name: geant4-09-03 $ |
---|
28 | // |
---|
29 | // ----------------------------------------------------------------------------- |
---|
30 | // |
---|
31 | // GEANT4 Class header file |
---|
32 | // |
---|
33 | // File name: G4eMultipleScattering |
---|
34 | // |
---|
35 | // Author: Vladimir Ivanchenko |
---|
36 | // |
---|
37 | // Creation date: 10 March 2001 |
---|
38 | // |
---|
39 | // Modifications: |
---|
40 | // |
---|
41 | // |
---|
42 | //------------------------------------------------------------------------------ |
---|
43 | // |
---|
44 | |
---|
45 | // class description |
---|
46 | // |
---|
47 | // The class simulates the multiple scattering for e+ and e- |
---|
48 | // |
---|
49 | // class description - end |
---|
50 | |
---|
51 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
52 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
53 | |
---|
54 | #ifndef G4eMultipleScattering_h |
---|
55 | #define G4eMultipleScattering_h 1 |
---|
56 | |
---|
57 | #include "G4VMultipleScattering.hh" |
---|
58 | |
---|
59 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
60 | |
---|
61 | class G4eMultipleScattering : public G4VMultipleScattering |
---|
62 | |
---|
63 | { |
---|
64 | public: // with description |
---|
65 | |
---|
66 | G4eMultipleScattering(const G4String& processName="msc"); |
---|
67 | |
---|
68 | virtual ~G4eMultipleScattering(); |
---|
69 | |
---|
70 | // returns true for charged particles, false otherwise |
---|
71 | G4bool IsApplicable (const G4ParticleDefinition& p); |
---|
72 | |
---|
73 | // Print few lines of informations about the process: validity range, |
---|
74 | void PrintInfo(); |
---|
75 | |
---|
76 | // geom. step length distribution should be sampled or not |
---|
77 | void Setsamplez(G4bool value) { samplez = value;}; |
---|
78 | |
---|
79 | // to reduce the energy/step dependence |
---|
80 | void Setdtrl(G4double value) { dtrl = value;}; |
---|
81 | |
---|
82 | // 'soften' step limitation above lambdalimit |
---|
83 | void SetLambdalimit(G4double value) { lambdalimit = value;}; |
---|
84 | |
---|
85 | protected: |
---|
86 | |
---|
87 | // This function initialise models |
---|
88 | void InitialiseProcess(const G4ParticleDefinition*); |
---|
89 | |
---|
90 | private: // data members |
---|
91 | |
---|
92 | G4double lambdalimit; |
---|
93 | G4double dtrl; |
---|
94 | |
---|
95 | G4bool samplez; |
---|
96 | G4bool isInitialized; |
---|
97 | |
---|
98 | }; |
---|
99 | |
---|
100 | //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... |
---|
101 | |
---|
102 | #endif |
---|