CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
classes.PlotData Class Reference

Classes which are needed by the mps_validate.py file. More...

Public Member Functions

def __init__ (self, mode)
 

Public Attributes

 binPosition
 
 binShift
 
 data
 
 hiddenEntries
 
 histo
 
 histoAxis
 
 label
 
 maxBinShift
 
 maxShift
 
 minShift
 
 numberOfBins
 
 objid
 
 text
 
 title
 
 unit
 
 usedRange
 
 xyz
 

Detailed Description

Classes which are needed by the mps_validate.py file.

Hold information about XYZ

Definition at line 6 of file classes.py.

Constructor & Destructor Documentation

def classes.PlotData.__init__ (   self,
  mode 
)

Definition at line 10 of file classes.py.

10  def __init__(self, mode):
11  self.numberOfBins = [0, 0, 0]
12  self.maxShift = [0, 0, 0]
13  self.minShift = [0, 0, 0]
14  self.maxBinShift = [0, 0, 0]
15  # used binShift
16  self.binShift = [0, 0, 0]
17  self.hiddenEntries = [0, 0, 0]
18  self.binPosition = [1, 1, 1]
19  self.usedRange = [0, 0, 0]
20  self.histo = []
21  self.histoAxis = []
22  # plot title and text
23  self.title = 0
24  self.text = 0
25  self.label = ""
26  self.objid = 0
27  # switch mode for position, rotation, distortion
28  if (mode == "xyz"):
29  self.xyz = {0: "X", 1: "Y", 2: "Z"}
30  self.data = [0, 1, 2]
31  self.unit = "#mum"
32  if (mode == "rot"):
33  self.xyz = {0: "#alpha", 1: "#beta", 2: "#gamma"}
34  self.data = [3, 4, 5]
35  self.unit = "mrad"
36  if (mode == "dist"):
37  self.xyz = {0: "A", 1: "B", 2: "C"}
38  self.data = [6, 7, 8]
39  self.unit = ""
40 
41 
def __init__(self, mode)
Definition: classes.py:10

Member Data Documentation

classes.PlotData.binPosition

Definition at line 18 of file classes.py.

classes.PlotData.binShift

Definition at line 16 of file classes.py.

classes.PlotData.data
classes.PlotData.hiddenEntries

Definition at line 17 of file classes.py.

classes.PlotData.histo

Definition at line 20 of file classes.py.

classes.PlotData.histoAxis

Definition at line 21 of file classes.py.

classes.PlotData.label
classes.PlotData.maxBinShift

Definition at line 14 of file classes.py.

classes.PlotData.maxShift

Definition at line 12 of file classes.py.

classes.PlotData.minShift

Definition at line 13 of file classes.py.

classes.PlotData.numberOfBins

Definition at line 11 of file classes.py.

classes.PlotData.objid

Definition at line 26 of file classes.py.

classes.PlotData.text
classes.PlotData.title
classes.PlotData.unit

Definition at line 31 of file classes.py.

classes.PlotData.usedRange

Definition at line 19 of file classes.py.

classes.PlotData.xyz

Definition at line 29 of file classes.py.