8 : theR(RC), theNumberOfSpots(nSpots), theSpotEnergy(
energy), random(engine) {
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
double gaussShoot(double mean=0.0, double sigma=1.0) const
std::vector< double > uMax
std::vector< unsigned > nspots
unsigned theNumberOfSpots
double energyFractionInRadius(double rm)
std::vector< double > dspotsunscaled
void addInterval(double, double)