97 lines
4.1 KiB
C++
97 lines
4.1 KiB
C++
//
|
|
// ********************************************************************
|
|
// * License and Disclaimer *
|
|
// * *
|
|
// * The Geant4 software is copyright of the Copyright Holders of *
|
|
// * the Geant4 Collaboration. It is provided under the terms and *
|
|
// * conditions of the Geant4 Software License, included in the file *
|
|
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
|
// * include a list of copyright holders. *
|
|
// * *
|
|
// * Neither the authors of this software system, nor their employing *
|
|
// * institutes,nor the agencies providing financial support for this *
|
|
// * work make any representation or warranty, express or implied, *
|
|
// * regarding this software system or assume any liability for its *
|
|
// * use. Please see the license in the file LICENSE and URL above *
|
|
// * for the full disclaimer and the limitation of liability. *
|
|
// * *
|
|
// * This code implementation is the result of the scientific and *
|
|
// * technical work of the GEANT4 collaboration. *
|
|
// * By using, copying, modifying or distributing the software (or *
|
|
// * any work based on the software) you agree to acknowledge its *
|
|
// * use in resulting scientific publications, and indicate your *
|
|
// * acceptance of all terms of the Geant4 Software license. *
|
|
// ********************************************************************
|
|
//
|
|
/*
|
|
* File: G4FPYNormalFragmentDist.hh
|
|
* Author: B. Wendt (wendbryc@isu.edu)
|
|
*
|
|
* Created on July 26, 2011, 12:26 PM
|
|
*/
|
|
|
|
#ifndef G4FPYNORMALFRAGMENTDIST_HH
|
|
#define G4FPYNORMALFRAGMENTDIST_HH
|
|
|
|
#include "G4FFGEnumerations.hh"
|
|
#include "G4FissionProductYieldDist.hh"
|
|
#include "G4Ions.hh"
|
|
#include "globals.hh"
|
|
|
|
/** G4FPYNormalFragmentDist is an inherited class of G4FissionProductYield
|
|
* that samples fission fragments from the entire data set.
|
|
*/
|
|
class G4FPYNormalFragmentDist : public G4FissionProductYieldDist
|
|
{
|
|
public:
|
|
// Constructor definition
|
|
/** Default constructor
|
|
* - Usage:
|
|
* - \p WhichIsotope: Isotope number of the element in ZZZAAA form
|
|
* - \p WhichMetaState: \p GROUND_STATE, \p META_1, or \p META_2
|
|
* - \p WhichCause: \p SPONTANEOUS or \p N_INDUCED
|
|
* - \p WhichYieldType: \p INDEPENDENT or \p CUMULATIVE
|
|
*
|
|
* - Notes:
|
|
*/
|
|
G4FPYNormalFragmentDist(G4int WhichIsotope, G4FFGEnumerations::MetaState WhichMetaState,
|
|
G4FFGEnumerations::FissionCause WhichCause,
|
|
G4FFGEnumerations::YieldType WhichYieldType,
|
|
std::istringstream& dataFile);
|
|
|
|
/** Overloaded constructor
|
|
* - Usage:
|
|
* - \p WhichIsotope: Isotope number of the element in ZZZAAA form
|
|
* - \p WhichMetaState: \p GROUND_STATE, \p META_1, or \p META_2
|
|
* - \p WhichCause: \p SPONTANEOUS or \p N_INDUCED
|
|
* - \p WhichYieldType: \p INDEPENDENT or \p CUMULATIVE
|
|
* - \p Verbosity: Verbosity level
|
|
*
|
|
* - Notes:
|
|
*/
|
|
G4FPYNormalFragmentDist(G4int WhichIsotope, G4FFGEnumerations::MetaState WhichMetaState,
|
|
G4FFGEnumerations::FissionCause WhichCause,
|
|
G4FFGEnumerations::YieldType WhichYieldType, G4int Verbosity,
|
|
std::istringstream& dataFile);
|
|
|
|
protected:
|
|
/** Initialize is a common function called by all constructors. */
|
|
void Initialize();
|
|
|
|
protected:
|
|
// Functions
|
|
/** Selects a fission product from the probability tree, limited by the
|
|
* number of nucleons available to the system.
|
|
*/
|
|
G4Ions* GetFissionProduct() override;
|
|
|
|
// Destructor function(s)
|
|
public:
|
|
/** Default deconstructor. It is a virtual function since
|
|
* G4FPYNormalFragmentDist inherits from G4FissionProductYieldDist
|
|
*/
|
|
~G4FPYNormalFragmentDist() override;
|
|
};
|
|
|
|
#endif /* G4FPYNORMALFRAGMENTDIST_HH */
|