Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
FastSimulation
ParticleDecay
src
Pythia6jets.cc
Go to the documentation of this file.
1
#include "
FastSimulation/ParticleDecay/interface/Pythia6jets.h
"
2
3
#define PYJETS pyjets_
4
extern
"C"
void
*
getaddr
(
void
*item)
5
{
6
return
item;
7
}
8
9
extern
10
struct
_Pyjets
{
11
int
n
;
12
int
npad
;
13
int
k
[5][4000];
14
double
p
[5][4000];
15
double
v
[5][4000];
16
}
PYJETS
;
17
18
struct
Pythia6jets::_pythia6jets
*
Pythia6jets::__pythia6jets
= 0;
19
20
double
Pythia6jets::dDummy
= 0.0;
21
int
Pythia6jets::nDummy
= 0;
22
23
Pythia6jets::Pythia6jets
(
void
)
24
{
25
}
26
27
Pythia6jets::~Pythia6jets
(
void
)
28
{
29
}
30
31
void
Pythia6jets::init
(
void
)
32
{
33
__pythia6jets
=
34
static_cast<
struct
Pythia6jets::_pythia6jets
*
>
(
getaddr
(&
PYJETS
.n));
35
}
36
37
int
&
Pythia6jets::n
(
void
)
38
{
39
if
(
__pythia6jets
== 0)
init
();
40
return
__pythia6jets
->
n
;
41
}
42
43
int
&
Pythia6jets::npad
(
void
)
44
{
45
if
(
__pythia6jets
== 0)
init
();
46
return
__pythia6jets
->
npad
;
47
}
48
49
int
&
Pythia6jets::k
(
int
i
,
int
j
)
50
{
51
if
(
__pythia6jets
== 0)
init
();
52
if
((i<1)||(i>
_depth
)||
53
(j<1)||(j>
_length
))
54
{
55
nDummy
= -999;
56
return
nDummy
;
57
}
58
return
__pythia6jets
->
k
[j-1][i-1];
59
}
60
61
double
&
Pythia6jets::p
(
int
i
,
int
j
)
62
{
63
if
(
__pythia6jets
== 0)
init
();
64
if
((i<1)||(i>
_depth
)||
65
(j<1)||(j>
_length
))
66
{
67
dDummy
= -999.0;
68
return
dDummy
;
69
}
70
return
__pythia6jets
->
p
[j-1][i-1];
71
}
72
73
double
&
Pythia6jets::v
(
int
i
,
int
j
)
74
{
75
if
(
__pythia6jets
== 0)
init
();
76
if
((i<1)||(i>
_depth
)||
77
(j<1)||(j>
_length
))
78
{
79
dDummy
= -999.0;
80
return
dDummy
;
81
}
82
return
__pythia6jets
->
v
[j-1][i-1];
83
}
Pythia6jets::dDummy
static double dDummy
Definition:
Pythia6jets.h:22
Pythia6jets::_pythia6jets::npad
int npad
Definition:
Pythia6jets.h:26
i
int i
Definition:
DBlmapReader.cc:9
_length
#define _length
Definition:
Pythia6jets.h:4
Pythia6jets::n
int & n(void)
Definition:
Pythia6jets.cc:37
Pythia6jets::Pythia6jets
Pythia6jets(void)
Definition:
Pythia6jets.cc:23
_Pyjets::p
double p[5][4000]
Definition:
Pythia6jets.cc:14
_depth
#define _depth
Definition:
Pythia6jets.h:5
Pythia6jets::v
double & v(int i, int j)
Definition:
Pythia6jets.cc:73
_Pyjets::n
int n
Definition:
Pythia6jets.cc:11
Pythia6jets::_pythia6jets::k
int k[5][4000]
Definition:
Pythia6jets.h:27
Pythia6jets::_pythia6jets::v
double v[5][4000]
Definition:
Pythia6jets.h:29
Pythia6jets::_pythia6jets::p
double p[5][4000]
Definition:
Pythia6jets.h:28
getaddr
void * getaddr(void *item)
Definition:
Pythia6jets.cc:4
Pythia6jets::_pythia6jets::n
int n
Definition:
Pythia6jets.h:25
j
int j
Definition:
DBlmapReader.cc:9
PYJETS
#define PYJETS
Definition:
Pythia6jets.cc:3
_Pyjets::v
double v[5][4000]
Definition:
Pythia6jets.cc:15
Pythia6jets::__pythia6jets
static struct _pythia6jets * __pythia6jets
Definition:
Pythia6jets.h:32
Pythia6jets::k
int & k(int i, int j)
Definition:
Pythia6jets.cc:49
_Pyjets
Definition:
Pythia6jets.cc:10
_Pyjets::k
int k[5][4000]
Definition:
Pythia6jets.cc:13
Pythia6jets::nDummy
static int nDummy
Definition:
Pythia6jets.h:21
Pythia6jets::npad
int & npad(void)
Definition:
Pythia6jets.cc:43
Pythia6jets::init
void init(void)
Definition:
Pythia6jets.cc:31
Pythia6jets.h
Pythia6jets::p
double & p(int i, int j)
Definition:
Pythia6jets.cc:61
Pythia6jets::~Pythia6jets
~Pythia6jets(void)
Definition:
Pythia6jets.cc:27
Pythia6jets::_pythia6jets
Definition:
Pythia6jets.h:24
_Pyjets::npad
int npad
Definition:
Pythia6jets.cc:12
Generated for CMSSW Reference Manual by
1.8.5