SelectSiteOfType

class SelectSiteOfType : public feasst::TrialSelect

Select a random site of a given type.

Public Functions

SelectSiteOfType(argtype args = argtype())

args:

  • site_type: type of site to select.

int random_site_in_particle(const Configuration &config, Select *select, Random *random)

Select a random site of given type in randomly selected particle.

bool select(const Select &perturbed, System *system, Random *random)

Perform the selection as implemented in the derived class. Return false if the selection cannot be made. Otherwise, return true.

param perturbed:

Perturbed is included to allow chaining of selection based on previous.