BOSS
7.0.4
BESIII Offline Software System
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
w
x
z
Typedefs
b
c
d
e
g
h
i
l
m
n
o
p
r
s
t
v
Enumerations
_
e
f
g
h
i
l
m
o
p
r
s
t
Enumerator
a
b
c
d
e
f
i
k
l
m
n
o
p
r
s
t
u
w
x
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
v
w
Enumerations
b
c
d
e
f
g
h
i
k
l
m
n
p
r
s
t
v
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Related Functions
:
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
w
x
Files
File List
File Members
All
!
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
!
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
!
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
p
q
r
s
t
u
v
w
z
Enumerations
d
e
g
h
p
r
s
t
Enumerator
a
b
c
d
e
f
g
h
i
k
m
n
o
p
r
s
t
u
w
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
HepMcParticleLink.cxx
Go to the documentation of this file.
1
#include "GeneratorObject/HepMcParticleLink.h"
2
#include "GeneratorObject/McEventCollection.h"
3
#include "StoreGate/StoreGate.h"
4
#include "CLHEP/HepMC/GenParticle.h"
5
#include "CLHEP/HepMC/GenEvent.h"
6
#include <cassert>
7
8
HepMcParticleLink::HepMcParticleLink
(
const
HepMC::GenParticle* part,
9
index_type
eventIndex) :
10
m_particle(const_cast<
HepMC
::GenParticle*>(part)),
11
m_extBarcode((0 != part) ? part->barcode() : 0, eventIndex) {
12
assert(part);
13
}
14
15
const
HepMC::GenParticle*
HepMcParticleLink::cptr
()
const
{
16
if
(!m_particle) {
17
const
McEventCollection
* pEvtColl;
18
if
((StoreGate::instance().retrieve(pEvtColl)).isSuccess()) {
//FIXME SLOW
19
m_particle = pEvtColl->at(
eventIndex
())->barcode_to_particle(
barcode
());
20
}
21
}
22
return
m_particle;
23
}
HepMcParticleLink::eventIndex
index_type eventIndex() const
Definition:
Generator/GeneratorObject/GeneratorObject-00-01-05/GeneratorObject/HepMcParticleLink.h:46
HepMcParticleLink::HepMcParticleLink
HepMcParticleLink()
Definition:
Generator/GeneratorObject/GeneratorObject-00-01-05/GeneratorObject/HepMcParticleLink.h:23
HepMcParticleLink::index_type
unsigned int index_type
Definition:
Generator/GeneratorObject/GeneratorObject-00-01-05/GeneratorObject/HepMcParticleLink.h:19
HepMcParticleLink::barcode
int barcode() const
Definition:
Generator/GeneratorObject/GeneratorObject-00-01-05/GeneratorObject/HepMcParticleLink.h:45
HepMcParticleLink::cptr
const HepMC::GenParticle * cptr() const
Definition:
HepMcParticleLink.cxx:15
McEventCollection
Definition:
Generator/GeneratorObject/GeneratorObject-00-01-05/GeneratorObject/McEventCollection.h:26
HepMC
Definition:
GenIMCselector.h:12
source
Generator
GeneratorObject
GeneratorObject-00-01-05
src
HepMcParticleLink.cxx
Generated by
1.9.6