ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
ECCE @ EIC Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
analysis
coresoftware
blob
master
calibrations
generators
decayFinder
FermiMotionAfterburner
flowAfterburner
hijing
JETSCAPE
JEWEL
phhepmc
PHPythia6
PHPythia8
PHSartre
sHEPGen
sHijing
cfortran.h
getaddr.cxx
ghijcrdn.F
ghijjet1.F
ghijjet2.F
ghijjet4.F
ghimain1.F
ghimain2.F
ghiparnt.F
ghistrng.F
granseed.F
HijCrdn.h
Hijing.cxx
HijJet1.h
HijJet2.h
HijJet4.h
HiMain1.h
HiMain2.h
HiParnt.h
HiStrng.h
RanSeed.h
xml_test.C
offline
simulation
Doxygen_Assist
ecce-detectors
fun4all_eicdetectors
geant4
macros
online_distribution
tutorials
doxygen_mainpage.h
File Members
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
RanSeed.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file RanSeed.h
1
2
#ifndef RanSeed_h
3
#define RanSeed_h
4
5
extern
"C"
{
void
*
ranseed_address_
(
void
); }
6
12
class
RanSeed
13
{
14
public
:
15
RanSeed
();
16
~RanSeed
();
17
18
int
&
nseed
(
void
);
19
20
private
:
21
22
struct
RANSEED
;
23
friend
struct
RANSEED
;
24
25
struct
RANSEED
26
{
27
int
nseed
;
28
};
29
30
static
RANSEED
*
_ranseed
;
31
};
32
33
// set pointer to zero at start
34
RanSeed::RANSEED
*
RanSeed::_ranseed
=0;
35
36
inline
37
RanSeed::RanSeed
()
38
{}
39
40
inline
41
RanSeed::~RanSeed
()
42
{}
43
44
inline
int
&
45
RanSeed::nseed
(
void
)
46
{
47
if
(!
_ranseed
)
_ranseed
=
static_cast<
RANSEED
*
>
(
ranseed_address_
());
48
return
_ranseed
->
nseed
;
49
}
50
51
#endif
coresoftware
blob
master
generators
sHijing
RanSeed.h
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:33
using
1.8.2 with
ECCE GitHub integration