Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4INCLCoulombDistortion.hh
Go to the documentation of this file.
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 // INCL++ intra-nuclear cascade model
27 // Pekka Kaitaniemi, CEA and Helsinki Institute of Physics
28 // Davide Mancusi, CEA
29 // Alain Boudard, CEA
30 // Sylvie Leray, CEA
31 // Joseph Cugnon, University of Liege
32 //
33 #define INCLXX_IN_GEANT4_MODE 1
34 
35 #include "globals.hh"
36 
37 /** \file G4INCLCoulombDistortion.hh
38  * \brief Static class for selecting Coulomb distortion.
39  *
40  * \date 14 February 2011
41  * \author Davide Mancusi
42  */
43 
44 #ifndef G4INCLCOULOMBDISTORTION_HH_
45 #define G4INCLCOULOMBDISTORTION_HH_
46 
47 #include "G4INCLParticle.hh"
48 #include "G4INCLNucleus.hh"
49 #include "G4INCLICoulomb.hh"
50 
51 namespace G4INCL {
52 
53  /**
54  * Coulomb distortion
55  */
57  public:
58  /** \brief Modify the momentum of an incoming particle and position it on
59  * the surface of the nucleus.
60  *
61  * This method places Particle p on the surface of Nucleus n and modifies
62  * the direction of its momentum to be tangent to the Coulomb trajectory in
63  * that point.
64  *
65  * The input particle has to be prepared with its asymptotic momentum. Its
66  * position is used only for the purpose of computing the asymptotic impact
67  * parameter; in other words, this method only uses the components of the
68  * position that are perpendicular to the momentum. The remaining component
69  * is not used, and can be set to any value.
70  *
71  * This method returns a ParticleEntry avatar for the projectile.
72  *
73  * \param p incoming particle
74  * \param n distorting nucleus
75  * \return the ParticleEntryAvatar for the projectile particle
76  **/
78  return theCoulomb->bringToSurface(p, n);
79  }
80 
81  /** \brief Modify the momentum of an incoming cluster and position it on
82  * the surface of the target.
83  *
84  * Same as the Particle-based bringToSurface method, but for incoming heavy
85  * ions.
86  *
87  * This method returns a list of ParticleEntry avatars for the participant
88  * nucleons
89  *
90  * \param c incoming heavy ion
91  * \param n distorting nucleus
92  * \return a list of ParticleEntryAvatars
93  **/
94  static IAvatarList bringToSurface(Cluster * const c, Nucleus * const n) {
95  return theCoulomb->bringToSurface(c, n);
96  }
97 
98  /** \brief Modify the momentum of an outgoing particle. */
99  static void distortOut(ParticleList const &pL, Nucleus const * const n) {
100  theCoulomb->distortOut(pL, n);
101  }
102 
103  /** \brief Return the maximum impact parameter for Coulomb-distorted
104  * trajectories. **/
105  static G4double maxImpactParameter(ParticleSpecies const &p, const G4double kinE, Nucleus const * const n) {
106  return theCoulomb->maxImpactParameter(p, kinE, n);
107  }
108 
109  /** \brief Return the maximum impact parameter for Coulomb-distorted
110  * trajectories. **/
111  static G4double maxImpactParameter(Particle const * const p, Nucleus const * const n) {
112  return maxImpactParameter(p->getSpecies(), p->getKineticEnergy(), n);
113  }
114 
115  /** \brief Set the Coulomb-distortion algorithm. */
116  static void setCoulomb(ICoulomb * const coulomb) { theCoulomb = coulomb; }
117 
118  /** \brief Delete the Coulomb-distortion object. */
119  static void deleteCoulomb() {
120  delete theCoulomb;
121  theCoulomb = 0;
122  }
123 
124  protected:
127 
128  private:
129  static G4ThreadLocal ICoulomb *theCoulomb;
130 
131  };
132 }
133 
134 #endif /* G4INCLCOULOMBDISTORTION_HH_ */
static void distortOut(ParticleList const &pL, Nucleus const *const n)
Modify the momentum of an outgoing particle.
static IAvatarList bringToSurface(Cluster *const c, Nucleus *const n)
Modify the momentum of an incoming cluster and position it on the surface of the target.
const char * p
Definition: xmltok.h:285
static void setCoulomb(ICoulomb *const coulomb)
Set the Coulomb-distortion algorithm.
virtual G4double maxImpactParameter(ParticleSpecies const &p, const G4double kinE, Nucleus const *const n) const =0
Return the maximum impact parameter for Coulomb-distorted trajectories.
#define G4ThreadLocal
Definition: tls.hh:52
static ParticleEntryAvatar * bringToSurface(Particle *p, Nucleus *const n)
Modify the momentum of an incoming particle and position it on the surface of the nucleus...
static G4double maxImpactParameter(ParticleSpecies const &p, const G4double kinE, Nucleus const *const n)
Return the maximum impact parameter for Coulomb-distorted trajectories.
static void deleteCoulomb()
Delete the Coulomb-distortion object.
static G4double maxImpactParameter(Particle const *const p, Nucleus const *const n)
Return the maximum impact parameter for Coulomb-distorted trajectories.
const G4int n
virtual void distortOut(ParticleList const &pL, Nucleus const *const n) const =0
Modify the momenta of the outgoing particles.
G4double getKineticEnergy() const
Get the particle kinetic energy.
virtual G4INCL::ParticleSpecies getSpecies() const
Get the particle species.
Abstract interface for Coulomb distortion.
double G4double
Definition: G4Types.hh:76
virtual ParticleEntryAvatar * bringToSurface(Particle *const p, Nucleus *const n) const =0
Modify the momentum of an incoming particle and position it on the surface of the nucleus...