Geant4  10.00.p03
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  G4NuclearDecayChannel(const G4RadioactiveDecayMode& theMode, G4int Verbose,
59  const G4ParticleDefinition* theParentNucleus,
60  G4double theBR, G4double theQtransition, G4int A,
61  G4int Z, G4double theDaughterExcitation);
62  // constructor decay channel with one decay product
63 
64  G4NuclearDecayChannel(const G4RadioactiveDecayMode& theMode, G4int Verbose,
65  const G4ParticleDefinition* theParentNucleus,
66  G4double theBR, G4double theQtransition, G4int A,
67  G4int Z, G4double theDaughterExcitation,
68  const G4String theDaughterName1);
69  // constructor decay channel with two decay products
70 
71  G4NuclearDecayChannel(const G4RadioactiveDecayMode& theMode, G4int Verbose,
72  const G4ParticleDefinition* theParentNucleus,
73  G4double theBR, G4double theFFN,
74  G4bool betaS, G4RandGeneral* randBeta,
75  G4double theQtransition, G4int A, G4int Z,
76  G4double theDaughterExcitation,
77  const G4String theDaughterName1,
78  const G4String theDaughterName2);
79  // constructor decay channel with three decay product
80 
81  virtual ~G4NuclearDecayChannel();
82 
83  // Returns the decay products
85 
86  // Set the half-life threshold for isomer production
88 
89  // Enable/disable ICM
90  void SetICM(G4bool icm) {applyICM = icm;}
91 
92  // Enable/disable ARM
93  void SetARM (G4bool arm) {applyARM = arm;}
94 
96  // Returns the decay mode
97 
99  // Returns the excitaion energy of the daughter nuclide
100 
102  // Returns the daughter nuclide.
103 
104  private:
105  G4NuclearDecayChannel(const G4String& theName, const G4String& theParentName,
106  G4double theBR, G4int theNumberOfDaughters,
107  const G4String theDaughterName1,
108  const G4String theDaughterName2,
109  const G4String theDaughterName3,
110  const G4String theDaughterName4);
111 
112  G4NuclearDecayChannel(const G4String& theParentName,
113  G4double theBR, G4int theNumberOfDaughters,
114  const G4String& theDaughterName1,
115  const G4String& theDaughterName2 = "",
116  const G4String& theDaughterName3 = "");
117 
118  G4NuclearDecayChannel(const G4String& theParentName,
119  G4double theParentMass, G4double theBR,
120  G4int theNumberOfDaughters,
121  const G4String& theDaughterName1,
122  const G4String& theDaughterName2 = "",
123  const G4String& theDaughterName3 = "");
124 
125  void FillDaughterNucleus(G4int index, G4int A, G4int Z,
126  G4double theDaughterExcitation);
127 
129  // to replace the ThreeBodyDecayIt() to generate the correct beta spectrum
130 
131  // Add copy and assignment prototypes even though no dynamic allocation
132  // of class members
135 
136  protected:
137  //Data members marked with G4ThreadLocal are not invariant among threads
138  //Need to make them TLS
140  static const G4double pTolerance;
141  static const G4double levelTolerance;
151  G4RandGeneral* RandomEnergy; // not dynamically allocated
152 };
153 #endif
154 
155 
const G4RadioactiveDecayMode decayMode
#define G4ThreadLocal
Definition: tls.hh:52
int G4int
Definition: G4Types.hh:78
void FillDaughterNucleus(G4int index, G4int A, G4int Z, G4double theDaughterExcitation)
bool G4bool
Definition: G4Types.hh:79
#define G4RandGeneral
Definition: Randomize.hh:84
G4RadioactiveDecayMode
static const G4double A[nN]
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