Main Page
Namespaces
Classes
Package Documentation
FWCore
GuiBrowsers
python
Vispa
Share
ParticleDataAccessor.py
Go to the documentation of this file.
1
class
ParticleDataAccessor
(
object
):
2
""" This class provides access to the underlying data model.
3
"""
4
5
LINE_STYLE_SOLID = 0
6
LINE_STYLE_DASH = 1
7
LINE_STYLE_WAVE = 2
8
LINE_STYLE_SPIRAL = 3
9
LINE_VERTEX = 4
10
11
def
id
(self, object):
12
""" Returns an id to identify given object.
13
14
Usually it is sufficient to identify python objects directly with themselves.
15
Overwrite this function if this is not true for your objects.
16
"""
17
return
id
(object)
18
19
def
particleId
(self, object):
20
raise
NotImplementedError
21
22
def
isQuark
(self, object):
23
raise
NotImplementedError
24
25
def
isLepton
(self, object):
26
raise
NotImplementedError
27
28
def
isGluon
(self, object):
29
raise
NotImplementedError
30
31
def
isBoson
(self, object):
32
raise
NotImplementedError
33
34
def
color
(self, object):
35
raise
NotImplementedError
36
37
def
lineStyle
(self, object):
38
raise
NotImplementedError
39
40
def
createParticle
(self):
41
raise
NotImplementedError
42
43
def
charge
(self, object):
44
raise
NotImplementedError
45
46
def
linkMother
(self, object, mother):
47
raise
NotImplementedError
48
49
def
linkDaughter
(self, object, daughter):
50
raise
NotImplementedError
51
Vispa.Share.ParticleDataAccessor.ParticleDataAccessor
Definition:
ParticleDataAccessor.py:1
Vispa.Share.ParticleDataAccessor.ParticleDataAccessor.isLepton
def isLepton(self, object)
Definition:
ParticleDataAccessor.py:25
Vispa.Share.ParticleDataAccessor.ParticleDataAccessor.createParticle
def createParticle(self)
Definition:
ParticleDataAccessor.py:40
Vispa.Share.ParticleDataAccessor.ParticleDataAccessor.isQuark
def isQuark(self, object)
Definition:
ParticleDataAccessor.py:22
Vispa.Share.ParticleDataAccessor.ParticleDataAccessor.color
def color(self, object)
Definition:
ParticleDataAccessor.py:34
Vispa.Share.ParticleDataAccessor.ParticleDataAccessor.isGluon
def isGluon(self, object)
Definition:
ParticleDataAccessor.py:28
Vispa.Share.ParticleDataAccessor.ParticleDataAccessor.linkDaughter
def linkDaughter(self, object, daughter)
Definition:
ParticleDataAccessor.py:49
Vispa.Share.ParticleDataAccessor.ParticleDataAccessor.id
def id(self, object)
Definition:
ParticleDataAccessor.py:11
Vispa.Share.ParticleDataAccessor.ParticleDataAccessor.isBoson
def isBoson(self, object)
Definition:
ParticleDataAccessor.py:31
Vispa.Share.ParticleDataAccessor.ParticleDataAccessor.linkMother
def linkMother(self, object, mother)
Definition:
ParticleDataAccessor.py:46
Vispa.Share.ParticleDataAccessor.ParticleDataAccessor.particleId
def particleId(self, object)
Definition:
ParticleDataAccessor.py:19
resolutioncreator_cfi.object
object
Definition:
resolutioncreator_cfi.py:4
Vispa.Share.ParticleDataAccessor.ParticleDataAccessor.lineStyle
def lineStyle(self, object)
Definition:
ParticleDataAccessor.py:37
Vispa.Share.ParticleDataAccessor.ParticleDataAccessor.charge
def charge(self, object)
Definition:
ParticleDataAccessor.py:43
Generated for CMSSW Reference Manual by
1.8.11