G4INCLNuclearDensity.hh

Go to the documentation of this file.
00001 //
00002 // ********************************************************************
00003 // * License and Disclaimer                                           *
00004 // *                                                                  *
00005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
00006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
00007 // * conditions of the Geant4 Software License,  included in the file *
00008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
00009 // * include a list of copyright holders.                             *
00010 // *                                                                  *
00011 // * Neither the authors of this software system, nor their employing *
00012 // * institutes,nor the agencies providing financial support for this *
00013 // * work  make  any representation or  warranty, express or implied, *
00014 // * regarding  this  software system or assume any liability for its *
00015 // * use.  Please see the license in the file  LICENSE  and URL above *
00016 // * for the full disclaimer and the limitation of liability.         *
00017 // *                                                                  *
00018 // * This  code  implementation is the result of  the  scientific and *
00019 // * technical work of the GEANT4 collaboration.                      *
00020 // * By using,  copying,  modifying or  distributing the software (or *
00021 // * any work based  on the software)  you  agree  to acknowledge its *
00022 // * use  in  resulting  scientific  publications,  and indicate your *
00023 // * acceptance of all terms of the Geant4 Software license.          *
00024 // ********************************************************************
00025 //
00026 // INCL++ intra-nuclear cascade model
00027 // Pekka Kaitaniemi, CEA and Helsinki Institute of Physics
00028 // Davide Mancusi, CEA
00029 // Alain Boudard, CEA
00030 // Sylvie Leray, CEA
00031 // Joseph Cugnon, University of Liege
00032 //
00033 #define INCLXX_IN_GEANT4_MODE 1
00034 
00035 #include "globals.hh"
00036 
00037 #ifndef G4INCLNuclearDensity_hh
00038 #define G4INCLNuclearDensity_hh 1
00039 
00040 #include <vector>
00041 #include <map>
00042 // #include <cassert>
00043 #include "G4INCLThreeVector.hh"
00044 #include "G4INCLIFunction1D.hh"
00045 #include "G4INCLParticle.hh"
00046 #include "G4INCLGlobals.hh"
00047 #include "G4INCLRandom.hh"
00048 #include "G4INCLINuclearPotential.hh"
00049 #include "G4INCLInverseInterpolationTable.hh"
00050 
00051 namespace G4INCL {
00052 
00053   class NuclearDensity {
00054   public:
00055     NuclearDensity(G4int A, G4int Z, InverseInterpolationTable *rpCorrelationTable);
00056     ~NuclearDensity();
00057 
00059     NuclearDensity(const NuclearDensity &rhs);
00060 
00062     NuclearDensity &operator=(const NuclearDensity &rhs);
00063 
00065     void swap(NuclearDensity &rhs);
00066 
00072     G4double getMaxRFromP(G4double p) const;
00073 
00074     G4double getMaxTFromR(G4double r) const;
00075 
00076     G4double getMaximumRadius() const { return theMaximumRadius; };
00077 
00082     G4double getTransmissionRadius(Particle const * const p) const {
00083       const ParticleType t = p->getType();
00084 // assert(t!=Neutron && t!=PiZero && t!=DeltaZero); // no neutral particles here
00085       if(t==Composite) {
00086         return transmissionRadius[t] +
00087           ParticleTable::getNuclearRadius(p->getA(), p->getZ());
00088       } else
00089         return transmissionRadius[t];
00090     };
00091 
00096     G4double getTransmissionRadius(ParticleType type) {
00097 // assert(type!=Composite);
00098       return transmissionRadius[type];
00099     };
00100 
00102     G4int getA() const { return theA; }
00103 
00105     G4int getZ() const { return theZ; }
00106 
00107     G4double getNuclearRadius() { return theNuclearRadius; }
00108 
00109   private:
00110 
00112     void initializeTransmissionRadii();
00113 
00114     G4int theA, theZ;
00115     G4double theMaximumRadius;
00117     G4double theNuclearRadius;
00118 
00119     /* \brief map of transmission radii per particle type */
00120     G4double transmissionRadius[UnknownParticle];
00121 
00122     InverseInterpolationTable *rFromP;
00123     InverseInterpolationTable *tFromR;
00124   };
00125 
00126 }
00127 
00128 #endif

Generated on Mon May 27 17:48:36 2013 for Geant4 by  doxygen 1.4.7