Skip to content

Commit 8872b79

Browse files
authored
Merge branch 'master' into CMSSW_14_2_X_tau-pog_BoostedDeepTau
2 parents 61dd161 + d8f3e55 commit 8872b79

File tree

581 files changed

+13133
-14497
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

581 files changed

+13133
-14497
lines changed

Alignment/LaserAlignment/src/LASGlobalData.cc

-4
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,4 @@
22
#ifndef __LASGLOBALDATA_C
33
#define __LASGLOBALDATA_C
44

5-
6-
7-
8-
95
#endif

Alignment/MillePedeAlignmentAlgorithm/python/mpsvalidate/beamerCreator.py

+33-33
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ def addSlide(self, head, text):
2525
self.text += "\\begin{{frame}}[t]{{{0}}}\n".format(head)
2626
self.text += text
2727
self.text += """\\vfill
28-
\\rule{0.9\paperwidth}{1pt}
29-
\insertnavigation{0.89\paperwidth}
28+
\\rule{0.9\\paperwidth}{1pt}
29+
\\insertnavigation{0.89\\paperwidth}
3030
\\end{frame}\n"""
3131

3232
def addSlide_fragile(self, head, text):
3333
self.text += "\\begin{{frame}}[fragile=singleslide]{{{0}}}\n".format(head)
3434
self.text += text
3535
self.text += """\\vfill
36-
\\rule{0.9\paperwidth}{1pt}
37-
\insertnavigation{0.89\paperwidth}
36+
\\rule{0.9\\paperwidth}{1pt}
37+
\\insertnavigation{0.89\\paperwidth}
3838
\\end{frame}\n"""
3939

4040
def add(self, text):
@@ -59,27 +59,27 @@ def create(alignables, pedeDump, additionalData, outputFile, config):
5959

6060
# title page
6161
if (config.message):
62-
text += """\centering
62+
text += """\\centering
6363
\\vspace*{{4cm}}
64-
\Huge\\bfseries Alignment Validation\par
64+
\\Huge\\bfseries Alignment Validation\\par
6565
\\vspace{{2cm}}
66-
\scshape\huge Alignment Campaign\\\\ {{{0}}}\par
66+
\\scshape\\huge Alignment Campaign\\\\ {{{0}}}\\par
6767
\\vfill
68-
\large \\today\par""".format(config.message)
68+
\\large \\today\\par""".format(config.message)
6969
else:
70-
text += """\centering
70+
text += """\\centering
7171
\\vspace*{4cm}
72-
\Huge\\bfseries Alignment Validation\par
72+
\\Huge\\bfseries Alignment Validation\\par
7373
\\vfill
74-
\large \\today\par"""
74+
\\large \\today\\par"""
7575
out.addSlide("", text)
7676

7777
# table of contents
7878
text = "\\tableofcontents"
7979
out.addSlide("Overview", text)
8080

8181
# general information
82-
out.add("\section{General information}")
82+
out.add("\\section{General information}")
8383
text = ""
8484
if (config.message):
8585
text = "Project: {{{0}}}\\\\\n".format(config.message)
@@ -91,7 +91,7 @@ def create(alignables, pedeDump, additionalData, outputFile, config):
9191

9292
# alignment_merge.py
9393
try:
94-
out.add("\subsection{Alignment Configuration}")
94+
out.add("\\subsection{Alignment Configuration}")
9595
text = "\\textbf{{PedeSteerer method:}} {{{0}}}\\\\\n".format(
9696
additionalData.pede_steerer_method)
9797
text += "\\textbf{{PedeSteerer options:}}\\\\\n"
@@ -105,30 +105,30 @@ def create(alignables, pedeDump, additionalData, outputFile, config):
105105

