Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
Analysis Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
acts-fatras
analysis
analysis_tpc_prototype
coresoftware
blob
master
calibrations
generators
FermiMotionAfterburner
flowAfterburner
hijing
HIJINGFlipAfterburner
JETSCAPE
JEWEL
phhepmc
PHPythia6
PHPythia8
PHSartre
ReactionPlaneAfterburner
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.cc
offline
simulation
validation
Doxygen_Assist
g4exampledetector
GenFit
JETSCAPE
KFParticle
macros
online_distribution
OnlMon
prototype
pythia6
rcdaq
RDBC
tutorials
doxygen_mainpage.h
File Members
Examples
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:
Sat Feb 17 2024 22:18:04
using
1.8.2 with
sPHENIX GitHub integration