Class SourceList
Defined in File Source.h
Inheritance Relationships
Base Type
public SourceInterface
(Class SourceInterface)
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 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
-
void add(Source *source, double weight = 1)