1 from builtins
import range
2 main_page_template =
'''<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
5 <link type="text/css" href="http://cern.ch/cms-project-tau-validation/styles.css" rel="stylesheet">
6 <title>Tau ID Validation</title>
10 <A href="https://cms-project-tauvalidation.web.cern.ch/cms-project-tauvalidation/">Home</A>
11 <A href="https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideTauValidation">Wiki</A>
15 <h1>Tau ID Validation</h1>
18 <h2>Official releases validated:</h2>
22 <h2>Special RelVal Validation:</h2>
26 <h2>Custom validation, tests and other stuff:</h2>
33 create_main_list_element =
lambda x:
' <li><a href="%s/">%s</a></li>\n' % (x,x)
35 from string
import Template
36 usual_validation_template = Template(
'''<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
39 <link type="text/css" href="http://cern.ch/cms-project-tau-validation/styles.css" rel="stylesheet">
40 <title>$THIS_RELEASE Validation Results</title>
44 <A href="https://cms-project-tauvalidation.web.cern.ch/cms-project-tauvalidation/">Home</A>
45 <A href="https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideTauValidation">Wiki</A>
49 <h1>$THIS_RELEASE Validation Results</h1>
52 <h2>Configuration:</h2>
63 chunk_list =
lambda l,n: [l[i:i+n]
for i
in range(0, len(l), n)]
64 rows_paths = chunk_list(paths_to_pictures,2)
65 cell_template =
' <td style="width: 640px;"><A href=%s><IMG src="%s" width="640" align="center" border="0"></A></td>'
66 row_template =
''' <tr>
68 rows =
''.
join([row_template %
''.
join([ cell_template % (path,path)
for path
in row])
for row
in rows_paths])
69 reference =
'<A href=%s>Reference</A>' % ref_file
if ref_file
else 'Reference not available'
70 source =
'<A href=%s>Input Source</A>' % source_file
if ref_file
else 'Source not available'
71 return ''' <h3>%s ( <A href=%s>Root File</A> ) ( %s ) ( %s ) ( <A href=%s>Full Directory Content</A> )</h3>
72 <table style="text-align: left; " border="1" cellpadding="2" cellspacing="1">
77 ''' % (dataset_name, root_link, reference, source, dir_link, rows)
const uint16_t range(const Frame &aFrame)
static std::string join(char **cmd)
def usual_validation_dataset_template