CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
createTree Namespace Reference

Functions

def parseDir
 

Variables

string comdir = "common/"
 
 common_basedir = comdir
 
string csc_basedir = iteration_directory+'/'
 
list dd = dt_basedir+wheel[0]
 
string default = ''
 
string dest = "inputDir"
 
string dt_basedir = iteration_directory+'/MB/'
 
tuple ff = open("tree_items.js",mode="w")
 
string help = "[REQUIRED] input directory: should contain 'iter1', 'iterN' and 'common' directories filled with alignment_validation_plots.py. The resulting tree_items.js is also dumped into this directory"
 
string iteration1 = "iter1"
 main script More...
 
 iteration_directory = iterationN
 open root and py result files More...
 
string iterationN = "iterN"
 
list mytree = []
 
dictionary NAME_TO_TITLE
 
tuple parser = optparse.OptionParser(usage)
 
tuple pp = pprint.PrettyPrinter(indent=2)
 
string schamber = "%02d"
 
string ssector = "%02d"
 
list tree_level1 = ['test','']
 
tuple tree_level2 = parseDir(dt_basedir,"MB",iteration1,iterationN)
 
tuple tree_level3 = parseDir(dd,wheel[0],iteration1,iterationN)
 
tuple tree_level4 = parseDir(dd,station[0],iteration1,iterationN)
 
tuple tree_level5 = parseDir(dd,"%s/%d" % (station[0],sector),iteration1,iterationN)
 
string type = "string"
 
string usage = '%prog [options]\n'
 functions definitions More...
 

Function Documentation

def createTree.parseDir (   dir,
  label,
  it1 = "",
  itN = "" 
)
it1 and itN   are the first and the last iterations' directory names
   dir           is some directory with the results from for the LAST 
                 iteration, so it must contain a itN substring 
   label         is a label for tree's folder for this directory

Definition at line 117 of file createTree.py.

Variable Documentation

string createTree.comdir = "common/"

Definition at line 109 of file createTree.py.

createTree.common_basedir = comdir

Definition at line 202 of file createTree.py.

string createTree.csc_basedir = iteration_directory+'/'

Definition at line 175 of file createTree.py.

list createTree.dd = dt_basedir+wheel[0]
int createTree.default = ''

Definition at line 72 of file createTree.py.

string createTree.dest = "inputDir"

Definition at line 73 of file createTree.py.

string createTree.dt_basedir = iteration_directory+'/MB/'

Definition at line 150 of file createTree.py.

tuple createTree.ff = open("tree_items.js",mode="w")

Definition at line 212 of file createTree.py.

string createTree.help = "[REQUIRED] input directory: should contain 'iter1', 'iterN' and 'common' directories filled with alignment_validation_plots.py. The resulting tree_items.js is also dumped into this directory"

Definition at line 70 of file createTree.py.

string createTree.iteration1 = "iter1"

main script

Definition at line 107 of file createTree.py.

createTree.iteration_directory = iterationN

open root and py result files

Definition at line 114 of file createTree.py.

string createTree.iterationN = "iterN"

Definition at line 108 of file createTree.py.

list createTree.mytree = []

Definition at line 146 of file createTree.py.

dictionary createTree.NAME_TO_TITLE

Definition at line 18 of file createTree.py.

tuple createTree.parser = optparse.OptionParser(usage)

Definition at line 67 of file createTree.py.

tuple createTree.pp = pprint.PrettyPrinter(indent=2)
string createTree.schamber = "%02d"

Definition at line 189 of file createTree.py.

string createTree.ssector = "%02d"

Definition at line 161 of file createTree.py.

list createTree.tree_level1 = ['test','']

Definition at line 147 of file createTree.py.

tuple createTree.tree_level2 = parseDir(dt_basedir,"MB",iteration1,iterationN)

Definition at line 151 of file createTree.py.

tuple createTree.tree_level3 = parseDir(dd,wheel[0],iteration1,iterationN)

Definition at line 155 of file createTree.py.

tuple createTree.tree_level4 = parseDir(dd,station[0],iteration1,iterationN)

Definition at line 159 of file createTree.py.

tuple createTree.tree_level5 = parseDir(dd,"%s/%d" % (station[0],sector),iteration1,iterationN)

Definition at line 164 of file createTree.py.

string createTree.type = "string"

Definition at line 71 of file createTree.py.

string createTree.usage = '%prog [options]\n'

functions definitions

To parse commandline args

Definition at line 63 of file createTree.py.