Geant4  10.02
G4NuclearDecayChannel.hh
Go to the documentation of this file.
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 
27 #ifndef G4NuclearDecayChannel_h
28 #define G4NuclearDecayChannel_h 1
29 
30 #include "globals.hh"
31 #include "G4VDecayChannel.hh"
32 #include "G4Ions.hh"
33 #include "G4IonTable.hh"
34 #include "G4DynamicParticle.hh"
35 #include "G4ParticleTable.hh"
38 #include "Randomize.hh"
39 
40 
42 {
43  // class description
44  //
45  // G4NuclearDecayChannel is a derived class from G4GeneralPhaseSpaceDecay,
46  // itself a derived class from G4VDecayChannel. It provides the required
47  // decay channels for all nuclear decay modes and through the DecayIt()
48  // member function returns the decay products.
49  //
50  // class description - end
51 
52  public: // with description
53 
55  : G4GeneralPhaseSpaceDecay(Verbose), decayMode(theMode),Qtransition(0) {;}
56  // default constructor
57 
58  // Decay channel ctor with one decay product
59  G4NuclearDecayChannel(const G4RadioactiveDecayMode& theMode, G4int Verbose,
60  const G4ParticleDefinition* theParentNucleus,
61  const G4double theBR,
62  const G4double theQtransition,
63  const G4int A, const G4int Z,
64  const G4double theDaughterExcitation);
65 
66  G4NuclearDecayChannel(const G4RadioactiveDecayMode& theMode, G4int Verbose,
67  const G4ParticleDefinition* theParentNucleus,
68  G4double theBR,
69  const G4double theQtransition,
70  const G4int A, const G4int Z,
71  const G4double theDaughterExcitation,
72  const G4String theDaughterName1);
73  // constructor decay channel with two decay products
74 
75  G4NuclearDecayChannel(const G4RadioactiveDecayMode& theMode, G4int Verbose,
76  const G4ParticleDefinition* theParentNucleus,
77  G4double theBR, G4double theFFN,
78  G4bool betaS, G4RandGeneral* randBeta,
79  const G4double theQtransition,
80  const G4int A, const G4int Z,
81  const G4double theDaughterExcitation,
82  const G4String theDaughterName1,
83  const G4String theDaughterName2);
84  // constructor decay channel with three decay product
85 
86  virtual ~G4NuclearDecayChannel();
87 
88  // Returns the decay products
90 
91  // Set the half-life threshold for isomer production
93 
94  // Enable/disable ICM
95  void SetICM(G4bool icm) {applyICM = icm;}
96 
97  // Enable/disable ARM
98  void SetARM (G4bool arm) {applyARM = arm;}
99 
101  // Returns the decay mode
102 
104  // Returns the excitaion energy of the daughter nuclide
105 
107  // Returns the daughter nuclide.
108 
109  private:
110  G4NuclearDecayChannel(const G4String& theName, const G4String& theParentName,
111  G4double theBR, G4int theNumberOfDaughters,
112  const G4String theDaughterName1,
113  const G4String theDaughterName2,
114  const G4String theDaughterName3,
115  const G4String theDaughterName4);
116 
117  G4NuclearDecayChannel(const G4String& theParentName,
118  G4double theBR, G4int theNumberOfDaughters,
119  const G4String& theDaughterName1,
120  const G4String& theDaughterName2 = "",
121  const G4String& theDaughterName3 = "");
122 
123  G4NuclearDecayChannel(const G4String& theParentName,
124  G4double theParentMass, G4double theBR,
125  G4int theNumberOfDaughters,
126  const G4String& theDaughterName1,
127  const G4String& theDaughterName2 = "",
128  const G4String& theDaughterName3 = "");
129 
130  void FillDaughterNucleus(G4int index, G4int A, G4int Z,
131  const G4double theDaughterExcitation);
132 
134  // to replace the ThreeBodyDecayIt() to generate the correct beta spectrum
135 
136  // Add copy and assignment prototypes even though no dynamic allocation
137  // of class members
140 
141  protected:
142  //Data members marked with G4ThreadLocal are not invariant among threads
143  //Need to make them TLS
145  static const G4double pTolerance;
146  static const G4double levelTolerance;
156  G4RandGeneral* RandomEnergy; // not dynamically allocated
157 };
158 #endif
159 
160 
const G4RadioactiveDecayMode decayMode
#define G4ThreadLocal
Definition: tls.hh:89
int G4int
Definition: G4Types.hh:78
double A(double temperature)
bool G4bool
Definition: G4Types.hh:79
#define G4RandGeneral
Definition: Randomize.hh:94
G4RadioactiveDecayMode
G4ParticleDefinition * GetDaughterNucleus()
G4NuclearDecayChannel(const G4RadioactiveDecayMode &theMode, G4int Verbose)
G4RadioactiveDecayMode GetDecayMode()
G4DecayProducts * BetaDecayIt()
G4NuclearDecayChannel & operator=(const G4NuclearDecayChannel &right)
G4ParticleDefinition * daughterNucleus
static G4ThreadLocal G4DynamicParticle * dynamicDaughter
double G4double
Definition: G4Types.hh:76
static const G4double levelTolerance
void SetHLThreshold(G4double hl)
G4DecayProducts * DecayIt(G4double)
static const G4double pTolerance
void FillDaughterNucleus(G4int index, G4int A, G4int Z, const G4double theDaughterExcitation)