Back to home page

EIC code displayed by LXR

 
 

    


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

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 // Hadronic Process: Very Low Energy Neutron X-Sections
0028 // original by H.P. Wellisch, TRIUMF, 14-Feb-97
0029 // Builds and has the Cross-section data for one material.
0030 //
0031 // 080520 Delete unnecessary dependencies by T. Koi
0032 
0033 // P. Arce, June-2014 Conversion neutron_hp to particle_hp
0034 // V. Ivanchenko July-2023 converted back capture
0035 //
0036 #ifndef G4ParticleHPElementData_h
0037 #define G4ParticleHPElementData_h 1
0038 
0039 #include "G4Material.hh"
0040 #include "G4Neutron.hh"
0041 #include "G4Nucleus.hh"
0042 #include "G4NeutronHPCaptureData.hh"
0043 #include "G4ParticleHPElasticData.hh"
0044 #include "G4ParticleHPFissionData.hh"
0045 #include "G4ParticleHPInelasticData.hh"
0046 #include "G4ParticleHPIsoData.hh"
0047 #include "G4ParticleHPVector.hh"
0048 #include "G4ReactionProduct.hh"
0049 #include "globals.hh"
0050 
0051 class G4ParticleHPElementData
0052 {
0053   public:
0054     G4ParticleHPElementData();
0055 
0056     ~G4ParticleHPElementData();
0057 
0058     void Init(G4Element* theElement, G4ParticleDefinition* projectile,
0059               const char* dataDirVariable);
0060 
0061     void UpdateData(G4int A, G4int Z, G4int index, G4double abundance,
0062                     G4ParticleDefinition* projectile,
0063                     const char* dataDirVariable)
0064     {
0065       UpdateData(A, Z, 0, index, abundance, projectile, dataDirVariable);
0066     };
0067 
0068     void UpdateData(G4int A, G4int Z, G4int M, G4int index, G4double abundance,
0069                     G4ParticleDefinition* projectile,
0070                     const char* dataDirVariable);
0071 
0072     void Harmonise(G4ParticleHPVector*& theStore, G4ParticleHPVector* theNew);
0073 
0074     inline G4ParticleHPVector* GetData(G4ParticleHPFissionData*) { return theFissionData; }
0075     inline G4ParticleHPVector* GetData(G4NeutronHPCaptureData*) { return theCaptureData; }
0076     inline G4ParticleHPVector* GetData(G4ParticleHPElasticData*) { return theElasticData; }
0077     inline G4ParticleHPVector* GetData(G4ParticleHPInelasticData*) { return theInelasticData; }
0078 
0079     G4ParticleHPVector* MakePhysicsVector(G4Element* theElement,
0080                                           G4ParticleDefinition* projectile,
0081                                           G4ParticleHPFissionData* theSet,
0082                                           char* dataDirVariable);
0083 
0084     G4ParticleHPVector* MakePhysicsVector(G4Element* theElement,
0085                                           G4ParticleDefinition* projectile,
0086                                           G4NeutronHPCaptureData* theSet,
0087                                           char* dataDirVariable);
0088 
0089     G4ParticleHPVector* MakePhysicsVector(G4Element* theElement,
0090                                           G4ParticleDefinition* projectile,
0091                                           G4ParticleHPElasticData* theSet,
0092                                           char* dataDirVariable);
0093 
0094     G4ParticleHPVector* MakePhysicsVector(G4Element* theElement,
0095                                           G4ParticleDefinition* projectile,
0096                                           G4ParticleHPInelasticData* theSet,
0097                                           char* dataDirVariable);
0098 
0099   private:
0100     G4ParticleHPVector* theFissionData;
0101     G4ParticleHPVector* theCaptureData;
0102     G4ParticleHPVector* theElasticData;
0103     G4ParticleHPVector* theInelasticData;
0104     G4double precision;
0105 
0106     G4ParticleHPVector* theBuffer;
0107     G4ParticleHPIsoData* theIsotopeWiseData;
0108 
0109     G4String filename;
0110 };
0111 
0112 #endif