CMS 3D CMS Logo

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

Functions

def blackListedHistos
 
def getInfoFromFilename
 

Variables

string action = "store"
 —HASHING—## More...
 
tuple black_list = string2blacklist(options.black_list)
 
string black_list_str = ""
 
tuple black_listed = blackListedHistos()
 
string cmssw_release1 = ''
 
string cmssw_release2 = ''
 
 compare = False
 
 default = dir_name,
 
string dest = "dir_name"
 
string dir_name = ""
 
tuple directory = Directory(options.dir_name)
 
tuple dirwalker
 
 do_pngs = False
 
 fulldirname = options.outdir_name
 
string help = "The 'directory' to be checked in the DQM \n(default is %s)"
 
tuple ifile = open(pickle_name,"rb")
 
string original_pickle_name = ""
 
string outdir_name = ""
 
tuple output = open(original_pickle_name,"wb")
 
tuple parser = OptionParser(usage="usage: %prog file1 file2 [options]")
 
 pickle_name = options.pklfile
 
 report = False
 
 run = run1
 
int run1 = -1
 
int run2 = -1
 
 sample = sample1
 
string sample1 = ''
 
string sample2 = ''
 
string stat_test = "Chi2"
 
int test_threshold = 1
 
string tier1 = ''
 
string tier2 = ''
 

Function Documentation

def compare_using_files.blackListedHistos ( )

Definition at line 150 of file compare_using_files.py.

151 def blackListedHistos():
152  ##GET a black-list file of histograms##
153  if "RELMON_SA" in os.environ:
154  black_list_file="../data/blacklist.txt"
155  else:
156  black_list_file="%s/src/Utilities/RelMon/data/blacklist.txt"%(os.environ["CMSSW_BASE"])
157  bListFile = open(black_list_file,'r')
158  black_listed_histograms = bListFile.read()
159  bListFile.close()
160 
161  histogramArray = black_listed_histograms.split("\n")
162  histogramArray.remove("") #remove the last element which is empty line
163  newarray = []
164  for elem in histogramArray:
165  tmp = elem.split("/") #screw windows as it is being run on lxbuild machines with Linux
166  tmp.insert(1,"Run summary") #insert "Run summary" dir in path as in ROOT files they exists but user haven't defined them
167  newarray.append(("/").join(tmp))
168  return newarray
169  ##------##
170 
171 (options, args) = parser.parse_args()
static std::string join(char **cmd)
Definition: RemoteFile.cc:19
def compare_using_files.getInfoFromFilename (   filename)

Definition at line 13 of file compare_using_files.py.

References submitPVValidationJobs.split().

13 
14 def getInfoFromFilename(filename):
15  prefix,sample,cmssw_release,tier = filename[:-5].split("__")[:5]
16  run=int(prefix.split("_")[-1][1:])
17  return run,sample,cmssw_release,tier

Variable Documentation

string compare_using_files.action = "store"

—HASHING—##

– USE CSS files in web access, for stand-alone usage –##

–Blacklist File –##

Definition at line 53 of file compare_using_files.py.

tuple compare_using_files.black_list = string2blacklist(options.black_list)

Definition at line 234 of file compare_using_files.py.

string compare_using_files.black_list_str = ""

Definition at line 37 of file compare_using_files.py.

list compare_using_files.black_listed = blackListedHistos()

Definition at line 237 of file compare_using_files.py.

string compare_using_files.cmssw_release1 = ''

Definition at line 199 of file compare_using_files.py.

string compare_using_files.cmssw_release2 = ''

Definition at line 203 of file compare_using_files.py.

compare_using_files.compare = False

Definition at line 32 of file compare_using_files.py.

string compare_using_files.default = dir_name,

Definition at line 55 of file compare_using_files.py.

string compare_using_files.dest = "dir_name"

Definition at line 54 of file compare_using_files.py.

string compare_using_files.dir_name = ""

Definition at line 29 of file compare_using_files.py.

tuple compare_using_files.directory = Directory(options.dir_name)

Definition at line 254 of file compare_using_files.py.

tuple compare_using_files.dirwalker
Initial value:
1 = DirWalkerFile(fulldirname,
2  options.dir_name,
3  rootfilename1,rootfilename2,
4  run,
5  black_list,
6  options.stat_test,
7  options.test_threshold,
8  not options.no_successes,
9  options.do_pngs,
10  set(black_listed)
11  )

Definition at line 255 of file compare_using_files.py.

compare_using_files.do_pngs = False

Definition at line 35 of file compare_using_files.py.

string compare_using_files.fulldirname = options.outdir_name

Definition at line 227 of file compare_using_files.py.

string compare_using_files.help = "The 'directory' to be checked in the DQM \n(default is %s)"

Definition at line 56 of file compare_using_files.py.

tuple compare_using_files.ifile = open(pickle_name,"rb")

Definition at line 330 of file compare_using_files.py.

string compare_using_files.original_pickle_name = ""

Definition at line 177 of file compare_using_files.py.

compare_using_files.outdir_name = ""

Definition at line 30 of file compare_using_files.py.

tuple compare_using_files.output = open(original_pickle_name,"wb")

Definition at line 306 of file compare_using_files.py.

tuple compare_using_files.parser = OptionParser(usage="usage: %prog file1 file2 [options]")

Definition at line 43 of file compare_using_files.py.

compare_using_files.pickle_name = options.pklfile

Definition at line 325 of file compare_using_files.py.

compare_using_files.report = False

Definition at line 33 of file compare_using_files.py.

compare_using_files.run = run1

Definition at line 225 of file compare_using_files.py.

int compare_using_files.run1 = -1

Definition at line 197 of file compare_using_files.py.

int compare_using_files.run2 = -1

Definition at line 201 of file compare_using_files.py.

compare_using_files.sample = sample1

Definition at line 219 of file compare_using_files.py.

compare_using_files.sample1 = ''

Definition at line 198 of file compare_using_files.py.

string compare_using_files.sample2 = ''

Definition at line 202 of file compare_using_files.py.

string compare_using_files.stat_test = "Chi2"

Definition at line 23 of file compare_using_files.py.

int compare_using_files.test_threshold = 1

Definition at line 24 of file compare_using_files.py.

string compare_using_files.tier1 = ''

Definition at line 200 of file compare_using_files.py.

string compare_using_files.tier2 = ''

Definition at line 204 of file compare_using_files.py.