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 G4LENDUsedTarget_h
0027 #define G4LENDUsedTarget_h 1
0028 
0029 // Class Description
0030 // Container of LEND (Low Energy Nuclear Data) target (nucleus) 
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 // GIDI 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 "G4ParticleDefinition.hh"
0045 
0046 class G4LENDUsedTarget 
0047 {
0048 
0049    public:
0050 
0051       G4LENDUsedTarget( G4ParticleDefinition* pd , G4String Evaluation , G4int iZ , G4int iA , G4int iM = 0 )
0052       : allow_nat ( false ) 
0053       , allow_anything ( false ) 
0054       , min_Z ( 0 )
0055       , max_Z ( 113 ) 
0056       , min_A ( 1 )
0057       , max_A ( 278 )
0058       , min_M ( 0 )
0059       , max_M ( 10 )
0060       {
0061 
0062          proj = pd;
0063 
0064          wanted_Z = iZ;
0065          wanted_A = iA;
0066          wanted_M = iM;
0067          wanted_Evaluation = Evaluation;
0068 
0069          actual_Z = -1;
0070          actual_A = -1;
0071          actual_M = -1;
0072          actual_Evaluation = "na";
0073 
0074          searchTarget();
0075       }
0076 
0077       ~G4LENDUsedTarget(){;};
0078 
0079       void AllowNat()
0080       {
0081          allow_nat = true;
0082          searchTarget();
0083       }; 
0084 
0085       void AllowAny()
0086       {
0087          allow_anything = true;
0088          searchTarget();
0089       }; 
0090 
0091       G4int GetWantedZ(){ return wanted_Z; };
0092       G4int GetWantedA(){ return wanted_A; };
0093       G4int GetWantedM(){ return wanted_M; };
0094 
0095       G4int GetActualZ(){ return actual_Z; };
0096       G4int GetActualA(){ return actual_A; };
0097       G4int GetActualM(){ return actual_M; };
0098 
0099       G4String GetWantedEvaluation(){ return wanted_Evaluation; };
0100       G4String GetActualEvaluation(){ return actual_Evaluation; };
0101 
0102       G4GIDI_target* GetTarget(){ return target; };
0103 
0104    private:
0105 
0106       void searchTarget();
0107 
0108       G4ParticleDefinition* proj;
0109 
0110       G4int wanted_Z;
0111       G4int wanted_A;
0112       G4int wanted_M;
0113 
0114       G4String wanted_Evaluation;
0115 
0116       G4bool allow_nat; 
0117       G4bool allow_anything; 
0118 
0119       G4GIDI_target* target;
0120       
0121       G4int actual_Z;
0122       G4int actual_A;
0123       G4int actual_M;
0124       G4String actual_Evaluation;
0125 
0126       G4int min_Z;
0127       G4int max_Z;
0128       G4int min_A;
0129       G4int max_A;
0130       G4int min_M;
0131       G4int max_M;
0132 };
0133 
0134 #endif