Back to home page

EIC code displayed by LXR

 
 

    


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

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 #ifndef G4LENDModel_h
0027 #define G4LENDModel_h 1
0028 
0029 // Class Description
0030 // Final state production model for a LEND (Low Energy Nuclear Data) 
0031 // LEND is Geant4 interface for GIDI (General Interaction Data Interface) 
0032 // which gives a discription of nuclear and atomic reactions, such as
0033 //    Binary collision cross sections
0034 //    Particle number multiplicity distributions of reaction products
0035 //    Energy and angular distributions of reaction products
0036 //    Derived calculational constants
0037 // LEND is developped at Lawrence Livermore National Laboratory
0038 // Class Description - End
0039 
0040 // 071025 First implementation done by T. Koi (SLAC/SCCS)
0041 // 101118 Name modifications for release T. Koi (SLAC/PPA)
0042 
0043 #include "G4LENDHeader.hh"
0044 #include "G4LENDManager.hh"
0045 #include "G4LENDUsedTarget.hh"
0046 #include "G4HadronicInteraction.hh"
0047 #include "globals.hh"
0048 
0049 extern "C" double MyRNG(void*); 
0050 
0051 class G4LENDModel : public G4HadronicInteraction
0052 {
0053 
0054    public: 
0055   
0056       //G4LENDModel();
0057       G4LENDModel( G4String name="LENDModel" );
0058       ~G4LENDModel();
0059   
0060       virtual G4HadFinalState * ApplyYourself( const G4HadProjectile& aTrack, G4Nucleus& aTargetNucleus );
0061 
0062       void ChangeDefaultEvaluation( G4String name ){ default_evaluation = name; recreate_used_target_map(); };
0063       void AllowNaturalAbundanceTarget(){ allow_nat = true; recreate_used_target_map(); };
0064       void AllowAnyCandidateTarget(){ allow_any = true; recreate_used_target_map(); };
0065       //Same argument to the CrossSectionDataSet 
0066       void BuildPhysicsTable( const G4ParticleDefinition& ){ recreate_used_target_map(); };
0067       void DumpLENDTargetInfo( G4bool force = false );
0068 
0069    private:
0070 
0071       G4String default_evaluation;
0072       G4bool allow_nat;
0073       G4bool allow_any;
0074 
0075    protected:
0076 
0077       void create_used_target_map();
0078       void recreate_used_target_map();
0079       G4GIDI_target* get_target_from_map( G4int nuclear_code );
0080 
0081       G4HadFinalState* returnUnchanged( const G4HadProjectile& aTrack, G4HadFinalState* theResult );
0082 
0083       G4ParticleDefinition* proj;
0084       G4LENDManager* lend_manager;
0085       std::map< G4int , G4LENDUsedTarget* > usedTarget_map;
0086 
0087       G4int secID;  // Creator model ID for the secondaries created by this model
0088 };
0089 
0090 #endif