|
||||
File indexing completed on 2025-01-18 09:58:29
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 /* 0039 * G4INCLSurfaceAvatar.hh 0040 * 0041 * \date Jun 8, 2009 0042 * \author Pekka Kaitaniemi 0043 */ 0044 0045 #ifndef G4INCLSURFACEAVATAR_HH_ 0046 #define G4INCLSURFACEAVATAR_HH_ 0047 0048 #include "G4INCLIAvatar.hh" 0049 #include "G4INCLIChannel.hh" 0050 #include "G4INCLParticle.hh" 0051 #include "G4INCLNucleus.hh" 0052 #include "G4INCLAllocationPool.hh" 0053 0054 namespace G4INCL { 0055 0056 /** 0057 * Surface avatar 0058 * 0059 * The reflection avatar is created when a particle reaches the boundary of the nucleus. 0060 * At this point it can either be reflected from the boundary or exit the nucleus. 0061 */ 0062 class SurfaceAvatar: public G4INCL::IAvatar { 0063 public: 0064 SurfaceAvatar(G4INCL::Particle *aParticle, G4double time, G4INCL::Nucleus *aNucleus); 0065 virtual ~SurfaceAvatar(); 0066 0067 IChannel* getChannel(); 0068 void fillFinalState(FinalState *fs); 0069 0070 virtual void preInteraction(); 0071 virtual void postInteraction(FinalState *); 0072 0073 ParticleList getParticles() const { 0074 ParticleList theParticleList; 0075 theParticleList.push_back(theParticle); 0076 return theParticleList; 0077 } 0078 0079 std::string dump() const; 0080 0081 /// \brief Calculate the transmission probability for the particle 0082 G4double getTransmissionProbability(Particle const * const particle); 0083 0084 /// \brief Get the cosine of the refraction angle (precalculated by initializeRefractionVariables) 0085 G4double getCosRefractionAngle() const { return cosRefractionAngle; } 0086 0087 /// \brief Get the outgoing momentum (precalculated by initializeRefractionVariables) 0088 G4double getOutgoingMomentum() const { return particlePOut; } 0089 0090 private: 0091 void initializeRefractionVariables(Particle const * const particle); 0092 0093 private: 0094 G4INCL::Particle *theParticle; 0095 G4INCL::Nucleus *theNucleus; 0096 0097 G4double particlePIn; 0098 G4double particlePOut; 0099 G4double particleTOut; 0100 G4double TMinusV; 0101 G4double TMinusV2; 0102 G4double particleMass; 0103 G4double sinIncidentAngle; 0104 G4double cosIncidentAngle; 0105 G4double sinRefractionAngle; 0106 G4double cosRefractionAngle; 0107 G4double refractionIndexRatio; 0108 G4bool internalReflection; 0109 0110 INCL_DECLARE_ALLOCATION_POOL(SurfaceAvatar) 0111 }; 0112 0113 } 0114 0115 #endif /* G4INCLSURFACEAVATAR_HH_ */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |