Class SourceMultiplePositions

Inheritance Relationships

Base Type

Class Documentation

class SourceMultiplePositions : public SourceFeature

Multiple point-source positions with individual luminosities.

Public Functions

SourceMultiplePositions()

Constructor. The sources must be added individually to the object.

void add(Vector3d position, double weight = 1)

Add an individual source with a given luminosity/contribution.

Parameters:
  • position – vector containing the coordinates of the point source [in meters]

  • weight – luminosity/contribution of the individual source

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