106106
# table of input files with number of tracks
107107
if config.showmonitor:
108-
out.add("\subsection{Datasets with tracks}")
108+
out.add("\\subsection{Datasets with tracks}")
109109
text = """\\begin{table}[h]
110-
\centering
111-
\caption{Datasets with tracks}
110+
\\centering
111+
\\caption{Datasets with tracks}
112112
\\begin{tabular}{ccc}
113-
\hline
113+
\\hline
114114
Dataset & Number of used tracks & Weight \\\\
115-
\hline \n"""
115+
\\hline \n"""
116116
try:
117117
for monitor in mpsv_classes.MonitorData.monitors:
118118
text += "{0} & {1} & {2}\\\\\n".format(monitor.name, monitor.ntracks,
119119
monitor.weight if monitor.weight != None else "--")
120120
except Exception as e:
121121
logger.error("data not found - {0} {1}".format(type(e), e))
122122
if (pedeDump.nrec):
123-
text += "\hline\nNumber of records & {0}\\\\\n".format(pedeDump.nrec)
124-
text += """\hline
125-
\end{tabular}\n
126-
\end{table}\n"""
123+
text += "\\hline\nNumber of records & {0}\\\\\n".format(pedeDump.nrec)
124+
text += """\\hline
125+
\\end{tabular}\n
126+
\\end{table}\n"""
127127
text += "The information in this table is based on the monitor root files. Note that the number of tracks which where used in the pede step can differ from this table.\n"
128128
out.addSlide("Datasets with tracks", text)
129129

130130
# pede.dump.gz
131-
out.add("\subsection{Pede monitoring information}")
131+
out.add("\\subsection{Pede monitoring information}")
132132
try:
133133
if (pedeDump.sumValue != 0):
134134
text = r"\begin{{align*}}Sum(Chi^2)/Sum(Ndf) &= {0}\\ &= {1}\end{{align*}}".format(
@@ -149,20 +149,20 @@ def create(alignables, pedeDump, additionalData, outputFile, config):
149149
logger.error("data not found - {0} {1}".format(type(e), e))
150150

151151
# Parameter plots
152-
out.add("\section{Parameter plots}")
152+
out.add("\\section{Parameter plots}")
153153

154154
# high level Structures
155-
out.add("\subsection{High-level parameters}")
155+
out.add("\\subsection{High-level parameters}")
156156
big = [x for x in config.outputList if (x.plottype == "big")]
157157

158158
for i in big:
159-
text = "\includegraphics[height=0.85\\textheight]{{{0}/plots/pdf/{1}.pdf}}\n".format(
159+
text = "\\includegraphics[height=0.85\\textheight]{{{0}/plots/pdf/{1}.pdf}}\n".format(
160160
config.outputPath, i.filename)
161161

162162
out.addSlide("High-level parameters", text)
163163

164164
# time (IOV) dependent plots
165-
out.add("\subsection{High-level parameters versus time (IOV)}")
165+
out.add("\\subsection{High-level parameters versus time (IOV)}")
166166
time = [x for x in config.outputList if (x.plottype == "time")]
167167

168168
if time:
@@ -172,13 +172,13 @@ def create(alignables, pedeDump, additionalData, outputFile, config):
172172
text = "\\framesubtitle{{{0}}}\n".format(structure)
173173
if any([x.filename for x in time if (x.parameter == mode and x.name == structure)]):
174174
filename = [x.filename for x in time if (x.parameter == mode and x.name == structure)][0]
175-
text += "\includegraphics[height=0.85\\textheight]{{{0}/plots/pdf/{1}.pdf}}\n".format(
175+
text += "\\includegraphics[height=0.85\\textheight]{{{0}/plots/pdf/{1}.pdf}}\n".format(
176176
config.outputPath, filename)
177177

178178
out.addSlide("High-level parameters versus time (IOV)", text)
179179

180180
# hole modules
181-
out.add("\subsection{Module-level parameters}")
181+
out.add("\\subsection{Module-level parameters}")
182182
# check if there are module plots
183183
if any(x for x in config.outputList if (x.plottype == "mod" and x.number == "")):
184184

@@ -201,7 +201,7 @@ def create(alignables, pedeDump, additionalData, outputFile, config):
201201
# check if plot there is a plot in this mode
202202
if module:
203203
text = "\\framesubtitle{{{0}}}\n".format(moduleName)
204-
text += "\includegraphics[height=0.85\\textheight]{{{0}/plots/pdf/{1}.pdf}}\n".format(
204+
text += "\\includegraphics[height=0.85\\textheight]{{{0}/plots/pdf/{1}.pdf}}\n".format(
205205
config.outputPath, module[0].filename)
206206

207207
out.addSlide("Module-level parameters", text)
@@ -210,16 +210,16 @@ def create(alignables, pedeDump, additionalData, outputFile, config):
210210
for plot in moduleSub:
211211
text = "\\framesubtitle{{{0}}}\n".format(
212212
moduleName)
213-
text += "\includegraphics[height=0.85\\textheight]{{{0}/plots/pdf/{1}.pdf}}\n".format(
213+
text += "\\includegraphics[height=0.85\\textheight]{{{0}/plots/pdf/{1}.pdf}}\n".format(
214214
config.outputPath, plot.filename)
215215

216216
out.addSlide("Module-level parameters", text)
217217

218218
# plot taken from the millePedeMonitor_merge.root file
219-
out.add("\section{Monitor plots}")
219+
out.add("\\section{Monitor plots}")
220220
for plot in [x for x in config.outputList if x.plottype == "monitor"]:
221221
text = "\\framesubtitle{{{0}}}\n".format(plot.name)
222-
text += "\includegraphics[height=0.85\\textheight]{{{0}/plots/pdf/{1}.pdf}}\n".format(
222+
text += "\\includegraphics[height=0.85\\textheight]{{{0}/plots/pdf/{1}.pdf}}\n".format(
223223
config.outputPath, plot.filename)
224224
out.addSlide("Monitor", text)
225225

Alignment/MillePedeAlignmentAlgorithm/python/mpsvalidate/dumpparser.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,17 @@ def parse(path, config):
7979

8080
# nrec number of records
8181
if (" = number of records" in line):
82-
number = list(map(int, re.findall("\d+", dumpFile[i])))
82+
number = list(map(int, re.findall("\\d+", dumpFile[i])))
8383
pedeDump.nrec = number[0]
8484

8585
# ntgb total number of parameters
8686
if (" = total number of parameters" in line):
87-
number = list(map(int, re.findall("\d+", dumpFile[i])))
87+
number = list(map(int, re.findall("\\d+", dumpFile[i])))
8888
pedeDump.ntgb = number[0]
8989

9090
# nvgb number of variable parameters
9191
if (" = number of variable parameters" in line):
92-
number = list(map(int, re.findall("\d+", dumpFile[i])))
92+
number = list(map(int, re.findall("\\d+", dumpFile[i])))
9393
pedeDump.nvgb = number[0]
9494

9595
return pedeDump

Alignment/MillePedeAlignmentAlgorithm/python/mpsvalidate/pdfCreator.py

+32-32
Original file line numberDiff line numberDiff line change
@@ -34,30 +34,30 @@ def create(alignables, pedeDump, additionalData, outputFile, config):
3434
# title page
3535
if (config.message):
3636
out += """\\begin{{titlepage}}
37-
\centering
37+
\\centering
3838
\\vspace*{{4cm}}
39-
\Huge\\bfseries Alignment Validation\par
39+
\\Huge\\bfseries Alignment Validation\\par
4040
\\vspace{{2cm}}
41-
\scshape\huge Alignment Campaign\\\\ {{{0}}}\par
41+
\\scshape\\huge Alignment Campaign\\\\ {{{0}}}\\par
4242
\\vfill
43-
\large \\today\par
43+
\\large \\today\\par
4444
\\end{{titlepage}}
4545
\\tableofcontents
4646
\\newpage""".format(config.message)
4747
else:
4848
out += """\\begin{titlepage}
49-
\centering
49+
\\centering
5050
\\vspace*{4cm}
51-
\Huge\\bfseries Alignment Validation\par
51+
\\Huge\\bfseries Alignment Validation\\par
5252
\\vfill
53-
\large \\today\par
53+
\\large \\today\\par
5454
\\end{titlepage}
5555
\\tableofcontents
5656
\\newpage"""
5757

5858
# general information
5959

60-
out += "\section{{General information}}\n"
60+
out += "\\section{{General information}}\n"
6161

6262
if (config.message):
6363
out += "Project: {{{0}}}\\\\\n".format(config.message)
@@ -68,7 +68,7 @@ def create(alignables, pedeDump, additionalData, outputFile, config):
6868

6969
# alignment_merge.py
7070
try:
71-
out += "\subsection{Alignment Configuration}\n"
71+
out += "\\subsection{Alignment Configuration}\n"
7272
out += "\\textbf{{PedeSteerer method:}} {{{0}}}\\\\\n".format(
7373
additionalData.pede_steerer_method)
7474
out += "\\textbf{{PedeSteerer options:}}\\\\\n"
@@ -97,30 +97,30 @@ def create(alignables, pedeDump, additionalData, outputFile, config):
9797

9898
# table of input files with number of tracks
9999
if config.showmonitor:
100-
out += "\subsection{Datasets with tracks}\n"
100+
out += "\\subsection{Datasets with tracks}\n"
101101
out += """\\begin{table}[h]
102-
\centering
103-
\caption{Datasets with tracks}
102+
\\centering
103+
\\caption{Datasets with tracks}
104104
\\begin{tabular}{ccc}
105-
\hline
105+
\\hline
106106
Dataset & Number of used tracks & Weight \\\\
107-
\hline \n"""
107+
\\hline \n"""
108108
for monitor in mpsv_classes.MonitorData.monitors:
109109
out += "{0} & {1} & {2}\\\\\n".format(monitor.name, monitor.ntracks,
110110
monitor.weight if monitor.weight != None else "--")
111111
try:
112112
if (pedeDump.nrec):
113-
out += "\hline\nNumber of records & {0}\\\\\n".format(pedeDump.nrec)
113+
out += "\\hline\nNumber of records & {0}\\\\\n".format(pedeDump.nrec)
114114
except Exception as e:
115115
logger.error("data not found - {0} {1}".format(type(e), e))
116-
out += """\hline
117-
\end{tabular}\n
118-
\end{table}\n"""
116+
out += """\\hline
117+
\\end{tabular}\n
118+
\\end{table}\n"""
119119
out += "The information in this table is based on the monitor root files. Note that the number of tracks which where used in the pede step can differ from this table.\n"
120120
try:
121121
# pede.dump.gz
122122
if config.showdump:
123-
out += "\subsection{{Pede monitoring information}}\n"
123+
out += "\\subsection{{Pede monitoring information}}\n"
124124
if (pedeDump.sumValue != 0):
125125
out += r"\begin{{align*}}Sum(Chi^2)/Sum(Ndf) &= {0}\\ &= {1}\end{{align*}}".format(
126126
pedeDump.sumSteps, pedeDump.sumValue)
@@ -145,7 +145,7 @@ def create(alignables, pedeDump, additionalData, outputFile, config):
145145
out += line + "\n"
146146
out += "\\end{verbatim}\n"
147147

