Definition at line 66 of file navigation2dot.py.
◆ __init__()
def navigation2dot.TE.__init__ |
( |
|
self, |
|
|
|
s |
|
) |
| |
Definition at line 67 of file navigation2dot.py.
75 self.ptr = tok[3].
split(
':')[1]
76 self.roi = tok[5].
split(
':')[1]
84 self.relations = tok[4].
split(
',')[1].
split(
' ')[0:-1]
91 if options[
'drawFeatures']:
93 if 'keyprints' in part:
98 for field
in part.split(
" "):
99 if field.find(
"CLID")
is not -1:
100 clid = field.split(
":")[1].lstrip(
' ').lstrip(
' ')
101 elif field.find(
"label")
is not -1:
102 label = field.split(
":")[1].rstrip(
"\"").lstrip(
"\"")
103 elif field.find(
"idx")
is not -1:
◆ __str__()
def navigation2dot.TE.__str__ |
( |
|
self | ) |
|
◆ edges()
def navigation2dot.TE.edges |
( |
|
self | ) |
|
Draws node and edges.
Definition at line 149 of file navigation2dot.py.
150 """ Draws node and edges. """
152 for rel
in self.relations:
153 line +=
'X'+self.ptr +
' -> X' + rel +
'\n'
◆ node()
def navigation2dot.TE.node |
( |
|
self | ) |
|
Draws node of the graph.
Definition at line 113 of file navigation2dot.py.
114 """ Draws node of the graph. """
117 if options[
'regex'].
search(self.tename) ==
None and self.tename !=
'0':
121 nodename =
'X'+
str(self.ptr)
122 line = nodename +
' [ label="{TE: ' + self.tename
124 line +=
reduce(
lambda x,y: x +
"|"+y[0]+
"(" +y[1] +
' '+ y[2]+
str(y[3])+
")", self.features,
"")
125 line +=
'}", style=filled, '
128 if self.tename
is '0':
129 line +=
'fillcolor=pink, '
132 line +=
'color=green, '
134 line +=
'color=plum, '
138 line +=
'fillcolor=red, '
140 line +=
'fillcolor=palegreen, '
145 line +=
'shape=record'
◆ active
◆ error
◆ features
navigation2dot.TE.features |
◆ ptr
◆ relations
navigation2dot.TE.relations |
◆ roi
◆ tename
◆ terminal
navigation2dot.TE.terminal |
The documentation for this class was generated from the following file:
void search(TDirectory *td, const std::string &s, std::string cwd, node *n)
recursive directory search for TH1 and TH2 and TProfiles
void reduce(HepMC::GenEvent *ge, std::vector< HepMC::GenParticlePtr > toremove)
Remove unwanted particles from the event, collapsing the graph structure consistently.