#include <RadialInterval.h>
Definition at line 13 of file RadialInterval.h.
RadialInterval::~RadialInterval |
( |
| ) |
|
|
inline |
void RadialInterval::addInterval |
( |
double |
radius, |
|
|
double |
spotf |
|
) |
| |
Add an interval : first argument is the radius, the second is the fraction of spots in this interval R>10 <-> infinity
Definition at line 19 of file RadialInterval.cc.
References currentEnergyFraction, currentUlim, dspotsunscaled, energyFractionInRadius(), RandomEngineAndDistribution::gaussShoot(), nInter, nspots, CosmicsPD_Skims::radius, random, spotE, spotfraction, mathSSE::sqrt(), theNumberOfSpots, theR, theSpotEnergy, uMax, and uMin.
23 if(radius>10) enFrac=1.;
25 currentEnergyFraction=enFrac;
32 unsigned nspot=(unsigned)(dspot*spotf+0.5);
47 spotE.push_back(spotEnergy);
49 double umax = radiussq/(radiussq+
theR*
theR);
std::vector< double > spotE
const RandomEngineAndDistribution * random
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 RadialInterval::compute |
( |
| ) |
|
double RadialInterval::energyFractionInRadius |
( |
double |
rm | ) |
|
|
private |
unsigned RadialInterval::getNumberOfSpots |
( |
unsigned |
i | ) |
const |
|
inline |
Number of spots in a given interval.
Definition at line 34 of file RadialInterval.h.
References i, and nspots.
std::vector< unsigned > nspots
double RadialInterval::getSpotEnergy |
( |
unsigned |
i | ) |
const |
|
inline |
Spot energy in a given interval.
Definition at line 30 of file RadialInterval.h.
References i, and spotE.
std::vector< double > spotE
double RadialInterval::getUmax |
( |
unsigned |
i | ) |
const |
|
inline |
Upper limit of the argument in the radius generator.
Definition at line 44 of file RadialInterval.h.
References i, and uMax.
std::vector< double > uMax
double RadialInterval::getUmin |
( |
unsigned |
i | ) |
const |
|
inline |
Lower limit of the argument in the radius generator.
Definition at line 39 of file RadialInterval.h.
References i, and uMin.
std::vector< double > uMin
unsigned RadialInterval::nIntervals |
( |
| ) |
const |
|
inline |
double RadialInterval::currentEnergyFraction |
|
private |
double RadialInterval::currentRad |
|
private |
double RadialInterval::currentUlim |
|
private |
std::vector<double> RadialInterval::dspotsunscaled |
|
private |
unsigned RadialInterval::nInter |
|
private |
std::vector<unsigned> RadialInterval::nspots |
|
private |
std::vector<double> RadialInterval::spotE |
|
private |
std::vector<double> RadialInterval::spotfraction |
|
private |
unsigned RadialInterval::theNumberOfSpots |
|
private |
double RadialInterval::theR |
|
private |
double RadialInterval::theSpotEnergy |
|
private |
std::vector<double> RadialInterval::uMax |
|
private |
std::vector<double> RadialInterval::uMin |
|
private |