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

Last change on this file since 1340 was 1337, checked in by garnier, 14 years ago

tag geant4.9.4 beta 1 + modifs locales

File size: 4.2 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.12 2008/09/20 19:39:34 vnivanch Exp $
27// GEANT4 tag $Name: geant4-09-04-beta-01 $
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#include "G4ParticleDefinition.hh"
59
60class G4Material;
61class G4NistManager;
62
63class G4ionEffectiveCharge 
64{
65
66public:
67
68  G4ionEffectiveCharge();
69
70  virtual ~G4ionEffectiveCharge();
71
72  G4double EffectiveChargeSquareRatio(
73                           const G4ParticleDefinition* p,
74                           const G4Material* material,
75                                 G4double kineticEnergy);
76
77  G4double EffectiveCharge(const G4ParticleDefinition* p,
78                           const G4Material* material,
79                                 G4double kineticEnergy);
80
81private:
82
83  // hide assignment operator
84  G4ionEffectiveCharge & operator=(const G4ionEffectiveCharge &right);
85  G4ionEffectiveCharge(const G4ionEffectiveCharge&);
86
87  G4NistManager*              nist;
88
89  const G4ParticleDefinition* lastPart;
90  const G4Material*           lastMat;
91  G4double                    lastKinEnergy;
92
93  G4double                    chargeCorrection;
94  G4double                    effCharge;
95
96  G4double                    energyHighLimit;
97  G4double                    energyLowLimit;
98  G4double                    energyBohr;
99  G4double                    massFactor;
100  G4double                    minCharge;
101};
102
103//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
104//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
105
106inline G4double G4ionEffectiveCharge::EffectiveChargeSquareRatio(
107                           const G4ParticleDefinition* p,
108                           const G4Material* material,
109                                 G4double kineticEnergy)
110{
111  G4double charge = effCharge;
112  if( kineticEnergy != lastKinEnergy || material != lastMat || p != lastPart) {
113    charge = EffectiveCharge(p,material,kineticEnergy);
114  }
115  charge *= chargeCorrection/CLHEP::eplus;
116
117  return charge*charge;
118}
119
120//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
121
122#endif
Note: See TracBrowser for help on using the repository browser.