Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
G4Radioactivation.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 G4Radioactivation_h
27 #define G4Radioactivation_h 1
28 
30 
31 #include <vector>
32 #include <map>
34 
35 #include "G4ios.hh"
36 #include "globals.hh"
39 
40 #include "G4NucleusLimits.hh"
43 #include "G4RadioactivityTable.hh"
44 #include "G4ThreeVector.hh"
45 #include "G4Threading.hh"
46 
47 class G4Fragment;
49 
50 typedef std::vector<G4RadioactiveDecayChainsFromParent> G4RadioactiveDecayParentChainTable;
51 typedef std::vector<G4RadioactiveDecayRatesToDaughter> G4RadioactiveDecayRates;
52 typedef std::map<G4String, G4DecayTable*> DecayTableMap;
53 
54 
56 {
57  public: // with description
58 
59  G4Radioactivation(const G4String& processName="Radioactivation");
61 
62  virtual void ProcessDescription(std::ostream& outFile) const;
63 
64  // Set the decay biasing scheme using the data in "filename"
65  void SetDecayBias(G4String filename);
66 
67  // Set the half-life threshold for isomer production
69 
70  void SetSourceTimeProfile(G4String filename);
71  // Set source exposure function using histograms in "filename"
72 
74  // Returns true if the coefficient and decay time table for all the
75  // descendants of the specified isotope are ready.
76  // used in VR decay mode only
77 
79  // Calculates the coefficient and decay time table for all the descendents
80  // of the specified isotope. Adds the calculated table to the private data
81  // member "theParentChainTable".
82  // used in VR decay mode only
83 
85  // Used to retrieve the coefficient and decay time table for all the
86  // descendants of the specified isotope from "theParentChainTable"
87  // and place it in "chainsFromParent".
88  // used in VR decay mode only
89 
90  void SetDecayRate(G4int,G4int,G4double, G4int, std::vector<G4double>,
91  std::vector<G4double>);
92  // Sets "theDecayRate" with data supplied in the arguements.
93  // used in VR decay mode only
94 
95  std::vector<G4RadioactivityTable*> GetTheRadioactivityTables()
96  {return theRadioactivityTables;}
97  // Return vector of G4Radioactivity map - should be used in VR mode only
98 
99 
101  // Sets the VerboseLevel which controls duggering display
102 
103  inline G4int GetVerboseLevel() const {return verboseLevel;}
104  // Returns the VerboseLevel which controls level of debugging output
105 
106  // Sets whether branching ration bias scheme applies.
107  inline void SetBRBias(G4bool r) {
108  BRBias = r;
109  }
110 
111  // Sets the number of times a nucleus will decay when biased
112  inline void SetSplitNuclei(G4int r) {
113  NSplit = r;
114  }
115 
116  // Returns the nuclear splitting number
117  inline G4int GetSplitNuclei () {return NSplit;}
118 
119  G4VParticleChange* DecayIt(const G4Track& theTrack,
120  const G4Step& theStep);
121 
122  protected:
123 
126  G4int GetDecayTimeBin(const G4double aDecayTime);
127 
128  //Add gamma,Xray,conversion,and auger electrons for bias mode
131  G4double currenTime,
132  std::vector<double>& weights_v,
133  std::vector<double>& times_v,
134  std::vector<G4DynamicParticle*>& secondaries_v);
135 
137 
138  private:
139 
142 
144 
151 
156 
157  // for the radioactivity tables
158  std::vector<G4RadioactivityTable*> theRadioactivityTables;
160 
161  // Remainder of life time at rest
162 // G4double fRemainderLifeTime;
164 
165 };
166 
167 #endif
168 
G4int GetDecayTimeBin(const G4double aDecayTime)
G4double SProfile[100]
void SetVerboseLevel(G4int value)
void CalculateChainsFromParent(const G4ParticleDefinition &)
void GetChainsFromParent(const G4ParticleDefinition &)
void SetBRBias(G4bool r)
void SetDecayRate(G4int, G4int, G4double, G4int, std::vector< G4double >, std::vector< G4double >)
void SetSourceTimeProfile(G4String filename)
std::vector< G4RadioactiveDecayChainsFromParent > G4RadioactiveDecayParentChainTable
G4RadioactiveDecayParentChainTable theParentChainTable
double G4double
Definition: G4Types.hh:76
bool G4bool
Definition: G4Types.hh:79
G4VParticleChange * DecayIt(const G4Track &theTrack, const G4Step &theStep)
std::vector< G4RadioactiveDecayRatesToDaughter > G4RadioactiveDecayRates
const XML_Char int const XML_Char * value
Definition: expat.h:331
void SetHLThreshold(G4double hl)
G4Radioactivation(const G4String &processName="Radioactivation")
G4double ConvolveSourceTimeProfile(const G4double, const G4double)
Definition: G4Step.hh:76
G4RadioactiveDecayChainsFromParent chainsFromParent
G4int GetVerboseLevel() const
G4RadioactiveDecayRates theDecayRateVector
double weight
Definition: plottest35.C:25
int G4int
Definition: G4Types.hh:78
std::vector< G4RadioactivityTable * > theRadioactivityTables
void SetDecayBias(G4String filename)
G4double DProfile[100]
G4bool IsRateTableReady(const G4ParticleDefinition &)
void SetSplitNuclei(G4int r)
std::map< G4String, G4DecayTable * > DecayTableMap
std::vector< G4RadioactivityTable * > GetTheRadioactivityTables()
void AddDeexcitationSpectrumForBiasMode(G4ParticleDefinition *apartDef, G4double weight, G4double currenTime, std::vector< double > &weights_v, std::vector< double > &times_v, std::vector< G4DynamicParticle * > &secondaries_v)
G4RadioactivationMessenger * theRadioactivationMessenger
G4RadioactiveDecayRatesToDaughter ratesToDaughter
virtual void ProcessDescription(std::ostream &outFile) const