Back to home page

EIC code displayed by LXR

 
 

    


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

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