Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:58:31

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 //  G4IonCoulombCrossSection.hh
0027 //-------------------------------------------------------------------
0028 //
0029 // GEANT4 Class header file
0030 //
0031 // File name:    G4IonCoulombCrossSection
0032 //
0033 // Author:      Cristina Consolandi
0034 //
0035 // Creation date: 05.10.2010 from G4eCoulombScatteringModel
0036 //
0037 // Class Description:
0038 //      Computation of Screen-Coulomb Cross Section
0039 //      for protons, alpha and heavy Ions
0040 //
0041 //
0042 // Reference:
0043 //      M.J. Boschini et al. "Nuclear and Non-Ionizing Energy-Loss
0044 //      for Coulomb Scattered Particles from Low Energy up to Relativistic
0045 //      Regime in Space Radiation Environment"
0046 //      Accepted for publication in the Proceedings of  the  ICATPP Conference
0047 //      on Cosmic Rays for Particle and Astroparticle Physics, Villa  Olmo, 7-8
0048 //      October,  2010, to be published by World Scientific (Singapore).
0049 //
0050 //      Available for downloading at:
0051 //      http://arxiv.org/abs/1011.4822
0052 //
0053 // -------------------------------------------------------------------
0054 
0055 //
0056 #ifndef G4IonCoulombCrossSection_h
0057 #define G4IonCoulombCrossSection_h 1
0058 
0059 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0060 
0061 #include <CLHEP/Units/SystemOfUnits.h>
0062 
0063 #include "globals.hh"
0064 #include "G4NistManager.hh"
0065 #include "G4ParticleDefinition.hh"
0066 
0067 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0068 
0069 class G4IonCoulombCrossSection
0070 {
0071 public:
0072 
0073   explicit G4IonCoulombCrossSection();
0074 
0075   ~G4IonCoulombCrossSection() = default;
0076 
0077   void Initialise(const G4ParticleDefinition*, G4double cosThetaLim);
0078 
0079   G4double NuclearCrossSection();
0080 
0081   G4double SampleCosineTheta();
0082 
0083   void SetupKinematic(G4double kinEnergy, G4double tmass);
0084 
0085   void SetupTarget(G4double Z, G4double kinEnergy, G4int heavycorr);
0086 
0087   inline void SetupParticle(const G4ParticleDefinition*);
0088 
0089   inline G4double GetMomentum2();
0090 
0091   G4IonCoulombCrossSection & operator=
0092   (const  G4IonCoulombCrossSection &right) = delete;
0093   G4IonCoulombCrossSection(const  G4IonCoulombCrossSection&) = delete;
0094 
0095 private:
0096 
0097   void   SetScreenRSquare(G4int iz);
0098 
0099   const G4ParticleDefinition* theProton;  
0100 
0101   G4NistManager*  fNistManager;     
0102   G4Pow*          fG4pow;
0103 
0104   G4double                coeff;      
0105 
0106   //cost - min - max 
0107   G4double                cosThetaMin;// def 1.0
0108   G4double                cosThetaMax;// def -1.0
0109   //SetupTarget
0110   G4double                cosTetMinNuc;// -->cosThetaMin
0111   G4double                cosTetMaxNuc;// -->cosThetaMax
0112 
0113   //cross section
0114   G4double                nucXSection;      
0115 
0116   //energy 
0117   G4double                etag;     
0118 
0119   // projectile........................
0120   const G4ParticleDefinition* particle;
0121 
0122   G4double                chargeSquare;  
0123   G4double                spin;    
0124   G4double                mass;    
0125 
0126   //lab of incedent particle 
0127   G4double                tkinLab;
0128   G4double                momLab2;
0129   G4double                invbetaLab2;
0130 
0131   //relative system with nucleus
0132   G4double                tkin;    
0133   G4double                mom2;    
0134   G4double                invbeta2;    
0135 
0136   // target nucleus
0137   G4double                targetZ;    
0138   G4double                targetMass; 
0139   G4double                screenZ; 
0140   G4double                alpha2;
0141   G4double        ScreenRSquare;  
0142 };
0143 
0144 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
0145 
0146 inline 
0147 void G4IonCoulombCrossSection::SetupParticle(const G4ParticleDefinition* p)
0148 {
0149   particle = p;
0150   mass = particle->GetPDGMass();
0151   spin = particle->GetPDGSpin();
0152   if(0.0 != spin) { spin = 0.5; }
0153   G4double q = particle->GetPDGCharge()/CLHEP::eplus;
0154   chargeSquare = q*q;
0155   tkin = 0.0;
0156 }
0157 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
0158 
0159 inline G4double G4IonCoulombCrossSection::GetMomentum2()
0160 {
0161   return mom2;
0162 }
0163 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
0164 
0165 #endif
0166 
0167