#include <RadialInterval.h>
Public Member Functions | |
void | addInterval (double, double) |
void | compute () |
unsigned | getNumberOfSpots (unsigned i) const |
Number of spots in a given interval. More... | |
double | getSpotEnergy (unsigned i) const |
Spot energy in a given interval. More... | |
double | getUmax (unsigned i) const |
Upper limit of the argument in the radius generator. More... | |
double | getUmin (unsigned i) const |
Lower limit of the argument in the radius generator. More... | |
unsigned | nIntervals () const |
Number of intervals. More... | |
RadialInterval (double RC, unsigned nSpots, double energy, const RandomEngineAndDistribution *engine) | |
Standard constructor Rc: mean Radius. More... | |
~RadialInterval () | |
Private Member Functions | |
double | energyFractionInRadius (double rm) |
Private Attributes | |
double | currentEnergyFraction |
double | currentRad |
double | currentUlim |
std::vector< double > | dspotsunscaled |
unsigned | nInter |
std::vector< unsigned > | nspots |
const RandomEngineAndDistribution * | random |
std::vector< double > | spotE |
std::vector< double > | spotfraction |
unsigned | theNumberOfSpots |
double | theR |
double | theSpotEnergy |
std::vector< double > | uMax |
std::vector< double > | uMin |
Definition at line 13 of file RadialInterval.h.
RadialInterval::RadialInterval | ( | double | RC, |
unsigned | nSpots, | ||
double | energy, | ||
const RandomEngineAndDistribution * | engine | ||
) |
Standard constructor Rc: mean Radius.
Definition at line 7 of file RadialInterval.cc.
References currentEnergyFraction, currentRad, currentUlim, and nInter.
|
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, TCMET_cfi::radius, random, spotE, spotfraction, mathSSE::sqrt(), theNumberOfSpots, theR, theSpotEnergy, uMax, and uMin.
Referenced by EMShower::compute(), EMShower::setIntervals(), and ~RadialInterval().
void RadialInterval::compute | ( | ) |
Most of the calculation are made in addInterval but the normal number of spots has to be set
Definition at line 72 of file RadialInterval.cc.
References dspotsunscaled, nInter, nspots, spotfraction, and theNumberOfSpots.
Referenced by EMShower::compute(), and ~RadialInterval().
|
private |
Definition at line 66 of file RadialInterval.cc.
References submit::rm, and theR.
Referenced by addInterval().
|
inline |
Number of spots in a given interval.
Definition at line 34 of file RadialInterval.h.
References mps_fire::i, and nspots.
Referenced by EMShower::compute().
|
inline |
Spot energy in a given interval.
Definition at line 30 of file RadialInterval.h.
References mps_fire::i, and spotE.
Referenced by EMShower::compute().
|
inline |
Upper limit of the argument in the radius generator.
Definition at line 44 of file RadialInterval.h.
References mps_fire::i, and uMax.
Referenced by EMShower::compute().
|
inline |
Lower limit of the argument in the radius generator.
Definition at line 39 of file RadialInterval.h.
References mps_fire::i, and uMin.
Referenced by EMShower::compute().
|
inline |
Number of intervals.
Definition at line 28 of file RadialInterval.h.
References nInter.
Referenced by EMShower::compute().
|
private |
Definition at line 51 of file RadialInterval.h.
Referenced by addInterval(), and RadialInterval().
|
private |
Definition at line 50 of file RadialInterval.h.
Referenced by RadialInterval().
|
private |
Definition at line 52 of file RadialInterval.h.
Referenced by addInterval(), and RadialInterval().
|
private |
Definition at line 62 of file RadialInterval.h.
Referenced by addInterval(), and compute().
|
private |
Definition at line 56 of file RadialInterval.h.
Referenced by addInterval(), compute(), nIntervals(), and RadialInterval().
|
private |
Definition at line 60 of file RadialInterval.h.
Referenced by addInterval(), compute(), and getNumberOfSpots().
|
private |
Definition at line 70 of file RadialInterval.h.
Referenced by addInterval().
|
private |
Definition at line 61 of file RadialInterval.h.
Referenced by addInterval(), and getSpotEnergy().
|
private |
Definition at line 63 of file RadialInterval.h.
Referenced by addInterval(), and compute().
|
private |
Definition at line 54 of file RadialInterval.h.
Referenced by addInterval(), and compute().
|
private |
Definition at line 53 of file RadialInterval.h.
Referenced by addInterval(), and energyFractionInRadius().
|
private |
Definition at line 55 of file RadialInterval.h.
Referenced by addInterval().
|
private |
Definition at line 59 of file RadialInterval.h.
Referenced by addInterval(), and getUmax().
|
private |
Definition at line 58 of file RadialInterval.h.
Referenced by addInterval(), and getUmin().