File indexing completed on 2025-09-17 08:58:49
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026 #ifndef G4LENDUsedTarget_h
0027 #define G4LENDUsedTarget_h 1
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043 #include "G4LENDHeader.hh"
0044 #include "G4ParticleDefinition.hh"
0045
0046 class G4LENDUsedTarget
0047 {
0048
0049 public:
0050
0051 G4LENDUsedTarget( G4ParticleDefinition* pd , const 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() const { return wanted_Z; }
0092 G4int GetWantedA() const { return wanted_A; }
0093 G4int GetWantedM() const { return wanted_M; }
0094
0095 G4int GetActualZ() const { return actual_Z; }
0096 G4int GetActualA() const { return actual_A; }
0097 G4int GetActualM() const { return actual_M; }
0098
0099 const G4String& GetWantedEvaluation() const { return wanted_Evaluation; }
0100 const G4String& GetActualEvaluation() const { return actual_Evaluation; }
0101
0102 G4GIDI_target* GetTarget() const { 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