95 lines
3.8 KiB
C++
95 lines
3.8 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: G4ENDFYieldDataContainer.hh
|
|
* Author: B. Wendt (wendbryc@isu.edu)
|
|
*
|
|
* Created on September 6, 2011, 10:19 AM
|
|
*/
|
|
|
|
#ifndef G4ENDFYIELDDATACONTAINER_HH
|
|
#define G4ENDFYIELDDATACONTAINER_HH
|
|
|
|
#include "G4FFGEnumerations.hh"
|
|
#include "globals.hh"
|
|
|
|
/** G4ENDFYieldDataContainer is a simple data storage class that handles
|
|
* the memory management internally. One instance stores the information
|
|
* for one fission product. In the event of a non-spontaneous fission, it
|
|
* can store the yield probabilities and errors at each of the fission-
|
|
* inducing particles energy levels. For ENDF data and neutron-induced
|
|
* fission these energies are typically 0.0253 eV, 1 MeV, and 5 MeV.
|
|
*/
|
|
class G4ENDFYieldDataContainer
|
|
{
|
|
public:
|
|
// Constructor
|
|
/** Default constructor */
|
|
G4ENDFYieldDataContainer(G4int YieldSlots);
|
|
|
|
// Functions
|
|
/** Get the meta state */
|
|
G4FFGEnumerations::MetaState GetMetaState();
|
|
/** Get the product */
|
|
G4int GetProduct();
|
|
/** Get the yield error */
|
|
G4double* GetYieldError();
|
|
/** Get the yield probability */
|
|
G4double* GetYieldProbability();
|
|
/** Get the number of yield slots */
|
|
G4int GetYieldSlots();
|
|
/** Set the meta state */
|
|
void SetMetaState(G4FFGEnumerations::MetaState MetaState);
|
|
/** Set the product */
|
|
void SetProduct(G4int Product);
|
|
/** Set the yield error */
|
|
void SetYieldError(G4double* YieldError);
|
|
/** Set the yield probability */
|
|
void SetYieldProbability(G4double* YieldProbability);
|
|
/** Set the number of yield slots */
|
|
void SetYieldSlots(G4int NumberOfSlots);
|
|
|
|
protected:
|
|
// Data members
|
|
/** The number of energy groups, or yield slots, that are stored */
|
|
G4int YieldSlots_;
|
|
/** ZZZAAA identifier of the stored isotope */
|
|
G4int Product_;
|
|
/** Metastable state information of the stored isotope */
|
|
G4FFGEnumerations::MetaState MetaState_;
|
|
/** Array of yield probabilities, one per yield slot */
|
|
G4double* YieldProbability_;
|
|
/** Array of the yield probability errors, one per yield slot */
|
|
G4double* YieldError_;
|
|
|
|
// Destructor function(s)
|
|
public:
|
|
/** Default deconstructor */
|
|
~G4ENDFYieldDataContainer();
|
|
};
|
|
|
|
#endif /* G4ENDFYIELDDATACONTAINER_HH */
|