Geant4 Cross Reference |
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 * File: G4FPYNormalFragmentDist.hh 28 * Author: B. Wendt (wendbryc@isu.edu) 29 * 30 * Created on July 26, 2011, 12:26 PM 31 */ 32 33 #ifndef G4FPYNORMALFRAGMENTDIST_HH 34 #define G4FPYNORMALFRAGMENTDIST_HH 35 36 #include "G4FFGEnumerations.hh" 37 #include "G4FissionProductYieldDist.hh" 38 #include "G4Ions.hh" 39 #include "globals.hh" 40 41 /** G4FPYNormalFragmentDist is an inherited class of G4FissionProductYield 42 * that samples fission fragments from the entire data set. 43 */ 44 class G4FPYNormalFragmentDist : public G4FissionProductYieldDist 45 { 46 public: 47 // Constructor definition 48 /** Default constructor 49 * - Usage: 50 * - \p WhichIsotope: Isotope number of the element in ZZZAAA form 51 * - \p WhichMetaState: \p GROUND_STATE, \p META_1, or \p META_2 52 * - \p WhichCause: \p SPONTANEOUS or \p N_INDUCED 53 * - \p WhichYieldType: \p INDEPENDENT or \p CUMULATIVE 54 * 55 * - Notes: 56 */ 57 G4FPYNormalFragmentDist(G4int WhichIsotope, G4FFGEnumerations::MetaState WhichMetaState, 58 G4FFGEnumerations::FissionCause WhichCause, 59 G4FFGEnumerations::YieldType WhichYieldType, 60 std::istringstream& dataFile); 61 62 /** Overloaded constructor 63 * - Usage: 64 * - \p WhichIsotope: Isotope number of the element in ZZZAAA form 65 * - \p WhichMetaState: \p GROUND_STATE, \p META_1, or \p META_2 66 * - \p WhichCause: \p SPONTANEOUS or \p N_INDUCED 67 * - \p WhichYieldType: \p INDEPENDENT or \p CUMULATIVE 68 * - \p Verbosity: Verbosity level 69 * 70 * - Notes: 71 */ 72 G4FPYNormalFragmentDist(G4int WhichIsotope, G4FFGEnumerations::MetaState WhichMetaState, 73 G4FFGEnumerations::FissionCause WhichCause, 74 G4FFGEnumerations::YieldType WhichYieldType, G4int Verbosity, 75 std::istringstream& dataFile); 76 77 protected: 78 /** Initialize is a common function called by all constructors. */ 79 void Initialize(); 80 81 protected: 82 // Functions 83 /** Selects a fission product from the probability tree, limited by the 84 * number of nucleons available to the system. 85 */ 86 G4Ions* GetFissionProduct() override; 87 88 // Destructor function(s) 89 public: 90 /** Default deconstructor. It is a virtual function since 91 * G4FPYNormalFragmentDist inherits from G4FissionProductYieldDist 92 */ 93 ~G4FPYNormalFragmentDist() override; 94 }; 95 96 #endif /* G4FPYNORMALFRAGMENTDIST_HH */ 97