source: trunk/source/processes/electromagnetic/utils/include/G4ionEffectiveCharge.hh@ 880

Last change on this file since 880 was 819, checked in by garnier, 17 years ago

import all except CVS

File size: 3.9 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: G4ionEffectiveCharge.hh,v 1.8 2006/08/15 16:21:39 vnivanch Exp $
27// GEANT4 tag $Name: geant4-09-01-patch-02 $
28//
29// -------------------------------------------------------------------
30//
31// GEANT4 Class header file
32//
33//
34// File name: G4ionEffectiveCharge
35//
36// Author: Vladimir Ivanchenko
37//
38// Creation date: 03.07.2004
39//
40// Modifications:
41//
42//
43// Class Description:
44//
45// This class manages the simulation of effective charge of ions
46// in the assumption of equilibrium between ion shelss and media.
47// J.F.Ziegler and J.M.Manoyan, The stopping of ions in compaunds,
48// Nucl. Inst. & Meth. in Phys. Res. B35 (1988) 215-228.
49//
50
51// -------------------------------------------------------------------
52//
53
54#ifndef G4ionEffectiveCharge_h
55#define G4ionEffectiveCharge_h 1
56
57#include "globals.hh"
58
59class G4Material;
60class G4ParticleDefinition;
61
62class G4ionEffectiveCharge
63{
64
65public:
66
67 G4ionEffectiveCharge();
68
69 virtual ~G4ionEffectiveCharge();
70
71 G4double EffectiveChargeSquareRatio(
72 const G4ParticleDefinition* p,
73 const G4Material* material,
74 G4double kineticEnergy);
75
76 G4double EffectiveCharge(const G4ParticleDefinition* p,
77 const G4Material* material,
78 G4double kineticEnergy);
79
80private:
81
82 // hide assignment operator
83 G4ionEffectiveCharge & operator=(const G4ionEffectiveCharge &right);
84 G4ionEffectiveCharge(const G4ionEffectiveCharge&);
85
86 G4double chargeCorrection;
87 G4double energyHighLimit;
88 G4double energyLowLimit;
89 G4double energyBohr;
90 G4double massFactor;
91 G4double minCharge;
92};
93
94//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
95//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
96
97inline G4double G4ionEffectiveCharge::EffectiveChargeSquareRatio(
98 const G4ParticleDefinition* p,
99 const G4Material* material,
100 G4double kineticEnergy)
101{
102 G4double charge = EffectiveCharge(p,material,kineticEnergy)/eplus;
103 charge *= chargeCorrection;
104
105 return charge*charge;
106}
107
108//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
109
110#endif
Note: See TracBrowser for help on using the repository browser.