Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-12 09:10:53

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 // INCL++ intra-nuclear cascade model
0027 // Alain Boudard, CEA-Saclay, France
0028 // Joseph Cugnon, University of Liege, Belgium
0029 // Jean-Christophe David, CEA-Saclay, France
0030 // Pekka Kaitaniemi, CEA-Saclay, France, and Helsinki Institute of Physics, Finland
0031 // Sylvie Leray, CEA-Saclay, France
0032 // Davide Mancusi, CEA-Saclay, France
0033 //
0034 #define INCLXX_IN_GEANT4_MODE 1
0035 
0036 #include "globals.hh"
0037 
0038 /** \file G4INCLCoulombDistortion.hh
0039  * \brief Static class for selecting Coulomb distortion.
0040  *
0041  * \date 14 February 2011
0042  * \author Davide Mancusi
0043  */
0044 
0045 #ifndef G4INCLCOULOMBDISTORTION_HH_
0046 #define G4INCLCOULOMBDISTORTION_HH_
0047 
0048 #include "G4INCLParticle.hh"
0049 #include "G4INCLNucleus.hh"
0050 #include "G4INCLICoulomb.hh"
0051 #include "G4INCLConfig.hh"
0052 
0053 namespace G4INCL {
0054 
0055   /**
0056    * Coulomb distortion
0057    */
0058   namespace CoulombDistortion {
0059     /** \brief Modify the momentum of an incoming particle and position it on
0060      *         the surface of the nucleus.
0061      *
0062      * This method places Particle p on the surface of Nucleus n and modifies
0063      * the direction of its momentum to be tangent to the Coulomb trajectory in
0064      * that point.
0065      *
0066      * The input particle has to be prepared with its asymptotic momentum. Its
0067      * position is used only for the purpose of computing the asymptotic impact
0068      * parameter; in other words, this method only uses the components of the
0069      * position that are perpendicular to the momentum. The remaining component
0070      * is not used, and can be set to any value.
0071      *
0072      * This method returns a ParticleEntry avatar for the projectile.
0073      *
0074      * \param p incoming particle
0075      * \param n distorting nucleus
0076      * \return the ParticleEntryAvatar for the projectile particle
0077      **/
0078     ParticleEntryAvatar *bringToSurface(Particle *p, Nucleus * const n);
0079  
0080     ParticleEntryAvatar *bringToSurfaceAbar(Particle *p, Nucleus * const n);
0081 
0082     /** \brief Modify the momentum of an incoming cluster and position it on
0083      *         the surface of the target.
0084      *
0085      * Same as the Particle-based bringToSurface method, but for incoming heavy
0086      * ions.
0087      *
0088      * This method returns a list of ParticleEntry avatars for the participant
0089      * nucleons
0090      *
0091      * \param c incoming heavy ion
0092      * \param n distorting nucleus
0093      * \return a list of ParticleEntryAvatars
0094      **/
0095     IAvatarList bringToSurface(Cluster * const c, Nucleus * const n);
0096 
0097     /** \brief Modify the momentum of an outgoing particle. */
0098     void distortOut(ParticleList const &pL, Nucleus const * const n);
0099 
0100     /** \brief Return the maximum impact parameter for Coulomb-distorted
0101      *         trajectories. **/
0102     G4double maxImpactParameter(ParticleSpecies const &p, const G4double kinE, Nucleus const * const n);
0103 
0104     /** \brief Return the maximum impact parameter for Coulomb-distorted
0105      *         trajectories. **/
0106     G4double maxImpactParameter(Particle const * const p, Nucleus const * const n);
0107 
0108     /** \brief Set the Coulomb-distortion algorithm. */
0109     void setCoulomb(ICoulomb * const coulomb);
0110 
0111     /** \brief Delete the Coulomb-distortion object. */
0112     void deleteCoulomb();
0113 
0114     /// \brief Initialize the Coulomb-distortion algorithm
0115     void initialize(Config const * const theConfig);
0116 
0117   }
0118 }
0119 
0120 #endif /* G4INCLCOULOMBDISTORTION_HH_ */