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 7 of file classes.py.

Constructor & Destructor Documentation

◆ __init__()

def classes.PlotData.__init__ (   self,
  mode 
)

Definition at line 11 of file classes.py.

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

Member Data Documentation

◆ binPosition

classes.PlotData.binPosition

Definition at line 19 of file classes.py.

◆ binShift

classes.PlotData.binShift

Definition at line 17 of file classes.py.

◆ data

classes.PlotData.data

◆ hiddenEntries

classes.PlotData.hiddenEntries

Definition at line 18 of file classes.py.

◆ histo

classes.PlotData.histo

Definition at line 21 of file classes.py.

◆ histoAxis

classes.PlotData.histoAxis

Definition at line 22 of file classes.py.

◆ label

classes.PlotData.label

◆ maxBinShift

classes.PlotData.maxBinShift

Definition at line 15 of file classes.py.

◆ maxShift

classes.PlotData.maxShift

Definition at line 13 of file classes.py.

◆ minShift

classes.PlotData.minShift

Definition at line 14 of file classes.py.

◆ numberOfBins

classes.PlotData.numberOfBins

Definition at line 12 of file classes.py.

◆ objid

classes.PlotData.objid

Definition at line 27 of file classes.py.

◆ text

classes.PlotData.text

◆ title

classes.PlotData.title

◆ unit

classes.PlotData.unit

Definition at line 32 of file classes.py.

◆ usedRange

classes.PlotData.usedRange

Definition at line 20 of file classes.py.

◆ xyz

classes.PlotData.xyz

Definition at line 30 of file classes.py.