CMS 3D CMS Logo

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

Functions

def unpackRelease
 

Variables

string __author__ = "Mauro Verzetti (mauro.verzetti@cern.ch)"
 
string __doc__ = """Script to update the web-page to show newly updated results. First upload the TauID directory in the proper location in $PastResults"""
 
tuple cfg_file = glob.glob(tauid_dir+'*/Config/showtags.txt')
 
tuple config = open(cfg_file)
 
list custom_made = [d for d in webDir_subdirs if not d in official_releases and not d in special_releases]
 
string custom_made_links = ''
 
list data_html = []
 
list datasets = [x for x in os.listdir(tauid_dir) if os.path.isdir(tauid_dir+x) and not x == 'Reference']
 
string dir_link = 'TauID/'
 
tuple dname = dataset.split('_')
 
tuple main_web_page = templates.main_page_template%(official_releases_links, special_releases_links, custom_made_links)
 
tuple main_web_page_html = open(main_web_page_path,'w')
 
string main_web_page_path = webDir+'index.html'
 
tuple official_releases = sorted( [x for x in webDir_subdirs if re.findall(r'^CMSSW_[0-9]+_[0-9]+_[0-9]+(?:_pre[0-9]+)?$',x)], key=unpackRelease)
 
string official_releases_links = ''
 
tuple parser = OptionParser(description=__doc__)
 
list pics = [path.split(rel+'/')[1] for path in glob.glob(tauid_dir+dataset+'/*.png')]
 
tuple ref_file = (glob.glob(tauid_dir+'Reference/*'+dname+'.root')[0])
 
string reldir = webDir+rel+'/'
 
tuple release_html_page = templates.usual_validation_template.substitute(THIS_RELEASE=rel,CONFIG=config,DATASETS=''.join(data_html) )
 
tuple release_page_html = open(release_web_page_path,'w')
 
string release_web_page_path = reldir+'index.html'
 
tuple rootf = (roots)
 
tuple roots = glob.glob(tauid_dir+dataset+'/*.root')
 
string source = 'TauID/'
 
tuple special_releases = sorted( [x for x in webDir_subdirs if re.findall(r'^CMSSW_[0-9]+_[0-9]+_[0-9]+',x) and not x in official_releases], key=unpackRelease)
 
string special_releases_links = ''
 
string tauid_dir = webDir+rel+'/TauID/'
 
list webDir_subdirs = [x for x in os.listdir( webDir ) if os.path.isdir(webDir+x)]
 

Function Documentation

def RefreshWebPage.unpackRelease (   relName)

Definition at line 19 of file RefreshWebPage.py.

References print().

19 
20 def unpackRelease(relName):
21  m = re.match(r'^CMSSW_(?P<one>[0-9]+)_(?P<two>[0-9]+)_(?P<three>[0-9]+)(?:_pre(?P<four>[0-9]+))?',relName)
22  if m:
23  prev = int(m.group('four')) if m.group('four') else 1000000
24  return (m.group('one'),m.group('two'),m.group('three'),prev)
25  return (0,0)
26 
27 try:
28  webDir = os.environ['PastResults']
29 except:
30  print('Run cmsenv and source UtilityCommands.(c)sh first!')
31  sys.exit(0)
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47

Variable Documentation

string RefreshWebPage.__author__ = "Mauro Verzetti (mauro.verzetti@cern.ch)"

Definition at line 12 of file RefreshWebPage.py.

string RefreshWebPage.__doc__ = """Script to update the web-page to show newly updated results. First upload the TauID directory in the proper location in $PastResults"""

Definition at line 13 of file RefreshWebPage.py.

tuple RefreshWebPage.cfg_file = glob.glob(tauid_dir+'*/Config/showtags.txt')

Definition at line 52 of file RefreshWebPage.py.

tuple RefreshWebPage.config = open(cfg_file)

Definition at line 53 of file RefreshWebPage.py.

list RefreshWebPage.custom_made = [d for d in webDir_subdirs if not d in official_releases and not d in special_releases]

Definition at line 36 of file RefreshWebPage.py.

string RefreshWebPage.custom_made_links = ''

Definition at line 41 of file RefreshWebPage.py.

list RefreshWebPage.data_html = []

Definition at line 54 of file RefreshWebPage.py.

