Class SourceDensityGrid

Inheritance Relationships

Base Type

Class Documentation

class SourceDensityGrid : public SourceFeature

Random source positions from a density grid.

Public Functions

SourceDensityGrid(ref_ptr<Grid1f> densityGrid)

Constructor

Parameters:

densityGrid – 3D grid containing the density of sources in each cell

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