CLHEP VERSION Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

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
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
45
46} // namespace CLHEP
47
shared_ptr< HepRandomEngine > theEngine
Definition Random.cc:61
virtual HepVector operator()()