Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:57:59

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 //
0027 // -------------------------------------------------------------------
0028 //
0029 // GEANT4 Class header file
0030 //
0031 //
0032 // File name:     G4BraggIonModel
0033 //
0034 // Author:        Vladimir Ivanchenko
0035 //
0036 // Creation date: 13.10.2004
0037 //
0038 // Modifications:
0039 // 09-11-04 Migration to new interface of Store/Retrieve tables (V.Ivantchenko)
0040 // 11-05-05 Major optimisation of internal interfaces (V.Ivantchenko)
0041 // 15-02-06 ComputeCrossSectionPerElectron, ComputeCrossSectionPerAtom (mma)
0042 // 25-04-06 Add stopping data from ASTAR (V.Ivanchenko)
0043 // 12-08-08 Added methods GetParticleCharge, GetChargeSquareRatio, 
0044 //          CorrectionsAlongStep needed for ions(V.Ivanchenko)
0045 
0046 //
0047 // Class Description:
0048 //
0049 // Implementation of energy loss and delta-electron production
0050 // by heavy slow charged particles using ICRU'49, NIST, and ICRU90 
0051 // evaluated data for alpha and protons
0052 
0053 // -------------------------------------------------------------------
0054 //
0055 
0056 #ifndef G4BraggIonModel_h
0057 #define G4BraggIonModel_h 1
0058 
0059 #include "G4BraggModel.hh"
0060 
0061 class G4ASTARStopping;
0062 
0063 class G4BraggIonModel : public G4BraggModel
0064 {
0065 
0066 public:
0067 
0068   explicit G4BraggIonModel(const G4ParticleDefinition* p = nullptr,
0069                const G4String& nam = "BraggIon");
0070 
0071   ~G4BraggIonModel() override;
0072 
0073   void Initialise(const G4ParticleDefinition*, 
0074           const G4DataVector&) override;
0075 
0076   G4double ComputeCrossSectionPerAtom(
0077                  const G4ParticleDefinition*,
0078                  G4double kineticEnergy,
0079                  G4double Z, G4double A,
0080                  G4double cutEnergy,
0081                  G4double maxEnergy) override;
0082 
0083   G4double CrossSectionPerVolume(const G4Material*,
0084                  const G4ParticleDefinition*,
0085                  G4double kineticEnergy,
0086                  G4double cutEnergy,
0087                  G4double maxEnergy) override;
0088 
0089   G4double ComputeDEDXPerVolume(const G4Material*,
0090                                 const G4ParticleDefinition*,
0091                                 G4double kineticEnergy,
0092                                 G4double cutEnergy) override;
0093 
0094   // Compute ion charge not applied to alpha
0095   G4double GetChargeSquareRatio(const G4ParticleDefinition*,
0096                 const G4Material*,
0097                 G4double kineticEnergy) override;
0098 
0099   // add correction to energy loss and ompute non-ionizing energy loss
0100   void CorrectionsAlongStep(const G4MaterialCutsCouple*,
0101                 const G4DynamicParticle*,
0102                 const G4double& length,
0103                 G4double& eloss) override;
0104 
0105   // hide assignment operator
0106   G4BraggIonModel & operator=(const  G4BraggIonModel &right) = delete;
0107   G4BraggIonModel(const  G4BraggIonModel&) = delete;
0108 
0109 private:
0110 
0111   G4double HeEffChargeSquare(const G4double z, 
0112                              const G4double kinEnergyInMeV) const;
0113 
0114   G4int HasMaterialForHe(const G4Material* material) const;
0115 
0116   G4double HeStoppingPower(const G4double kinEnergy) const;
0117 
0118   G4double HeElectronicStoppingPower(const G4int z, const G4double kinEnergy) const;
0119 
0120   G4double HeDEDX(const G4Material* material, const G4double kinEnergy);
0121 
0122   static G4ASTARStopping* fASTAR;
0123 
0124   G4double heChargeSquare = 4.0;
0125   G4double HeMass;
0126   G4double massFactor;
0127 
0128   G4int iASTAR = -1;    // index in ASTAR
0129   G4bool isAlpha = false;
0130   G4bool isFirstAlpha = false;
0131 };
0132 
0133 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
0134 
0135 #endif