CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ParticleDataAccessor.py
Go to the documentation of this file.
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 
list object
Definition: dbtoconf.py:77