Definition at line 110 of file LArG4PlottingScript.py.
◆ __init__()
def LArG4PlottingScript.RestrictEntry.__init__ |
( |
|
self | ) |
|
◆ __str__()
def LArG4PlottingScript.RestrictEntry.__str__ |
( |
|
self | ) |
|
Definition at line 119 of file LArG4PlottingScript.py.
120 outstr = self.var+
" :"
121 for rang
in self.rangeList :
122 outstr+=
" ["+
str(rang[0])+
".."+
str(rang[1])+
"]"
◆ addRange()
def LArG4PlottingScript.RestrictEntry.addRange |
( |
|
self, |
|
|
|
rang |
|
) |
| |
Definition at line 124 of file LArG4PlottingScript.py.
124 def addRange(self,rang) :
125 parsed = rang.split(
"..")
127 parsed[0] =
float(parsed[0])
129 parsed[0] = -999999.9
131 parsed[1] =
float(parsed[1])
133 parsed[1] = 9999999.9
134 self.rangeList.
append(parsed[0:2])
◆ addRangeAbs()
def LArG4PlottingScript.RestrictEntry.addRangeAbs |
( |
|
self, |
|
|
|
rang |
|
) |
| |
Definition at line 135 of file LArG4PlottingScript.py.
135 def addRangeAbs(self,rang) :
136 parsed = rang.split(
"..")
138 parsed[0] =
float(parsed[0])
142 parsed[1] =
float(parsed[1])
144 parsed[1] = 9999999.9
145 if (parsed[0] < 0)
or (parsed[1] <= 0) :
146 print (
"WARNING: The absolute range is not valid: less then zero. Ignore.")
148 rang =
str(parsed[0])+
".."+
str(parsed[1])
149 rang2 =
str(-parsed[1])+
".."+
str(-parsed[0])
◆ checkVar()
def LArG4PlottingScript.RestrictEntry.checkVar |
( |
|
self, |
|
|
|
value |
|
) |
| |
Definition at line 114 of file LArG4PlottingScript.py.
114 def checkVar(self,value) :
115 for rang
in self.rangeList :
116 if (value >= rang[0])
and (value <= rang[1]) :
◆ rangeList
LArG4PlottingScript.RestrictEntry.rangeList |
◆ var
LArG4PlottingScript.RestrictEntry.var |
The documentation for this class was generated from the following file: