7 template<
class SystemImpl,
class NoiseImpl>
27 tIndex muSize=mu.size()/beamSize;
30 tIndex ESize=Es.size()/beamSize;
42 tIndex nEffectiveSimulations=0;
47 for (s=0;s<beamSize;s++) {
51 nEffectiveSimulations++;
62 for (s=0;s<beamSize;s++) {
66 nEffectiveSimulations++;
78 return nEffectiveSimulations;
tBoolean isInstanceOf() const
test if the clas T is an instance of this class
Definition: CORE_Object.h:271
This class implements a stochastic function with a normal law implemented from the boost library.
Definition: SMS_BoostNormalFunction.h:20
This class implements a stochastic function with a normal law implemented from the boost library.
Definition: SMS_STDNormalFunction.h:15
tIndex templatedSimulate()
simulate a beam by computing mu field by calling only templated methods
Definition: SM_Beam.h:313
const tIndex & getBeamSize() const
get the beam size
Definition: SM_Beam.h:166
const std::valarray< tReal > & getEnergies() const
return the Energy array
Definition: SM_Beam.h:218
const SM_StochasticFunction & getStochasticFunction() const
get the stochastic function
Definition: SM_Beam.h:179
const std::valarray< tReal > & getMagneticMoment() const
return the mu array
Definition: SM_Beam.h:206
This class describes a stochastic function interface to generate random numbers.
Definition: SM_StochasticFunction.h:15
#define tIndex
Definition: types.h:157
#define tReal
Definition: types.h:137