CLHEP 2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
RandomVector.cc
Go to the documentation of this file.
1// $Id: RandomVector.cc,v 1.3 2003/08/13 20:00:13 garren Exp $
2// -*- C++ -*-
3//
4// -----------------------------------------------------------------------
5// HEP Random
6// --- HepRandomVector ---
7// class implementation file
8// -----------------------------------------------------------------------
9// =======================================================================
10// Mark Fischler - Created: 19 OCtober, 1998
11// =======================================================================
12
13#include "CLHEP/Random/JamesRandom.h"
14#include "CLHEP/RandomObjects/RandomVector.h"
15#include "CLHEP/RandomObjects/defs.h"
16
17namespace CLHEP {
18
19//------------------------- HepRandomVector ---------------------------------
20
22: theEngine(new HepJamesRandom(11327503L)), deleteEngine(true)
23{
24}
25
27: theEngine(new HepJamesRandom(seed)), deleteEngine(true) {
28}
29
31: theEngine(&engine), deleteEngine(false) {
32}
33
35: theEngine(engine), deleteEngine(true) {
36}
37
39 if ( deleteEngine ) delete theEngine;
40}
41
43 return flat();
44}
45
46} // namespace CLHEP
47
std::shared_ptr< HepRandomEngine > theEngine
Definition: Random.cc:78
HepRandomEngine * theEngine
Definition: RandomVector.h:112
virtual HepVector operator()()
Definition: RandomVector.cc:42