Public Member Functions | |
def | __init__ |
def | __repr__ |
def | Draw |
def | update3d |
Public Attributes | |
func | |
granularity | |
hist | |
histograms | |
iteration | |
merged | |
selected | |
superset | |
tfile |
Definition at line 70 of file muonHIP.py.
def muonHIP::Selection::__init__ | ( | self, | ||
func, | ||||
hist, | ||||
granularity, | ||||
superset, | ||||
tfile, | ||||
iteration, | ||||
merged, | ||||
histograms, | ||||
selected | ||||
) |
Definition at line 79 of file muonHIP.py.
00079 : 00080 self.func = func 00081 self.hist = hist 00082 self.granularity = granularity 00083 self.superset = superset 00084 self.tfile = tfile 00085 self.iteration = iteration 00086 self.merged = merged 00087 self.histograms = histograms 00088 self.selected = selected 00089 def Draw(self, *args):
def muonHIP::Selection::__repr__ | ( | self | ) |
Reimplemented in muonHIP::Convergence.
Definition at line 71 of file muonHIP.py.
00071 : 00072 if self.granularity == Disk: dirname = "disk" 00073 elif self.granularity == Chamber: dirname = "chamber" 00074 elif self.granularity == Layer: dirname = "layer" 00075 if len(self.histograms) == 1: s = "" 00076 else: s = "s" 00077 return "<Selection of %d %s%s>" % (len(self.histograms), dirname, s) 00078 def __init__(self, func, hist, granularity, superset, tfile, iteration, merged, histograms, selected):
def muonHIP::Selection::Draw | ( | self, | ||
args | ||||
) |
def muonHIP::Selection::update3d | ( | self | ) |
Definition at line 93 of file muonHIP.py.
00093 : 00094 if viewer3d == None: 00095 raise RuntimeError, "muonHIP.viewer3d hasn't been created yet. Run muonHIP.view3d()." 00096 00097 if self.granularity == Disk: superset = disks 00098 elif self.granularity == Chamber: superset = chambers 00099 elif self.granularity == Layer: superset = layers 00100 for c in chambers.values(): 00101 if self.granularity == Disk: 00102 test = (c.Disk in self.histograms) 00103 elif self.granularity == Chamber: 00104 test = (c in self.histograms) 00105 elif self.granularity == Layer: 00106 test = False 00107 for l in c.Layer: 00108 if l in self.histograms: 00109 test = True 00110 break 00111 00112 viewer3d.stdin.write("c%d.select(%d)\n" % (c.rawid, test)) 00113 class Convergence(Selection):
Definition at line 80 of file muonHIP.py.
Definition at line 81 of file muonHIP.py.
Definition at line 87 of file muonHIP.py.
Definition at line 85 of file muonHIP.py.
Definition at line 86 of file muonHIP.py.
Definition at line 88 of file muonHIP.py.
Definition at line 83 of file muonHIP.py.
Definition at line 84 of file muonHIP.py.