148-
out += "\section{{Parameter plots}}\n"
148+
out += "\\section{{Parameter plots}}\n"
149149
except Exception as e:
150150
logger.error("data not found - {0} {1}".format(type(e), e))
151151

@@ -154,38 +154,38 @@ def create(alignables, pedeDump, additionalData, outputFile, config):
154154
big = [x for x in config.outputList if (x.plottype == "big")]
155155

156156
if big:
157-
out += "\subsection{{High-level parameters}}\n"
157+
out += "\\subsection{{High-level parameters}}\n"
158158
for i in big:
159-
out += "\includegraphics[width=\linewidth]{{{0}/plots/pdf/{1}.pdf}}\n".format(
159+
out += "\\includegraphics[width=\\linewidth]{{{0}/plots/pdf/{1}.pdf}}\n".format(
160160
config.outputPath, i.filename)
161161

162162
# time (IOV) dependent plots
163163
if config.showtime:
164164
time = [x for x in config.outputList if (x.plottype == "time")]
165165

166166
if time:
167-
out += "\subsection{{High-level parameters versus time (IOV)}}\n"
167+
out += "\\subsection{{High-level parameters versus time (IOV)}}\n"
168168
# get list with names of the structures
169169
for structure in [x.name for x in time if x.parameter == "xyz"]:
170-
out += "\subsubsection{{{0}}}\n".format(structure)
170+
out += "\\subsubsection{{{0}}}\n".format(structure)
171171
for mode in ["xyz", "rot"]:
172172
if any([x.filename for x in time if (x.parameter == mode and x.name == structure)]):
173173
filename = [x.filename for x in time if (x.parameter == mode and x.name == structure)][0]
174-
out += "\includegraphics[width=\linewidth]{{{0}/plots/pdf/{1}.pdf}}\n".format(
174+
out += "\\includegraphics[width=\\linewidth]{{{0}/plots/pdf/{1}.pdf}}\n".format(
175175
config.outputPath, filename)
176176

177177
# hole modules
178178
if config.showmodule:
179179
# check if there are module plots
180180
if any(x for x in config.outputList if (x.plottype == "mod" and x.number == "")):
181-
out += "\subsection{{Module-level parameters}}\n"
181+
out += "\\subsection{{Module-level parameters}}\n"
182182

183183
# loop over all structures
184184
for moduleName in [x.name for x in alignables.structures]:
185185

186186
# check if there is a plot for this module
187187
if any(x for x in config.outputList if (x.plottype == "mod" and x.number == "" and x.name == moduleName)):
188-
out += "\subsubsection{{{0}}}\n".format(moduleName)
188+
out += "\\subsubsection{{{0}}}\n".format(moduleName)
189189
# loop over modes
190190
for mode in ["xyz", "rot", "dist"]:
191191

@@ -198,26 +198,26 @@ def create(alignables, pedeDump, additionalData, outputFile, config):
198198

199199
# check if plot there is a plot in this mode
200200
if module:
201-
out += "\includegraphics[width=\linewidth]{{{0}/plots/pdf/{1}.pdf}}\n".format(
201+
out += "\\includegraphics[width=\\linewidth]{{{0}/plots/pdf/{1}.pdf}}\n".format(
202202
config.outputPath, module[0].filename)
203203
if config.showsubmodule:
204204
# loop over submodules
205205
for plot in moduleSub:
206-
out += "\includegraphics[width=\linewidth]{{{0}/plots/pdf/{1}.pdf}}\n".format(
206+
out += "\\includegraphics[width=\\linewidth]{{{0}/plots/pdf/{1}.pdf}}\n".format(
207207
config.outputPath, plot.filename)
208208

209209
# plot taken from the millePedeMonitor_merge.root file
210210
if config.showmonitor:
211211
if any(x for x in config.outputList if x.plottype == "monitor"):
212-
out += "\section{{Monitor plots}}\n"
212+
out += "\\section{{Monitor plots}}\n"
213213

214214
lastdataset = ""
215215
for plot in [x for x in config.outputList if x.plottype == "monitor"]:
216216
# all plots of a dataset together in one section
217217
if (lastdataset != plot.name):
218-
out += "\subsection{{{0}}}\n".format(plot.name)
218+
out += "\\subsection{{{0}}}\n".format(plot.name)
219219
lastdataset = plot.name
220-
out += "\includegraphics[width=\linewidth]{{{0}/plots/pdf/{1}.pdf}}\n".format(
220+
out += "\\includegraphics[width=\\linewidth]{{{0}/plots/pdf/{1}.pdf}}\n".format(
221221
config.outputPath, plot.filename)
222222

223223
data = data.substitute(out=out)

Alignment/MuonAlignment/python/geometryDiffVisualization.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def draw_wheel(geom1, geom2, wheel, filename, length_factor=100., angle_factor=1
8686
zdiff = length_factor * (geom1.dt[wheel, station, sector].z - geom2.dt[wheel, station, sector].z) * signConventions["DT", wheel, station, sector][2]
8787
phiydiff = -angle_factor * (geom1.dt[wheel, station, sector].phiy - geom2.dt[wheel, station, sector].phiy) * signConventions["DT", wheel, station, sector][1]
8888

89-
m = re.search("translate\(([0-9\.\-\+eE]+),\s([0-9\.\-\+eE]+)\)\srotate\(([0-9\.\-\+eE]+)\)",svgitem["transform"])
89+
m = re.search("translate\\(([0-9\\.\\-\\+eE]+),\\s([0-9\\.\\-\\+eE]+)\\)\\srotate\\(([0-9\\.\\-\\+eE]+)\\)",svgitem["transform"])
9090

9191
tx = float(m.group(1))
9292
ty = float(m.group(2))

0 commit comments

Comments
 (0)