| 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 G4NuclearDecayChannel_h
|
|---|
| 27 | #define G4NuclearDecayChannel_h 1
|
|---|
| 28 |
|
|---|
| 29 | #include "globals.hh"
|
|---|
| 30 | #include "G4VDecayChannel.hh"
|
|---|
| 31 | #include "G4Ions.hh"
|
|---|
| 32 | #include "G4IonTable.hh"
|
|---|
| 33 | #include "G4DynamicParticle.hh"
|
|---|
| 34 | #include "G4ParticleTable.hh"
|
|---|
| 35 | #include "G4GeneralPhaseSpaceDecay.hh"
|
|---|
| 36 | #include "G4RadioactiveDecayMode.hh"
|
|---|
| 37 |
|
|---|
| 38 | #include <CLHEP/Random/RandGeneral.h>
|
|---|
| 39 |
|
|---|
| 40 | ////////////////////////////////////////////////////////////////////////////////
|
|---|
| 41 | //
|
|---|
| 42 | class G4NuclearDecayChannel : public G4GeneralPhaseSpaceDecay
|
|---|
| 43 | {
|
|---|
| 44 | // class description
|
|---|
| 45 | //
|
|---|
| 46 | // G4NuclearDecayChannel is a derived class from G4GeneralPhaseSpaceDecay,
|
|---|
| 47 | // itself a derived class from G4VDecayChannel. It provides the required
|
|---|
| 48 | // decay channels for all nuclear decay modes and through the DecayIt()
|
|---|
| 49 | // member function returns the decay products.
|
|---|
| 50 | //
|
|---|
| 51 | // class description - end
|
|---|
| 52 |
|
|---|
| 53 | public: // with description
|
|---|
| 54 |
|
|---|
| 55 | G4NuclearDecayChannel (const G4RadioactiveDecayMode &, G4int Verbose) :
|
|---|
| 56 | G4GeneralPhaseSpaceDecay (Verbose) {;}
|
|---|
| 57 | // default constructor
|
|---|
| 58 | //
|
|---|
| 59 | G4NuclearDecayChannel (const G4RadioactiveDecayMode &theMode, G4int Verbose,
|
|---|
| 60 | const G4ParticleDefinition *theParentNucleus,
|
|---|
| 61 | G4double theBR, G4double theQtransition, G4int A,
|
|---|
| 62 | G4int Z, G4double theDaughterExcitation);
|
|---|
| 63 | // constructor decay channel with one decay product
|
|---|
| 64 | //
|
|---|
| 65 | G4NuclearDecayChannel (const G4RadioactiveDecayMode &theMode, G4int Verbose,
|
|---|
| 66 | const G4ParticleDefinition *theParentNucleus,
|
|---|
| 67 | G4double theBR, G4double theQtransition, G4int A,
|
|---|
| 68 | G4int Z, G4double theDaughterExcitation,
|
|---|
| 69 | const G4String theDaughterName1);
|
|---|
| 70 | // constructor decay channel with two decay products
|
|---|
| 71 | //
|
|---|
| 72 | G4NuclearDecayChannel (const G4RadioactiveDecayMode &theMode, G4int Verbose,
|
|---|
| 73 | const G4ParticleDefinition *theParentNucleus,
|
|---|
| 74 | G4double theBR, G4double theFFN,
|
|---|
| 75 | G4bool betaS, CLHEP::RandGeneral* randBeta,
|
|---|
| 76 | G4double theQtransition, G4int A, G4int Z,
|
|---|
| 77 | G4double theDaughterExcitation,
|
|---|
| 78 | const G4String theDaughterName1,
|
|---|
| 79 | const G4String theDaughterName2);
|
|---|
| 80 | // constructor decay channel with three decay product
|
|---|
| 81 | //
|
|---|
| 82 |
|
|---|
| 83 | ~G4NuclearDecayChannel (){;}
|
|---|
| 84 |
|
|---|
| 85 | // destructor
|
|---|
| 86 | //
|
|---|
| 87 | G4DecayProducts *DecayIt (G4double theParentMass);
|
|---|
| 88 | // Returns the decay products
|
|---|
| 89 | //
|
|---|
| 90 | inline G4RadioactiveDecayMode GetDecayMode () {return decayMode;}
|
|---|
| 91 | // Returns the decay mode
|
|---|
| 92 | //
|
|---|
| 93 | inline G4double GetDaughterExcitation () {return daughterExcitation;}
|
|---|
| 94 | // Returns the excitaion energy of the daughter nuclide
|
|---|
| 95 | //
|
|---|
| 96 | inline G4ParticleDefinition* GetDaughterNucleus () {return daughterNucleus;}
|
|---|
| 97 | // Returns the daughter nuclide.
|
|---|
| 98 | //
|
|---|
| 99 | private:
|
|---|
| 100 | G4NuclearDecayChannel (const G4String &theName, const G4String &theParentName,
|
|---|
| 101 | G4double theBR, G4int theNumberOfDaughters,
|
|---|
| 102 | const G4String theDaughterName1,
|
|---|
| 103 | const G4String theDaughterName2,
|
|---|
| 104 | const G4String theDaughterName3,
|
|---|
| 105 | const G4String theDaughterName4);
|
|---|
| 106 |
|
|---|
| 107 | G4NuclearDecayChannel (const G4String &theParentName,
|
|---|
| 108 | G4double theBR, G4int theNumberOfDaughters,
|
|---|
| 109 | const G4String& theDaughterName1,
|
|---|
| 110 | const G4String& theDaughterName2 = "",
|
|---|
| 111 | const G4String& theDaughterName3 = "");
|
|---|
| 112 |
|
|---|
| 113 | G4NuclearDecayChannel (const G4String &theParentName,
|
|---|
| 114 | G4double theParentMass, G4double theBR,
|
|---|
| 115 | G4int theNumberOfDaughters,
|
|---|
| 116 | const G4String& theDaughterName1,
|
|---|
| 117 | const G4String& theDaughterName2 = "",
|
|---|
| 118 | const G4String& theDaughterName3 = "");
|
|---|
| 119 |
|
|---|
| 120 | void FillDaughterNucleus (G4int index, G4int A, G4int Z,
|
|---|
| 121 | G4double theDaughterExcitation);
|
|---|
| 122 |
|
|---|
| 123 | G4DecayProducts* BetaDecayIt();
|
|---|
| 124 | // to replace the ThreeBodyDecayIt() to generate the correct beta spectrum
|
|---|
| 125 |
|
|---|
| 126 | protected:
|
|---|
| 127 | G4RadioactiveDecayMode decayMode;
|
|---|
| 128 | static const G4double pTolerance;
|
|---|
| 129 | static const G4double levelTolerance;
|
|---|
| 130 | G4double daughterExcitation;
|
|---|
| 131 | G4int daughterA;
|
|---|
| 132 | G4int daughterZ;
|
|---|
| 133 | G4ParticleDefinition *daughterNucleus;
|
|---|
| 134 | G4DynamicParticle *dynamicDaughter;
|
|---|
| 135 | G4double Qtransition;
|
|---|
| 136 | G4double FermiFN;
|
|---|
| 137 | G4bool BetaSimple;
|
|---|
| 138 | CLHEP::RandGeneral* RandomEnergy;
|
|---|
| 139 | };
|
|---|
| 140 | #endif
|
|---|
| 141 |
|
|---|
| 142 |
|
|---|