Skip to content

Commit

Permalink
Merge branch 'master' into ppsLiteTracks_OOTselector
Browse files Browse the repository at this point in the history
  • Loading branch information
forthommel committed Apr 1, 2019
2 parents 521521e + 5eeb095 commit 38b0adf
Show file tree
Hide file tree
Showing 832 changed files with 31,153 additions and 13,628 deletions.
Expand Up @@ -267,6 +267,10 @@
# # a list of possible options is documented here:
# # http://www.desy.de/~kleinwrt/MP2/doc/html/option_page.html#sec-cmd
# #
# # if you need to request a larger stack size for individual threads when
# # running pede, you can do this with this setting:
# # process.AlignmentProducer.algoConfig.pedeSteerer.pedeCommand = "export OMP_STACKSIZE=20M; pede"
# #
# # you can change or drop pede options as follows:
#
# import Alignment.MillePedeAlignmentAlgorithm.alignmentsetup.helper as helper
Expand Down
9 changes: 9 additions & 0 deletions Alignment/OfflineValidation/bin/BuildFile.xml
@@ -0,0 +1,9 @@
<flags CXXFLAGS="-g -DDEBUG -O3 -Wall -std=c++17" />

<use name="root" />
<use name="rootgraphics"/>

<lib name="stdc++fs" />

<bin name="DMRtrends" file="DMRtrends.cc" />

753 changes: 753 additions & 0 deletions Alignment/OfflineValidation/bin/DMRtrends.cc

Large diffs are not rendered by default.

31 changes: 31 additions & 0 deletions Alignment/OfflineValidation/bin/README.md
@@ -0,0 +1,31 @@
# DMRtrends
Tool for retrieving and plotting the trend of the distribution of medians of residuals (DMRs) along a period of data taking.

Instructions for running the macros:

The macro can be executed in two ways:

1) From command line: "DMRtrends IOVlist labels Year pathtoDMRs geometriesandcolourspairs outputdirectory pixelupdatelist showpixelupdate showlumi FORCE"
2) By editing the parameters directly in the main() function in DMRtrends.cc and executing the macro without arguments

List of arguments:
-IOVlist: string containing the list of IOVs separated by a ","
-labels: string containing labels that must be part of the input files
-Year: string containing the year of the studied runs (needed to retrieve the lumi-per-run file)
-pathtoDMRs: string containing the path to the directory where the DMRs are stored
-geometrieandcolours: string containing the list of geometries and colors in the following way name1:color1,name2:color2 etc.
-outputdirectory: string containing the output directory for the plots
-pixelupdatelist: string containing the list of pixelupdates separated by a ","
-showpixelupdate: boolean, if set to true will allow to plot vertical lines in the canvas corresponding to the pixel updates
-showlumi: boolean, if set to false the trends will be presented in function of the run (IOV) number, if set to true the integrated luminosity is used on the x axis
-FORCE: boolean, if set to true the plots will be made regardless of possible errors.

In both cases the macro needs to be compiled with "scram b", a BuildFile is already provided for that.


Please note:
- If some DMRs haven't been computed correctly the macro will stop. The FORCE boolean has to be set to true to run regardless of these errors. In this case the trends will appear with "holes", as some points are not plotted. Warnings and errors are still present in the output.
- If the showlumi boolean is set to true the macro will try to retrieve the lumi-per-run/IOV txt files provided in the ../interface directory. The file names are currently hardcoded, and defined in the lumifileperyear() function.
- The Year string is currently only used to identify the correct lumi-per-run/IOV files to read, later it will be also used to select the High Level Structures and the number of layers/disks per structure

For questions regarding the tool please contact: andrea.cardini@desy.de
59 changes: 59 additions & 0 deletions Alignment/OfflineValidation/data/lumiperIOV2017.txt
@@ -0,0 +1,59 @@
290543 184.007
296702 241.267
296966 1585.38
297224 38.13
297281 690.37
297429 203.13
297467 129.04
297484 433.39
297494 40.38
297503 272.57
297557 297.47
297599 396.18
297620 202.27
297660 169.21
297670 203.37
297678 154.99
298996 107.46
299062 209.18
299096 171.14
299184 239.02
299327 54.26
299368 327.69
299381 90.48
299443 139.09
299480 370.17
299592 236.84
299594 320.68
299649 93.77
300087 541
300155 591.88
300233 147.93
300237 303.24
300280 358.25
300364 60.72
300389 63.98
300399 287.65
300459 423.12
300497 71.3
300515 435.9
300538 100.3
300551 294.7
300574 527.6
300636 275.5
300673 248.9
300780 300.4
300806 203.5
300812 159.9
301046 1255.8
301417 2574.7
302131 3102.8
302573 648
302635 540.2
303825 1575.4
303998 2348.9
304170 2085.6
304505 2043.7
304672 1495.5
305040 1018.6
305081 13615.3
67 changes: 67 additions & 0 deletions Alignment/OfflineValidation/data/lumiperIOV2018.txt
@@ -0,0 +1,67 @@
315257 1099.03
315488 232.75
315489 106.54
315506 523.34
315640 469.61
315689 330.13
315690 432.04
315713 1005.67
315790 167.86
315800 647.98
315973 294.59
316058 296.36
316060 201.25
316082 864.39
316187 898.48
316200 181.48
316216 256.84
316218 285.47
316239 527.9
316271 29.29
316361 81.81
316363 7.18
316378 192.84
316456 519.75
316470 179.66
316505 389.06
316559 0
316569 741.8
316665 1198.1
316758 2280.6
317080 473.3
317182 391.7
317212 585.4
317295 662.5
317339 203.4
317382 952.6
317438 787.7
317527 2027.2
317661 862.5
318228 0
318712 457.1
319337 1004.3
319460 5770.7
320377 0
320569 96.8
320688 151.3
320712 486
320809 104.8
320821 201.3
320823 234.1
320838 271.7
320853 291.3
320856 271.3
320917 479.9
320933 251.1
320936 90.5
320980 110.6
321004 306.6
321009 115.2
321051 451.8
321067 379.3
321119 744.3
321149 457.3
321164 800
321219 185.1
321221 293.8
321282 367.0

0 comments on commit 38b0adf

Please sign in to comment.