source: trunk/source/processes/electromagnetic/standard/include/G4CoulombScattering.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.4 KB
RevLine 
[819]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//
[1007]26// $Id: G4CoulombScattering.hh,v 1.11 2008/06/13 08:19:43 vnivanch Exp $
27// GEANT4 tag $Name: geant4-09-02 $
[819]28//
29// -------------------------------------------------------------------
30//
31// GEANT4 Class header file
32//
33//
34// File name: G4CoulombScattering
35//
36// Author: Vladimir Ivanchenko
37//
38// Creation date: 12.03.2006
39//
40// Modifications:
41//
42// Class Description:
43//
44// This class manages the process of Coulomb elastic scattering
45//
46
47// -------------------------------------------------------------------
48//
49
50#ifndef G4CoulombScattering_h
51#define G4CoulombScattering_h 1
52
53#include "G4VEmProcess.hh"
54#include "G4VEmModel.hh"
55
56class G4CoulombScattering : public G4VEmProcess
57{
58
59public:
60
61 G4CoulombScattering(const G4String& name = "eCoulombScat");
62
63 virtual ~G4CoulombScattering();
64
65 virtual G4bool IsApplicable(const G4ParticleDefinition& p);
66
[961]67 inline void SetThetaMin(G4double);
[819]68
[961]69 inline void SetThetaMax(G4double);
[819]70
[961]71 inline void SetQ2Max(G4double);
[819]72
[961]73 // Set energy above which high energy model will be used
74 inline void SetHEModelLimit(G4double);
75
[819]76 // obsolete method to be removed
[961]77 inline void SetBuildTableFlag(G4bool);
[819]78
79 // Print out of the class parameters
80 virtual void PrintInfo();
81
82protected:
83
84 virtual void InitialiseProcess(const G4ParticleDefinition*);
85
86private:
87
88 // hide assignment operator
89 G4CoulombScattering & operator=(const G4CoulombScattering &right);
90 G4CoulombScattering(const G4CoulombScattering&);
91
92 G4double thetaMin;
93 G4double thetaMax;
94 G4double q2Max;
95 G4double thEnergy;
96 G4double thEnergyElec;
97 G4bool isInitialised;
98 G4bool buildElmTableFlag;
99 const G4ParticleDefinition* aParticle;
100
101};
102
103//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
104//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
105
[1007]106inline G4bool G4CoulombScattering::IsApplicable(const G4ParticleDefinition& p)
107{
108 return (p.GetPDGCharge() != 0.0 && !p.IsShortLived());
109}
110
111//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
112
[819]113inline void G4CoulombScattering::SetThetaMin(G4double val)
114{
115 thetaMin = val;
116}
117
118//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
119
120inline void G4CoulombScattering::SetThetaMax(G4double val)
121{
122 thetaMax = val;
123}
124
125//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
126
127inline void G4CoulombScattering::SetQ2Max(G4double val)
128{
129 q2Max = val;
130}
131
132//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
133
134inline void G4CoulombScattering::SetBuildTableFlag(G4bool)
135{}
136
[961]137//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
138
139inline void G4CoulombScattering::SetHEModelLimit(G4double val)
140{
141 thEnergy = val;
142 thEnergyElec = val;
143}
144
[819]145//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
146
147#endif
Note: See TracBrowser for help on using the repository browser.