test
CMS 3D CMS Logo

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

Functions

def blackListedHistos
 
def getInfoFromFilename
 https://twiki.cern.ch/twiki/bin/view/CMSPublic/RelMon More...
 

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,"w")
 
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 149 of file compare_using_files.py.

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

https://twiki.cern.ch/twiki/bin/view/CMSPublic/RelMon

Danilo Piparo CERN - danil.nosp@m.o.pi.nosp@m.paro@.nosp@m.cern.nosp@m..ch

Definition at line 12 of file compare_using_files.py.

References split.

12 
13 def getInfoFromFilename(filename):
14  prefix,sample,cmssw_release,tier = filename[:-5].split("__")[:5]
15  run=int(prefix.split("_")[-1][1:])
16  return run,sample,cmssw_release,tier
def getInfoFromFilename
https://twiki.cern.ch/twiki/bin/view/CMSPublic/RelMon
double split
Definition: MVATrainer.cc:139

Variable Documentation

string compare_using_files.action = "store"

—HASHING—##

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

–Blacklist File –##

Definition at line 52 of file compare_using_files.py.

tuple compare_using_files.black_list = string2blacklist(options.black_list)

Definition at line 233 of file compare_using_files.py.

string compare_using_files.black_list_str = ""

Definition at line 36 of file compare_using_files.py.

list compare_using_files.black_listed = blackListedHistos()

Definition at line 236 of file compare_using_files.py.

string compare_using_files.cmssw_release1 = ''

Definition at line 198 of file compare_using_files.py.

string compare_using_files.cmssw_release2 = ''

Definition at line 202 of file compare_using_files.py.

compare_using_files.compare = False

Definition at line 31 of file compare_using_files.py.

string compare_using_files.default = dir_name,

Definition at line 54 of file compare_using_files.py.

string compare_using_files.dest = "dir_name"

Definition at line 53 of file compare_using_files.py.

string compare_using_files.dir_name = ""

Definition at line 28 of file compare_using_files.py.

tuple compare_using_files.directory = Directory(options.dir_name)

Definition at line 253 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 254 of file compare_using_files.py.

compare_using_files.do_pngs = False

Definition at line 34 of file compare_using_files.py.

string compare_using_files.fulldirname = options.outdir_name

Definition at line 226 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 55 of file compare_using_files.py.

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

Definition at line 329 of file compare_using_files.py.

string compare_using_files.original_pickle_name = ""

Definition at line 176 of file compare_using_files.py.

compare_using_files.outdir_name = ""

Definition at line 29 of file compare_using_files.py.

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

Definition at line 305 of file compare_using_files.py.

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

Definition at line 42 of file compare_using_files.py.

compare_using_files.pickle_name = options.pklfile

Definition at line 324 of file compare_using_files.py.

compare_using_files.report = False

Definition at line 32 of file compare_using_files.py.

compare_using_files.run = run1

Definition at line 224 of file compare_using_files.py.

int compare_using_files.run1 = -1

Definition at line 196 of file compare_using_files.py.

int compare_using_files.run2 = -1

Definition at line 200 of file compare_using_files.py.

compare_using_files.sample = sample1

Definition at line 218 of file compare_using_files.py.

compare_using_files.sample1 = ''

Definition at line 197 of file compare_using_files.py.

string compare_using_files.sample2 = ''

Definition at line 201 of file compare_using_files.py.

string compare_using_files.stat_test = "Chi2"

Definition at line 22 of file compare_using_files.py.

int compare_using_files.test_threshold = 1

Definition at line 23 of file compare_using_files.py.

string compare_using_files.tier1 = ''

Definition at line 199 of file compare_using_files.py.

string compare_using_files.tier2 = ''

Definition at line 203 of file compare_using_files.py.