#include <EvtRandom.hh>
Static Public Member Functions | |
static double | Flat (double min, double max) |
static double | Flat (double max) |
static double | Flat () |
static double | random () |
static void | setRandomEngine (EvtRandomEngine *randomEngine) |
Static Private Attributes | |
static EvtRandomEngine * | _randomEngine = 0 |
Definition at line 27 of file EvtRandom.hh.
double EvtRandom::Flat | ( | ) | [static] |
Definition at line 73 of file EvtRandom.cc.
References random().
Referenced by EvtPsi3Sdecay::AngSam(), EvtRexc::angularSampling(), EvtConExc::angularSampling(), EvtHis2F::AR(), EvtConExc::baryon_sampling(), begran_(), EvtDecay::callBesEvtGen(), EvtDecay::callEvtGen(), EvtPsi3Sdecay::choseDecay(), EvtVubNLO::decay(), EvtVubHybrid::decay(), EvtVub::decay(), EvtVPHOtoVISRHi::decay(), EvtVPHOtoVISR::decay(), EvtVectorIsr::decay(), EvtTrackGen::decay(), EvtSVSCPiso::decay(), EvtSSDCP::decay(), EvtSingleParticle2::decay(), EvtSingleParticle::decay(), EvtRhoPi::decay(), EvtmH2::decay(), EvtMassH2::decay(), EvtMassH1::decay(), EvtLambdac2pKpi::decay(), EvtHAngSam3::decay(), EvtDMix::decay(), EvtDIY::decay(), EvtD0mixDalitz::decay(), EvtConExc::decay(), EvtBtoXsll::decay(), EvtBtoXsEtap::decay(), EvtBto2piCPiso::decay(), EvtBody3::decay(), EvtAngSamX::decay(), EvtAngSamLab::decay(), EvtAngSam3::decay(), EvtAngSam::decay(), EvtAngH2::decay(), evtranfor_(), EvtBtoXsllUtil::FermiMomentum(), EvtConExc::findMaxXS(), EvtVubHybrid::findPFermi(), EvtVub::findPFermi(), EvtConExc::gam_sampling(), EvtConExc::gamHXSection(), EvtParticle::generateMassTree(), EvtPsi3Sdecay::getDecay(), EvtParticleDecayList::getDecayModel(), EvtBtoXsgammaKagan::GetMass(), EvtBtoXsgammaFlatEnergy::GetMass(), EvtBtoXsgammaAliGreub::GetMass(), EvtManyDeltaFuncLineShape::getRandMass(), EvtFlatLineShape::getRandMass(), EvtAbsLineShape::getRandMass(), EvtCPUtil::incoherentMix(), EvtPto3P::initDaughters(), EvtConExc::islgr(), EvtConExc::ISR_ang_sampling(), EvtDecayProb::makeDecay(), EvtDecayAmp::makeDecay(), EvtConExc::meson_sampling(), EvtConExc::Mhad_sampling(), EvtPdfPred< T >::operator()(), EvtCPUtil::OtherB(), EvtGenKine::PhaseSpace(), EvtGenKine::PhaseSpacePole(), phoran_(), EvtConExc::photonSampling(), pyr_(), EvtConExc::Rad1difXs(), EvtConExc::Rad2difXs(), EvtPdfSum< T >::randomPoint(), EvtIntervalFlatPdf::randomPoint(), EvtIntegPdf1D::randomPoint(), EvtDalitzResPdf::randomPoint(), EvtDalitzFlatPdf::randomPoint(), rlu_(), EvtAbsLineShape::rollMass(), EvtConExc::selectMass(), EvtConExc::selectMode(), EvtParticle::setLifetime(), EvtConExc::SetP4(), EvtConExc::SetP4Rvalue(), EvtConExc::VP_sampling(), and EvtConExc::xs_sampling().
00073 { 00074 00075 return EvtRandom::random(); 00076 00077 }
double EvtRandom::Flat | ( | double | max | ) | [static] |
Definition at line 67 of file EvtRandom.cc.
References random().
00067 { 00068 00069 return max*EvtRandom::random(); 00070 00071 }
double EvtRandom::Flat | ( | double | min, | |
double | max | |||
) | [static] |
Definition at line 56 of file EvtRandom.cc.
References calibUtil::ERROR, random(), and report().
00056 { 00057 00058 if ( min > max ) { 00059 report(ERROR,"EvtGen") << "min>max in EvtRandom::Flat(" << min << "," << max << ")" <<endl; 00060 ::abort(); 00061 } 00062 00063 return EvtRandom::random()*( max - min )+min; 00064 00065 }
double EvtRandom::random | ( | ) | [static] |
Definition at line 41 of file EvtRandom.cc.
References _randomEngine, calibUtil::ERROR, EvtRandomEngine::random(), and report().
Referenced by EvtVSSBMixCPT::decay(), and Flat().
00041 { 00042 00043 if (_randomEngine==0){ 00044 report(ERROR,"EvtGen") <<"No random engine available in " 00045 <<"EvtRandom::random()."<<endl; 00046 ::abort(); 00047 } 00048 00049 return _randomEngine->random(); 00050 00051 }
void EvtRandom::setRandomEngine | ( | EvtRandomEngine * | randomEngine | ) | [static] |
Definition at line 36 of file EvtRandom.cc.
References _randomEngine.
Referenced by EvtGen::EvtGen().
00036 { 00037 _randomEngine=randomEngine; 00038 }
EvtRandomEngine * EvtRandom::_randomEngine = 0 [static, private] |