Class MinimumEnergyPerParticleId

Inheritance Relationships

Base Type

Class Documentation

class MinimumEnergyPerParticleId : public AbstractCondition

Deactivates the candidate below a minimum energy for specific particle Ids.

This modules deactivates the candidate below a given minimum energy for specific particle types. In that case the property (“Deactivated”, module::description) is set. All particles whose minimum energies are not specified follow the more general minEnergyOthers condition.

Public Functions

MinimumEnergyPerParticleId(double minEnergyOthers = 0)
void setMinimumEnergyOthers(double energy)
double getMinimumEnergyOthers() const
void add(int id, double energy)
std::string getDescription() const
void process(Candidate *candidate) const
void onReject(Module *rejectAction)
void onAccept(Module *acceptAction)
void setMakeRejectedInactive(bool makeInactive)
void setMakeAcceptedInactive(bool makeInactive)
void setRejectFlag(std::string key, std::string value)
void setAcceptFlag(std::string key, std::string value)
void setDescription(const std::string &description)
void process(ref_ptr<Candidate> candidate) const
size_t addReference() const
size_t removeReference() const
int removeReferenceNoDelete() const
size_t getReferenceCount() const

Protected Functions

void reject(Candidate *candidate) const
void reject(ref_ptr<Candidate> candidate) const
void accept(Candidate *candidate) const
void accept(ref_ptr<Candidate> candidate) const

Protected Attributes

ref_ptr<Module> rejectAction
ref_ptr<Module> acceptAction
bool makeRejectedInactive
bool makeAcceptedInactive
std::string rejectFlagKey
std::string rejectFlagValue
std::string acceptFlagKey
std::string acceptFlagValue
size_t _referenceCount