CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
produceOfflineValidationTex.ValidationPlots Class Reference

Public Member Functions

def __init__
 

Public Attributes

 path
 
 plots
 

Detailed Description

Definition at line 32 of file produceOfflineValidationTex.py.

Constructor & Destructor Documentation

def produceOfflineValidationTex.ValidationPlots.__init__ (   self,
  path 
)

Definition at line 33 of file produceOfflineValidationTex.py.

References cmsRelvalreport.exit.

33 
34  def __init__(self, path):
35  if not os.path.isdir(path):
36  print "Error: Directory "+path+" not found!"
37  exit(1)
38  if not path.endswith('/'):
39  path += '/'
40  path = path.replace('\\', '/') # Beacause LaTeX has issues with '\'.
41  self.path = path
42  # List of plot files in given directory:
43  self.plots = [file for file in os.listdir(path)
44  if file.endswith('.eps')]
45 
46 
# Layout of plots on a page:

Member Data Documentation

produceOfflineValidationTex.ValidationPlots.path

Definition at line 40 of file produceOfflineValidationTex.py.

Referenced by python.rootplot.rootmath.Target.__repr__().

produceOfflineValidationTex.ValidationPlots.plots

Definition at line 42 of file produceOfflineValidationTex.py.