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 //
0028 // 080417 Add IsZAApplicable method (return false) by T. Koi
0029 // 080428 Add bool onFlightDB by T. Koi
0030 // 091118 Add Ignore and Enable On Flight Doppler Broadening methods by T. Koi
0031 //
0032 // P. Arce, June-2014 Conversion neutron_hp to particle_hp
0033 //
0034 #ifndef G4ParticleHPElasticData_h
0035 #define G4ParticleHPElasticData_h 1
0036 
0037 // Class Description
0038 // Cross-section data set for a high precision (based on evaluated data
0039 // libraries) description of neutron elastic scattering below 20 MeV;
0040 // To be used in your physics list in case you need this physics.
0041 // In this case you want to register an object of this class with
0042 // the corresponding process.
0043 // Class Description - End
0044 
0045 #include "G4DynamicParticle.hh"
0046 #include "G4Element.hh"
0047 #include "G4ParticleDefinition.hh"
0048 #include "G4PhysicsTable.hh"
0049 #include "G4VCrossSectionDataSet.hh"
0050 
0051 class G4ParticleHPElasticData : public G4VCrossSectionDataSet
0052 {
0053   public:
0054     G4ParticleHPElasticData();
0055 
0056     ~G4ParticleHPElasticData() override;
0057 
0058     G4bool IsIsoApplicable(const G4DynamicParticle*, G4int /*Z*/, G4int /*A*/,
0059                            const G4Element* /*elm*/, const G4Material* /*mat*/) override;
0060 
0061     G4double GetIsoCrossSection(const G4DynamicParticle*, G4int /*Z*/, G4int /*A*/,
0062                                 const G4Isotope* /*iso*/, const G4Element* /*elm*/,
0063                                 const G4Material* /*mat*/) override;
0064 
0065     // G4bool IsApplicable(const G4DynamicParticle*, const G4Element*);
0066 
0067   public:
0068     // G4bool IsZAApplicable( const G4DynamicParticle* , G4double /*ZZ*/, G4double /*AA*/)
0069     //{ return false;}
0070 
0071     G4double GetCrossSection(const G4DynamicParticle*, const G4Element*, G4double aT);
0072 
0073     void BuildPhysicsTable(const G4ParticleDefinition&) override;
0074     void DumpPhysicsTable(const G4ParticleDefinition&) override;
0075 
0076     void SetVerboseLevel(G4int) override;
0077     G4int GetVerboseLevel() const;
0078     void CrossSectionDescription(std::ostream&) const override;
0079 
0080   private:
0081     G4PhysicsTable* theCrossSections;
0082     G4bool instanceOfWorker;
0083 
0084     G4double ke_cache;
0085     G4double xs_cache;
0086     const G4Element* element_cache;
0087     const G4Material* material_cache;
0088 };
0089 
0090 #endif