ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4LENDUsedTarget.hh
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file G4LENDUsedTarget.hh
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //
26 #ifndef G4LENDUsedTarget_h
27 #define G4LENDUsedTarget_h 1
28 
29 // Class Description
30 // Container of LEND (Low Energy Nuclear Data) target (nucleus)
31 // LEND is Geant4 interface for GIDI (General Interaction Data Interface)
32 // which gives a discription of nuclear and atomic reactions, such as
33 // Binary collision cross sections
34 // Particle number multiplicity distributions of reaction products
35 // Energy and angular distributions of reaction products
36 // Derived calculational constants
37 // GIDI is developped at Lawrence Livermore National Laboratory
38 // Class Description - End
39 
40 // 071025 First implementation done by T. Koi (SLAC/SCCS)
41 // 101118 Name modifications for release T. Koi (SLAC/PPA)
42 
43 #include "G4LENDHeader.hh"
44 #include "G4ParticleDefinition.hh"
45 
47 {
48 
49  public:
50 
51  G4LENDUsedTarget( G4ParticleDefinition* pd , G4String Evaluation , G4int iZ , G4int iA , G4int iM = 0 )
52  : allow_nat ( false )
53  , allow_anything ( false )
54  , min_Z ( 0 )
55  , max_Z ( 113 )
56  , min_A ( 1 )
57  , max_A ( 278 )
58  , min_M ( 0 )
59  , max_M ( 10 )
60  {
61 
62  proj = pd;
63 
64  wanted_Z = iZ;
65  wanted_A = iA;
66  wanted_M = iM;
67  wanted_Evaluation = Evaluation;
68 
69  actual_Z = -1;
70  actual_A = -1;
71  actual_M = -1;
72  actual_Evaluation = "na";
73 
74  searchTarget();
75  }
76 
78 
79  void AllowNat()
80  {
81  allow_nat = true;
82  searchTarget();
83  };
84 
85  void AllowAny()
86  {
87  allow_anything = true;
88  searchTarget();
89  };
90 
91  G4int GetWantedZ(){ return wanted_Z; };
92  G4int GetWantedA(){ return wanted_A; };
93  G4int GetWantedM(){ return wanted_M; };
94 
95  G4int GetActualZ(){ return actual_Z; };
96  G4int GetActualA(){ return actual_A; };
97  G4int GetActualM(){ return actual_M; };
98 
101 
103 
104  private:
105 
106  void searchTarget();
107 
109 
113 
115 
118 
120 
125 
132 };
133 
134 #endif