test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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.linkDaughter
def linkDaughter
Definition:
ParticleDataAccessor.py:49
Vispa.Share.ParticleDataAccessor.ParticleDataAccessor.createParticle
def createParticle
Definition:
ParticleDataAccessor.py:40
Vispa.Share.ParticleDataAccessor.ParticleDataAccessor.particleId
def particleId
Definition:
ParticleDataAccessor.py:19
Vispa.Share.ParticleDataAccessor.ParticleDataAccessor.isGluon
def isGluon
Definition:
ParticleDataAccessor.py:28
Vispa.Share.ParticleDataAccessor.ParticleDataAccessor.color
def color
Definition:
ParticleDataAccessor.py:34
Vispa.Share.ParticleDataAccessor.ParticleDataAccessor.isBoson
def isBoson
Definition:
ParticleDataAccessor.py:31
Vispa.Share.ParticleDataAccessor.ParticleDataAccessor.isQuark
def isQuark
Definition:
ParticleDataAccessor.py:22
Vispa.Share.ParticleDataAccessor.ParticleDataAccessor.id
def id
Definition:
ParticleDataAccessor.py:11
dbtoconf.object
list object
Definition:
dbtoconf.py:77
Vispa.Share.ParticleDataAccessor.ParticleDataAccessor.linkMother
def linkMother
Definition:
ParticleDataAccessor.py:46
Vispa.Share.ParticleDataAccessor.ParticleDataAccessor.charge
def charge
Definition:
ParticleDataAccessor.py:43
Vispa.Share.ParticleDataAccessor.ParticleDataAccessor.isLepton
def isLepton
Definition:
ParticleDataAccessor.py:25
Vispa.Share.ParticleDataAccessor.ParticleDataAccessor.lineStyle
def lineStyle
Definition:
ParticleDataAccessor.py:37
Generated for CMSSW Reference Manual by
1.8.5