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

147 def blackListedHistos():
148  ##GET a black-list file of histograms##
149  if os.environ.has_key("RELMON_SA"):
150  black_list_file="../data/blacklist.txt"
151  else:
152  black_list_file="%s/src/Utilities/RelMon/data/blacklist.txt"%(os.environ["CMSSW_BASE"])
153  bListFile = open(black_list_file,'r')
154  black_listed_histograms = bListFile.read()
155  bListFile.close()
156 
157  histogramArray = black_listed_histograms.split("\n")
158  histogramArray.remove("") #remove the last element which is empty line
159  newarray = []
160  for elem in histogramArray:
161  tmp = elem.split("/") #screw windows as it is being run on lxbuild machines with Linux
162  tmp.insert(1,"Run summary") #insert "Run summary" dir in path as in ROOT files they exists but user haven't defined them
163  newarray.append(("/").join(tmp))
164  return newarray
165  ##------##
166 
167 (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

Author:
anorkus
Date:
2012/10/25 16:10:22
Revision:
1.6

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

Definition at line 15 of file compare_using_files.py.

References split.

15 
16 def getInfoFromFilename(filename):
17  prefix,sample,cmssw_release,tier = filename[:-5].split("__")[:5]
18  run=int(prefix.split("_")[-1][1:])
19  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—##

–Blacklist File –##

Definition at line 55 of file compare_using_files.py.

tuple compare_using_files.black_list = string2blacklist(options.black_list)

Definition at line 229 of file compare_using_files.py.

string compare_using_files.black_list_str = ""

Definition at line 39 of file compare_using_files.py.

list compare_using_files.black_listed = blackListedHistos()

Definition at line 232 of file compare_using_files.py.

string compare_using_files.cmssw_release1 = ''

Definition at line 195 of file compare_using_files.py.

string compare_using_files.cmssw_release2 = ''

Definition at line 199 of file compare_using_files.py.

compare_using_files.compare = False

Definition at line 34 of file compare_using_files.py.

string compare_using_files.default = dir_name,

Definition at line 57 of file compare_using_files.py.

string compare_using_files.dest = "dir_name"

Definition at line 56 of file compare_using_files.py.

string compare_using_files.dir_name = ""

Definition at line 31 of file compare_using_files.py.

tuple compare_using_files.directory = Directory(options.dir_name)

Definition at line 249 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  )
void set(const std::string &name, int value)
set the flag, with a run-time name

Definition at line 250 of file compare_using_files.py.

compare_using_files.do_pngs = False

Definition at line 37 of file compare_using_files.py.

string compare_using_files.fulldirname = options.outdir_name

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

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

Definition at line 324 of file compare_using_files.py.

string compare_using_files.original_pickle_name = ""

Definition at line 173 of file compare_using_files.py.

compare_using_files.outdir_name = ""

Definition at line 32 of file compare_using_files.py.

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

Definition at line 300 of file compare_using_files.py.

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

Definition at line 45 of file compare_using_files.py.

compare_using_files.pickle_name = options.pklfile

Definition at line 319 of file compare_using_files.py.

compare_using_files.report = False

Definition at line 35 of file compare_using_files.py.

compare_using_files.run = run1

Definition at line 220 of file compare_using_files.py.

int compare_using_files.run1 = -1

Definition at line 193 of file compare_using_files.py.

int compare_using_files.run2 = -1

Definition at line 197 of file compare_using_files.py.

compare_using_files.sample = sample1

Definition at line 214 of file compare_using_files.py.

compare_using_files.sample1 = ''

Definition at line 194 of file compare_using_files.py.

string compare_using_files.sample2 = ''

Definition at line 198 of file compare_using_files.py.

string compare_using_files.stat_test = "Chi2"

Definition at line 25 of file compare_using_files.py.

int compare_using_files.test_threshold = 1

Definition at line 26 of file compare_using_files.py.

string compare_using_files.tier1 = ''

Definition at line 196 of file compare_using_files.py.

string compare_using_files.tier2 = ''

Definition at line 200 of file compare_using_files.py.