CLHEP 2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
CLHEP::HepRandomVector Class Reference

#include <RandomVector.h>

+ Inheritance diagram for CLHEP::HepRandomVector:

Public Member Functions

 HepRandomVector ()
 
 HepRandomVector (long seed)
 
 HepRandomVector (HepRandomEngine &engine)
 
 HepRandomVector (HepRandomEngine *engine)
 
virtual ~HepRandomVector ()
 
HepVector flat ()
 
HepVector flat (HepRandomEngine *theNewEngine)
 
void flatArray (const int size, HepVector *vect)
 
void flatArray (HepRandomEngine *theNewEngine, const int size, HepVector *vect)
 
virtual HepVector operator() ()
 

Protected Attributes

HepRandomEnginetheEngine
 

Detailed Description

Author
Mark Fischler mf@fn.nosp@m.al.g.nosp@m.ov

Definition at line 41 of file RandomVector.h.

Constructor & Destructor Documentation

◆ HepRandomVector() [1/4]

CLHEP::HepRandomVector::HepRandomVector ( )

Definition at line 21 of file RandomVector.cc.

22: theEngine(new HepJamesRandom(11327503L)), deleteEngine(true)
23{
24}
HepRandomEngine * theEngine
Definition: RandomVector.h:112

◆ HepRandomVector() [2/4]

CLHEP::HepRandomVector::HepRandomVector ( long  seed)

Definition at line 26 of file RandomVector.cc.

27: theEngine(new HepJamesRandom(seed)), deleteEngine(true) {
28}

◆ HepRandomVector() [3/4]

CLHEP::HepRandomVector::HepRandomVector ( HepRandomEngine engine)

Definition at line 30 of file RandomVector.cc.

31: theEngine(&engine), deleteEngine(false) {
32}

◆ HepRandomVector() [4/4]

CLHEP::HepRandomVector::HepRandomVector ( HepRandomEngine engine)

Definition at line 34 of file RandomVector.cc.

35: theEngine(engine), deleteEngine(true) {
36}

◆ ~HepRandomVector()

CLHEP::HepRandomVector::~HepRandomVector ( )
virtual

Definition at line 38 of file RandomVector.cc.

38 {
39 if ( deleteEngine ) delete theEngine;
40}

Member Function Documentation

◆ flat() [1/2]

HepVector CLHEP::HepRandomVector::flat ( )
inline

Referenced by operator()().

◆ flat() [2/2]

HepVector CLHEP::HepRandomVector::flat ( HepRandomEngine theNewEngine)
inline

◆ flatArray() [1/2]

void CLHEP::HepRandomVector::flatArray ( const int  size,
HepVector vect 
)
inline

◆ flatArray() [2/2]

void CLHEP::HepRandomVector::flatArray ( HepRandomEngine theNewEngine,
const int  size,
HepVector vect 
)
inline

◆ operator()()

HepVector CLHEP::HepRandomVector::operator() ( )
virtual

Reimplemented in CLHEP::RandMultiGauss.

Definition at line 42 of file RandomVector.cc.

42 {
43 return flat();
44}

Member Data Documentation

◆ theEngine

HepRandomEngine* CLHEP::HepRandomVector::theEngine
protected

Definition at line 112 of file RandomVector.h.

Referenced by ~HepRandomVector().


The documentation for this class was generated from the following files: