Class SourceDensityGrid1D

Inheritance Relationships

Base Type

Class Documentation

class SourceDensityGrid1D : public SourceFeature

Random source positions from a 1D density grid.

Public Functions

SourceDensityGrid1D(ref_ptr<Grid1f> densityGrid)

Constructor

Parameters:

densityGrid – 1D grid containing the density of sources in each cell, Ny and Nz must be 1

virtual void prepareParticle(ParticleState &particle) const
void setDescription()
virtual void prepareCandidate(Candidate &candidate) const
std::string getDescription() const
inline size_t addReference() const
inline size_t removeReference() const
inline int removeReferenceNoDelete() const
inline size_t getReferenceCount() const

Protected Attributes

std::string description
mutable size_t _referenceCount