ATLAS Offline Software
Public Member Functions | Public Attributes | Private Member Functions | List of all members
python.draw_obj._options Class Reference
Inheritance diagram for python.draw_obj._options:
Collaboration diagram for python.draw_obj._options:

Public Member Functions

def __init__ (self, options)
 

Public Attributes

 merge
 
 same
 
 norm
 
 logy
 
 fill
 
 linetype
 
 color
 
 linecolors
 
 other
 

Private Member Functions

def _optmatch (self, lo, pat)
 

Detailed Description

Helper class for parsing options.

Definition at line 75 of file draw_obj.py.

Constructor & Destructor Documentation

◆ __init__()

def python.draw_obj._options.__init__ (   self,
  options 
)

Definition at line 77 of file draw_obj.py.

77  def __init__ (self, options):
78  self.merge = 0
79  self.same = 0
80  self.norm = 0
81  self.logy = 0
82  self.fill = -1
83  self.linetype = -1
84  self.color = -1
85  self.linecolors = 0
86  self.other = ""
87 
88  options = options.replace (',', ' ')
89  for o in options.split():
90  lo = o.lower()
91  if lo in ["merge", "same", "norm", "logy", 'linecolors']:
92  setattr (self, lo, 1)
93  elif (self._optmatch (lo, "fill") or
94  self._optmatch (lo, "linetype") or
95  self._optmatch (lo, "color")):
96  pass
97  else:
98  self.other += o
99  return
100 
101 

Member Function Documentation

◆ _optmatch()

def python.draw_obj._options._optmatch (   self,
  lo,
  pat 
)
private

Definition at line 102 of file draw_obj.py.

102  def _optmatch (self, lo, pat):
103  if lo.startswith (pat+'='):
104  setattr (self, pat, int (lo[len (pat)+1:]))
105  return 1
106  return 0
107 
108 

Member Data Documentation

◆ color

python.draw_obj._options.color

Definition at line 84 of file draw_obj.py.

◆ fill

python.draw_obj._options.fill

Definition at line 82 of file draw_obj.py.

◆ linecolors

python.draw_obj._options.linecolors

Definition at line 85 of file draw_obj.py.

◆ linetype

python.draw_obj._options.linetype

Definition at line 83 of file draw_obj.py.

◆ logy

python.draw_obj._options.logy

Definition at line 81 of file draw_obj.py.

◆ merge

python.draw_obj._options.merge

Definition at line 78 of file draw_obj.py.

◆ norm

python.draw_obj._options.norm

Definition at line 80 of file draw_obj.py.

◆ other

python.draw_obj._options.other

Definition at line 86 of file draw_obj.py.

◆ same

python.draw_obj._options.same

Definition at line 79 of file draw_obj.py.


The documentation for this class was generated from the following file:
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18