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 
13 #include "CLHEP/Random/JamesRandom.h"
16 
17 namespace 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 
CLHEP::HepRandomVector::flat
HepVector flat()
CLHEP::HepRandomEngine
Definition: Matrix/CLHEP/Random/RandomEngine.h:55
theEngine
shared_ptr< HepRandomEngine > theEngine
Definition: Random.cc:61
RandomVector.h
CLHEP::HepRandomVector::HepRandomVector
HepRandomVector()
Definition: RandomVector.cc:21
CLHEP::HepJamesRandom
Definition: Matrix/CLHEP/Random/JamesRandom.h:45
CLHEP
Definition: ClhepVersion.h:13
CLHEP::HepRandomVector::~HepRandomVector
virtual ~HepRandomVector()
Definition: RandomVector.cc:38
CLHEP::HepRandomVector::theEngine
HepRandomEngine * theEngine
Definition: CLHEP/RandomObjects/RandomVector.h:112
CLHEP::HepRandomVector::operator()
virtual HepVector operator()()
Definition: RandomVector.cc:42
CLHEP::HepVector
Definition: Matrix/CLHEP/Matrix/Vector.h:39
defs.h