// // ******************************************************************** // * License and Disclaimer * // * * // * The Geant4 software is copyright of the Copyright Holders of * // * the Geant4 Collaboration. It is provided under the terms and * // * conditions of the Geant4 Software License, included in the file * // * LICENSE and available at http://cern.ch/geant4/license . These * // * include a list of copyright holders. * // * * // * Neither the authors of this software system, nor their employing * // * institutes,nor the agencies providing financial support for this * // * work make any representation or warranty, express or implied, * // * regarding this software system or assume any liability for its * // * use. Please see the license in the file LICENSE and URL above * // * for the full disclaimer and the limitation of liability. * // * * // * This code implementation is the result of the scientific and * // * technical work of the GEANT4 collaboration. * // * By using, copying, modifying or distributing the software (or * // * any work based on the software) you agree to acknowledge its * // * use in resulting scientific publications, and indicate your * // * acceptance of all terms of the Geant4 Software license. * // ******************************************************************** // // --------------------------------------------------------------------------- // // GEANT4 Class file // // // File name: G4hShellCrossSection // // Author: S. Dussoni and A. Mantero (Alfonso.Mantero@ge.infn.it) // // History: // ----------- // 23 Oct 2001 A. Mantero 1st implementation // 24 Oct 2001 MGP Cleaned up // 30 Oct 2001 V.Ivanchenko Include formula (53) // 07 Oct 2002 V.Ivanchenko Fix in formula (53) // 22 Apr 2004 S.Saliceti Add testFlag variable and GetCrossSection method // ---------------------------------------------------------------------------- #include "globals.hh" #include "G4hShellCrossSection.hh" #include "G4AtomicTransitionManager.hh" #include "G4Electron.hh" #include "G4Proton.hh" #include "G4ParticleDefinition.hh" G4hShellCrossSection::G4hShellCrossSection() { } G4hShellCrossSection::~G4hShellCrossSection() { } std::vector G4hShellCrossSection::GetCrossSection(G4int Z, G4double incidentEnergy, G4double mass, G4double deltaEnergy, G4bool) const { return CalculateCrossSections(Z,incidentEnergy,mass,deltaEnergy,false); } std::vector G4hShellCrossSection::CalculateCrossSections(G4int Z, G4double incidentEnergy, G4double hMass, G4double deltaEnergy, G4bool testFlag) const { // Cross-sections for proton ionization calculated as in // "M. Gryzinski, Two-Particle Collisions. I. General Relations for // Collisions in the Laboratory system, Phys.Rev. 138 A305" // Other reference papers are Gryzinski's "Paper I" and "Paper II" // V.Ivanchenko add only implementation of the formula (53) // last factor neglected because it is 1 with a good accuracy const G4AtomicTransitionManager* transitionManager = G4AtomicTransitionManager::Instance(); size_t nShells = transitionManager->NumberOfShells(Z); // Vector that stores the calculated cross-sections for each shell: std::vector crossSections; // In this loop we calculate cross-section for every shell in the atom for (size_t k=0; kShell(Z,k)->BindingEnergy(); G4double xEnergy = 0.5*bindingEnergy; G4double y = incidentEnergy*electron_mass_c2/(xEnergy*hMass); G4double dele = deltaEnergy + xEnergy; G4double x = electron_mass_c2/dele; G4double aCrossSection = (dele/(xEnergy*(1. + 1./y)) + 4.*std::log(2.7 + std::sqrt(y))/3.) * x*x*x; // Fill the vector of cross sections with the value just calculated crossSections.push_back(aCrossSection); if (testFlag) { G4cout <<"Element: " < G4hShellCrossSection::Probabilities( G4int Z, G4double incidentEnergy, G4double hMass, G4double deltaEnergy ) const { std::vector crossSection = CalculateCrossSections(Z, incidentEnergy, hMass, deltaEnergy,true); G4double nShells = crossSection.size(); // Partial and total cross-section used for normalization of crossSections: G4double totalCrossSection = 0.; // Calculation of total cross-section for (size_t j=0; j