Class SourceGenericComposition

Nested Relationships

Inheritance Relationships

Base Type

Class Documentation

class SourceGenericComposition : public SourceFeature

Multiple nuclei with energies described by an expression string.

Public Functions

SourceGenericComposition(double Emin, double Emax, std::string expression, size_t bins = 1024)
void add(int id, double abundance)
void add(int A, int Z, double abundance)
void prepareParticle(ParticleState &particle) const
void setDescription()
const std::vector<double> *getNucleusCDF(int id) const
void prepareCandidate(Candidate &candidate) const
std::string getDescription() const
size_t addReference() const
size_t removeReference() const
int removeReferenceNoDelete() const
size_t getReferenceCount() const

Protected Attributes

double Emin
double Emax
size_t bins
std::string expression
std::vector<double> energy
std::vector<Nucleus> nuclei
std::vector<double> cdf
std::string description
size_t _referenceCount
struct Nucleus

Public Members

int id
std::vector<double> cdf