8 : theR(RC), theNumberOfSpots(nSpots), theSpotEnergy(energy), random(engine) {
16 double radiussq = radius *
radius;
21 currentEnergyFraction = enFrac;
28 unsigned nspot = (unsigned)(dspot * spotf + 0.5);
43 spotE.push_back(spotEnergy);
45 double umax = radiussq / (radiussq +
theR *
theR);
69 double ntotspots = 0.;
70 for (
unsigned irad = 0; irad <
nInter - 1; ++irad) {
std::vector< double > spotE
const RandomEngineAndDistribution * random
RadialInterval(double RC, unsigned nSpots, double energy, const RandomEngineAndDistribution *engine)
Standard constructor Rc: mean Radius.
double currentEnergyFraction
std::vector< double > uMin
std::vector< double > spotfraction
std::vector< double > uMax
std::vector< unsigned > nspots
unsigned theNumberOfSpots
double energyFractionInRadius(double rm)
std::vector< double > dspotsunscaled
double gaussShoot(double mean=0.0, double sigma=1.0) const
void addInterval(double, double)