list RefreshWebPage.datasets = [x for x in os.listdir(tauid_dir) if os.path.isdir(tauid_dir+x) and not x == 'Reference']

Definition at line 51 of file RefreshWebPage.py.

string RefreshWebPage.dir_link = 'TauID/'

Definition at line 64 of file RefreshWebPage.py.

tuple RefreshWebPage.dname = dataset.split('_')

Definition at line 56 of file RefreshWebPage.py.

Referenced by SiPixelDataQuality.computeGlobalQualityFlag(), SiStripActionExecutor.createSummary(), SiStripActionExecutor.createSummaryOffline(), SiStripPopConBadComponentsHandlerFromDQM.dqmEndJob(), SiStripQualityChecker.fillDetectorStatus(), SiPixelActionExecutor.fillEfficiency(), SiPixelDataQuality.fillGlobalQualityPlot(), SiPixelActionExecutor.fillOccupancy(), SiStripQualityChecker.fillSubDetStatus(), SiPixelInformationExtractor.findNoisyPixels(), SiStripSummaryCreator.getSummaryME(), SiStripActionExecutor.printFaultyModuleList(), printSOF(), and SiStripTrackerMapCreator.setTkMapFromHistogram().

tuple RefreshWebPage.main_web_page = templates.main_page_template%(official_releases_links, special_releases_links, custom_made_links)

Definition at line 42 of file RefreshWebPage.py.

tuple RefreshWebPage.main_web_page_html = open(main_web_page_path,'w')

Definition at line 44 of file RefreshWebPage.py.

string RefreshWebPage.main_web_page_path = webDir+'index.html'

Definition at line 43 of file RefreshWebPage.py.

tuple RefreshWebPage.official_releases = sorted( [x for x in webDir_subdirs if re.findall(r'^CMSSW_[0-9]+_[0-9]+_[0-9]+(?:_pre[0-9]+)?$',x)], key=unpackRelease)

Definition at line 34 of file RefreshWebPage.py.

string RefreshWebPage.official_releases_links = ''

Definition at line 39 of file RefreshWebPage.py.

tuple RefreshWebPage.parser = OptionParser(description=__doc__)

Definition at line 15 of file RefreshWebPage.py.

list RefreshWebPage.pics = [path.split(rel+'/')[1] for path in glob.glob(tauid_dir+dataset+'/*.png')]

Definition at line 59 of file RefreshWebPage.py.

tuple RefreshWebPage.ref_file = (glob.glob(tauid_dir+'Reference/*'+dname+'.root')[0])

Definition at line 62 of file RefreshWebPage.py.

string RefreshWebPage.reldir = webDir+rel+'/'

Definition at line 50 of file RefreshWebPage.py.

tuple RefreshWebPage.release_html_page = templates.usual_validation_template.substitute(THIS_RELEASE=rel,CONFIG=config,DATASETS=''.join(data_html) )

Definition at line 66 of file RefreshWebPage.py.

tuple RefreshWebPage.release_page_html = open(release_web_page_path,'w')

Definition at line 68 of file RefreshWebPage.py.

string RefreshWebPage.release_web_page_path = reldir+'index.html'

Definition at line 67 of file RefreshWebPage.py.

tuple RefreshWebPage.rootf = (roots)

Definition at line 61 of file RefreshWebPage.py.

tuple RefreshWebPage.roots = glob.glob(tauid_dir+dataset+'/*.root')

Definition at line 60 of file RefreshWebPage.py.

string RefreshWebPage.source = 'TauID/'

Definition at line 63 of file RefreshWebPage.py.

tuple RefreshWebPage.special_releases = sorted( [x for x in webDir_subdirs if re.findall(r'^CMSSW_[0-9]+_[0-9]+_[0-9]+',x) and not x in official_releases], key=unpackRelease)

Definition at line 35 of file RefreshWebPage.py.

string RefreshWebPage.special_releases_links = ''

Definition at line 40 of file RefreshWebPage.py.

string RefreshWebPage.tauid_dir = webDir+rel+'/TauID/'

Definition at line 49 of file RefreshWebPage.py.

list RefreshWebPage.webDir_subdirs = [x for x in os.listdir( webDir ) if os.path.isdir(webDir+x)]

Definition at line 33 of file RefreshWebPage.py.