Class SourceList

Inheritance Relationships

Base Type

Class Documentation

class SourceList : public SourceInterface

List of particle sources of individual luminosities.

The SourceList is a source itself. It can be used if several sources are needed in one simulation.

Public Functions

void add(Source *source, double weight = 1)

Add an individual source to the list.

Parameters:
  • source – source to be added

  • weight – weight of the source; defaults to 1.

virtual ref_ptr<Candidate> getCandidate() const
virtual 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

mutable size_t _referenceCount