CMS 3D CMS Logo

muonHIP::Selection Class Reference

Inheritance diagram for muonHIP::Selection:

muonHIP::Convergence

List of all members.

Public Member Functions

def __init__
def __repr__
def Draw
def update3d

Public Attributes

 func
 granularity
 hist
 histograms
 iteration
 merged
 selected
 superset
 tfile


Detailed Description

Definition at line 70 of file muonHIP.py.


Member Function Documentation

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 
)

Definition at line 90 of file muonHIP.py.

00090                        :
00091     self.merged.Draw(*args)
00092       
  def update3d(self):

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):


Member Data Documentation

muonHIP::Selection::func

Definition at line 80 of file muonHIP.py.

muonHIP::Selection::granularity

Reimplemented in muonHIP::Convergence.

Definition at line 72 of file muonHIP.py.

muonHIP::Selection::hist

Definition at line 81 of file muonHIP.py.

muonHIP::Selection::histograms

Definition at line 87 of file muonHIP.py.

muonHIP::Selection::iteration

Definition at line 85 of file muonHIP.py.

muonHIP::Selection::merged

Definition at line 86 of file muonHIP.py.

muonHIP::Selection::selected

Definition at line 88 of file muonHIP.py.

muonHIP::Selection::superset

Definition at line 83 of file muonHIP.py.

muonHIP::Selection::tfile

Definition at line 84 of file muonHIP.py.


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:49:12 2009 for CMSSW by  doxygen 1.5.4