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
Doxygen_Assist
g4exampledetector
GenFit
JETSCAPE
KFParticle
macros
online_distribution
OnlMon
prototype
pythia6
blob
master
pythia6
pythia6-lhapdf
pythiaeRHIC
erhic
factory.cpp
factory.h
gmc_random.f
pyth_xsec.f
pythia_commons.cpp
pythia_commons.h
pythia_erhic.h
pythia_main.cpp
pythia_radgen_extras.f
include
pythia
radgen
rcdaq
RDBC
tutorials
doxygen_mainpage.h
File Members
Examples
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
pythia_commons.cpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file pythia_commons.cpp
1
9
#include "
pythia_commons.h
"
10
11
int
msti
(
int
i
) {
12
return
pypars_
.msti[i - 1];
13
}
14
15
double
pari
(
int
i
) {
16
return
pypars_
.pari[i - 1];
17
}
18
19
double
vint
(
int
i
) {
20
return
pyint1_
.vint[i - 1];
21
}
22
23
int
k
(
int
i
,
int
j
) {
24
return
pyjets_
.k[j - 1][i - 1];
25
}
26
27
double
p
(
int
i
,
int
j
) {
28
return
pyjets_
.p[j - 1][i - 1];
29
}
30
31
double
v
(
int
i
,
int
j
) {
32
return
pyjets_
.v[j - 1][i - 1];
33
}
34
35
// Note that the first array index runs [0:500]
36
// unlike a default Fortran array, so this index is NOT decremented
37
// when accessed in C++. Array indices are reversed as usual so
38
// ngen(0, 3) in Fortran becomes ngen[2, 0] in C++.
39
int
ngen
(
int
i
,
int
j
) {
40
return
pyint5_
.ngen[j - 1][
i
];
41
}
pythia6
blob
master
pythiaeRHIC
erhic
pythia_commons.cpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:40
using
1.8.2 with
sPHENIX GitHub integration