Newer
Older
Presentations / MC / HepData_PPG / mchrzasz.tex
@mchrzasz mchrzasz on 24 Nov 2016 14 KB final version of seminar
  1. \documentclass[11 pt,xcolor={dvipsnames,svgnames,x11names,table}]{beamer}
  2.  
  3. \usepackage[english]{babel}
  4. \usepackage{polski}
  5.  
  6.  
  7. \usetheme[
  8. bullet=circle, % Other option: square
  9. bigpagenumber, % circled page number on lower right
  10. topline=true, % colored bar at the top of the frame
  11. shadow=false, % Shading for beamer blocks
  12. watermark=BG_lower, % png file for the watermark
  13. ]{Flip}
  14.  
  15. %\logo{\kern+1.em\includegraphics[height=1cm]{SHiP-3_LightCharcoal}}
  16.  
  17.  
  18. \usepackage[lf]{berenis}
  19. \usepackage[LY1]{fontenc}
  20. \usepackage[utf8]{inputenc}
  21.  
  22. \usepackage{emerald}
  23. \usefonttheme{professionalfonts}
  24. \usepackage[no-math]{fontspec}
  25. \defaultfontfeatures{Mapping=tex-text} % This seems to be important for mapping glyphs properly
  26.  
  27. \setmainfont{Gillius ADF} % Beamer ignores "main font" in favor of sans font
  28. \setsansfont{Gillius ADF} % This is the font that beamer will use by default
  29. % \setmainfont{Gill Sans Light} % Prettier, but harder to read
  30.  
  31. \setbeamerfont{title}{family=\fontspec{Gillius ADF}}
  32.  
  33. \input t1augie.fd
  34.  
  35. %\newcommand{\handwriting}{\fontspec{augie}} % From Emerald City, free font
  36. %\newcommand{\handwriting}{\usefont{T1}{fau}{m}{n}} % From Emerald City, free font
  37. % \newcommand{\handwriting}{} % If you prefer no special handwriting font or don't have augie
  38.  
  39. %% Gill Sans doesn't look very nice when boldfaced
  40. %% This is a hack to use Helvetica instead
  41. %% Usage: \textbf{\forbold some stuff}
  42. %\newcommand{\forbold}{\fontspec{Arial}}
  43.  
  44. \usepackage{graphicx}
  45. \usepackage[export]{adjustbox}
  46.  
  47. \usepackage{amsmath}
  48. \usepackage{amsfonts}
  49. \usepackage{amssymb}
  50. \usepackage{bm}
  51. \usepackage{colortbl}
  52. \usepackage{mathrsfs} % For Weinberg-esque letters
  53. \usepackage{cancel} % For "SUSY-breaking" symbol
  54. \usepackage{slashed} % for slashed characters in math mode
  55. \usepackage{bbm} % for \mathbbm{1} (unit matrix)
  56. \usepackage{amsthm} % For theorem environment
  57. \usepackage{multirow} % For multi row cells in table
  58. \usepackage{arydshln} % For dashed lines in arrays and tables
  59. \usepackage{siunitx}
  60. \usepackage{xhfill}
  61. \usepackage{grffile}
  62. \usepackage{textpos}
  63. \usepackage{subfigure}
  64. \usepackage{tikz}
  65.  
  66. %\usepackage{hepparticles}
  67. \usepackage[italic]{hepparticles}
  68.  
  69. \usepackage{hepnicenames}
  70.  
  71. % Drawing a line
  72. \tikzstyle{lw} = [line width=20pt]
  73. \newcommand{\topline}{%
  74. \tikz[remember picture,overlay] {%
  75. \draw[crimsonred] ([yshift=-23.5pt]current page.north west)
  76. -- ([yshift=-23.5pt,xshift=\paperwidth]current page.north west);}}
  77.  
  78.  
  79.  
  80. % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %
  81. \usepackage{tikzfeynman} % For Feynman diagrams
  82. \usetikzlibrary{arrows,shapes}
  83. \usetikzlibrary{trees}
  84. \usetikzlibrary{matrix,arrows} % For commutative diagram
  85. % http://www.felixl.de/commu.pdf
  86. \usetikzlibrary{positioning} % For "above of=" commands
  87. \usetikzlibrary{calc,through} % For coordinates
  88. \usetikzlibrary{decorations.pathreplacing} % For curly braces
  89. % http://www.math.ucla.edu/~getreuer/tikz.html
  90. \usepackage{pgffor} % For repeating patterns
  91.  
  92. \usetikzlibrary{decorations.pathmorphing} % For Feynman Diagrams
  93. \usetikzlibrary{decorations.markings}
  94. \tikzset{
  95. % >=stealth', %% Uncomment for more conventional arrows
  96. vector/.style={decorate, decoration={snake}, draw},
  97. provector/.style={decorate, decoration={snake,amplitude=2.5pt}, draw},
  98. antivector/.style={decorate, decoration={snake,amplitude=-2.5pt}, draw},
  99. fermion/.style={draw=gray, postaction={decorate},
  100. decoration={markings,mark=at position .55 with {\arrow[draw=gray]{>}}}},
  101. fermionbar/.style={draw=gray, postaction={decorate},
  102. decoration={markings,mark=at position .55 with {\arrow[draw=gray]{<}}}},
  103. fermionnoarrow/.style={draw=gray},
  104. gluon/.style={decorate, draw=black,
  105. decoration={coil,amplitude=4pt, segment length=5pt}},
  106. scalar/.style={dashed,draw=black, postaction={decorate},
  107. decoration={markings,mark=at position .55 with {\arrow[draw=black]{>}}}},
  108. scalarbar/.style={dashed,draw=black, postaction={decorate},
  109. decoration={markings,mark=at position .55 with {\arrow[draw=black]{<}}}},
  110. scalarnoarrow/.style={dashed,draw=black},
  111. electron/.style={draw=black, postaction={decorate},
  112. decoration={markings,mark=at position .55 with {\arrow[draw=black]{>}}}},
  113. bigvector/.style={decorate, decoration={snake,amplitude=4pt}, draw},
  114. }
  115.  
  116. % TIKZ - for block diagrams,
  117. % from http://www.texample.net/tikz/examples/control-system-principles/
  118. % \usetikzlibrary{shapes,arrows}
  119. \tikzstyle{block} = [draw, rectangle,
  120. minimum height=3em, minimum width=6em]
  121.  
  122.  
  123.  
  124.  
  125. \usetikzlibrary{backgrounds}
  126. \usetikzlibrary{mindmap,trees} % For mind map
  127. \newcommand{\degree}{\ensuremath{^\circ}}
  128. \newcommand{\E}{\mathrm{E}}
  129. \newcommand{\Var}{\mathrm{Var}}
  130. \newcommand{\Cov}{\mathrm{Cov}}
  131. \newcommand\Ts{\rule{0pt}{2.6ex}} % Top strut
  132. \newcommand\Bs{\rule[-1.2ex]{0pt}{0pt}} % Bottom strut
  133.  
  134. \graphicspath{{images/}} % Put all images in this directory. Avoids clutter.
  135.  
  136. % SOME COMMANDS THAT I FIND HANDY
  137. % \renewcommand{\tilde}{\widetilde} % dinky tildes look silly, dosn't work with fontspec
  138. \newcommand{\comment}[1]{\textcolor{comment}{\footnotesize{#1}\normalsize}} % comment mild
  139. \newcommand{\Comment}[1]{\textcolor{Comment}{\footnotesize{#1}\normalsize}} % comment bold
  140. \newcommand{\COMMENT}[1]{\textcolor{COMMENT}{\footnotesize{#1}\normalsize}} % comment crazy bold
  141. \newcommand{\Alert}[1]{\textcolor{Alert}{#1}} % louder alert
  142. \newcommand{\ALERT}[1]{\textcolor{ALERT}{#1}} % loudest alert
  143. %% "\alert" is already a beamer pre-defined
  144. \newcommand*{\Scale}[2][4]{\scalebox{#1}{$#2$}}%
  145.  
  146. \def\Put(#1,#2)#3{\leavevmode\makebox(0,0){\put(#1,#2){#3}}}
  147.  
  148. \usepackage{gmp}
  149. \usepackage[final]{feynmp-auto}
  150.  
  151. \usepackage[backend=bibtex,style=numeric-comp,firstinits=true]{biblatex}
  152. \bibliography{bib}
  153. \setbeamertemplate{bibliography item}[text]
  154.  
  155. \makeatletter\let\frametextheight\beamer@frametextheight\makeatother
  156.  
  157. % suppress frame numbering for backup slides
  158. % you always need the appendix for this!
  159. \newcommand{\backupbegin}{
  160. \newcounter{framenumberappendix}
  161. \setcounter{framenumberappendix}{\value{framenumber}}
  162. }
  163. \newcommand{\backupend}{
  164. \addtocounter{framenumberappendix}{-\value{framenumber}}
  165. \addtocounter{framenumber}{\value{framenumberappendix}}
  166. }
  167.  
  168.  
  169. \definecolor{links}{HTML}{2A1B81}
  170. %\hypersetup{colorlinks,linkcolor=,urlcolor=links}
  171.  
  172. % For shapo's formulas:
  173. \def\lsi{\raise0.3ex\hbox{$<$\kern-0.75em\raise-1.1ex\hbox{$\sim$}}}
  174. \def\gsi{\raise0.3ex\hbox{$>$\kern-0.75em\raise-1.1ex\hbox{$\sim$}}}
  175. \newcommand{\lsim}{\mathop{\lsi}}
  176. \newcommand{\gsim}{\mathop{\gsi}}
  177. \newcommand{\wt}{\widetilde}
  178. %\newcommand{\ol}{\overline}
  179. \newcommand{\Tr}{\rm{Tr}}
  180. \newcommand{\tr}{\rm{tr}}
  181. \newcommand{\eqn}[1]{&\hspace{-0.7em}#1\hspace{-0.7em}&}
  182. \newcommand{\vev}[1]{\rm{$\langle #1 \rangle$}}
  183. \newcommand{\abs}[1]{\rm{$\left| #1 \right|$}}
  184. \newcommand{\eV}{\rm{eV}}
  185. \newcommand{\keV}{\rm{keV}}
  186. \newcommand{\GeV}{\rm{GeV}}
  187. \newcommand{\im}{\rm{Im}}
  188. \newcommand{\disp}{\displaystyle}
  189. \def\be{\begin{equation}}
  190. \def\ee{\end{equation}}
  191. \def\ba{\begin{eqnarray}}
  192. \def\ea{\end{eqnarray}}
  193. \def\d{\partial}
  194. \def\l{\left(}
  195. \def\r{\right)}
  196. \def\la{\langle}
  197. \def\ra{\rangle}
  198. \def\e{{\rm e}}
  199. \def\Br{{\rm Br}}
  200.  
  201. \def\ARROW{{\color{JungleGreen}{$\Rrightarrow$}}\xspace}
  202. \def\ARROWR{{\color{WildStrawberry}{$\Rrightarrow$}}\xspace}
  203.  
  204. \author{ {\fontspec{Trebuchet MS}Marcin Chrz\k{a}szcz} (Universit\"{a}t Z\"{u}rich)}
  205. \institute{UZH}
  206. \title[Submitting results to HepData]{Submitting results to HepData}
  207. \date{25 September 2014}
  208.  
  209.  
  210. \begin{document}
  211. \tikzstyle{every picture}+=[remember picture]
  212.  
  213. {
  214. \setbeamertemplate{sidebar right}{\llap{\includegraphics[width=\paperwidth,height=\paperheight]{bubble2}}}
  215. \begin{frame}[c]%{\phantom{title page}}
  216. \begin{center}
  217. \begin{center}
  218. \begin{columns}
  219. \begin{column}{0.75\textwidth}
  220. \flushright\fontspec{Trebuchet MS}\bfseries \Huge {Submitting results to HepData}
  221. \end{column}
  222. \begin{column}{0.02\textwidth}
  223. {~}
  224. \end{column}
  225. \begin{column}{0.23\textwidth}
  226. % \hspace*{-1.cm}
  227. \vspace*{-3mm}
  228. \includegraphics[width=0.6\textwidth]{lhcb-logo}
  229. \end{column}
  230.  
  231. \end{columns}
  232. \end{center}
  233. \quad
  234. \vspace{3em}
  235. \begin{columns}
  236. \begin{column}{0.44\textwidth}
  237. \flushright \vspace{-1.8em} {\fontspec{Trebuchet MS} \Large Marcin Chrząszcz\\\vspace{-0.1em}\small \href{mailto:mchrzasz@cern.ch}{mchrzasz@cern.ch}}
  238.  
  239. \end{column}
  240. \begin{column}{0.53\textwidth}
  241. \includegraphics[height=1.3cm]{uzh-transp}
  242. \end{column}
  243. \end{columns}
  244.  
  245. \vspace{1em}
  246. \footnotesize\textcolor{gray}{With M.Bettler, A.Puig, A. Grecu}\normalsize\\
  247. \vspace{0.5em}
  248.  
  249. \textcolor{normal text.fg!50!Comment}{Zurich meeting, CERN\\November 24, 2016}
  250. \end{center}
  251. \end{frame}
  252. }
  253.  
  254. \begin{frame}[c]{HepData portal}
  255. \begin{minipage}{\textwidth}
  256.  
  257. \begin{center}
  258. %\only<1>{
  259. %\includegraphics[width=0.9\textwidth]{images/hepdata.png}
  260. %}
  261. \only<1>
  262. {
  263. \includegraphics[width=0.9\textwidth]{images/hepdata2.png}
  264. }
  265. \end{center}
  266.  
  267.  
  268.  
  269.  
  270. \end{minipage}
  271. \vspace*{2.cm}
  272. \end{frame}
  273.  
  274.  
  275.  
  276. \begin{frame}[c]{Why do we need HepData?}
  277. \begin{minipage}{\textwidth}
  278. {~}\\
  279. \begin{center}
  280. \only<1>{
  281. \includegraphics[width=0.99\textwidth]{images/hepdata3.png}
  282. }
  283.  
  284. \end{center}
  285.  
  286.  
  287.  
  288. \end{minipage}
  289. \vspace*{2.cm}
  290. \end{frame}
  291.  
  292.  
  293.  
  294. \begin{frame}[c]{The challenge}
  295.  
  296. \begin{minipage}{\textwidth}
  297. {~}\\
  298. \ARROW The $\PB \to \PKstar \Pmu \Pmu$ analysis has produced over $80$ tables with results and correlation tables... \\
  299. \ARROW Theorists need all the correlation tables to make the global fit.\\
  300. \ARROW Reading the numbers form our tex files from all the theories groups is not really a nice way to do it:
  301. \begin{center}
  302. \includegraphics[width=0.7\textwidth]{images/bug.jpg}
  303. \end{center}
  304. \ARROW Many thanks for Alex Grecu for help understanding how the HepData works!
  305. \end{minipage}
  306. \vspace*{2.cm}
  307. \end{frame}
  308.  
  309.  
  310. \begin{frame}[c]{Automatic scripts}
  311. \begin{minipage}{\textwidth}
  312.  
  313. \ARROW Coding the 80 tables by hand without making a typo is impossible!\\
  314.  
  315. \begin{center}
  316. \begin{columns}
  317.  
  318. \column{0.4\textwidth}
  319. \includegraphics[width=0.95\textwidth]{images/table3.png}
  320.  
  321.  
  322. \column{0.6\textwidth}
  323. \includegraphics[width=0.9\textwidth]{images/hepdata_format.png}
  324.  
  325.  
  326. \end{columns}
  327. \end{center}
  328. \ARROW To make sure this is done correctly python scripts were written.\\
  329. \ARROW The can with some minor modifications can be re-used for other applications.\\
  330. \ARROW HepData is an extremely useful portal. \\
  331. \ARROW Let's make our results ''One click away'' for theorists!
  332. \begin{center}
  333. \includegraphics[width=0.4\textwidth]{images/click.png}
  334. \end{center}
  335.  
  336.  
  337.  
  338. \end{minipage}
  339. \vspace*{2.cm}
  340. \end{frame}
  341.  
  342.  
  343. \begin{frame}[c]{Automatic scripts}
  344. \begin{minipage}{\textwidth}
  345.  
  346. \ARROW Feel free to use, share and improve the scripts:\\
  347.  
  348. \href{https://gitlab.cern.ch/LHCb-RD/tools-hepdata}{\url{https://gitlab.cern.ch/LHCb-RD/tools-hepdata}}\\
  349. \href{https://git.physik.uzh.ch/gitbucket/mchrzasz/HepData}{\url{https://git.physik.uzh.ch/gitbucket/mchrzasz/HepData}}
  350. \href{http://www.physik.uzh.ch/~mchrzasz/HepData/}{\url{http://www.physik.uzh.ch/~mchrzasz/HepData/}}
  351.  
  352. \end{minipage}
  353. \vspace*{2.cm}
  354. \end{frame}
  355.  
  356.  
  357.  
  358.  
  359. \backupbegin
  360.  
  361. \begin{frame}\frametitle{Backup}
  362. \topline
  363.  
  364. \end{frame}
  365.  
  366. \begin{frame}[c]{Example:}
  367.  
  368. \begin{minipage}{\textwidth}
  369. \only<1>{
  370. \begin{exampleblock}{}
  371. \ARROWR The scripts I show here are not $100~\%$ plug and play. \\
  372. \ARROWR Each table in latex is a bit different and needs some special modification.\\
  373. \ARROWR But to modify the scripts and apply them to your case should not be much work.\\
  374. \end{exampleblock}
  375.  
  376. }
  377. \only<2>{
  378. \begin{center}
  379. \includegraphics[width=0.7\textwidth]{images/table.png}
  380. \end{center}
  381. }
  382. \only<3>{
  383. \begin{center}
  384. \includegraphics[width=0.99\textwidth]{images/table2.png}
  385. \end{center}
  386.  
  387. }
  388.  
  389. \end{minipage}
  390. \vspace*{2.cm}
  391. \end{frame}
  392.  
  393.  
  394.  
  395. \begin{frame}[c]{Correlation tables}
  396.  
  397. \begin{minipage}{\textwidth}
  398. \ARROW The main problem was the correlation tables...\\
  399. \ARROW We had around $80$ of them...\\
  400. \only<1>{
  401. \begin{center}
  402. \includegraphics[width=0.95\textwidth]{images/table3.png}
  403. \end{center}
  404. }
  405. \only<2>{
  406. \begin{center}
  407. \includegraphics[width=0.95\textwidth]{images/table4.png}
  408. \end{center}
  409. }
  410. \end{minipage}
  411. \vspace*{2.cm}
  412. \end{frame}
  413.  
  414.  
  415. \begin{frame}[c]{HepData format}
  416.  
  417. \begin{minipage}{\textwidth}
  418. \ARROW So HepData format is completely different then tex.
  419. \begin{center}
  420. \includegraphics[width=0.9\textwidth]{images/hepdata_format.png}
  421. \end{center}
  422.  
  423.  
  424.  
  425. \end{minipage}
  426. \vspace*{2.cm}
  427. \end{frame}
  428.  
  429.  
  430. \begin{frame}[c]{My scripts}
  431.  
  432. \begin{minipage}{\textwidth}
  433. \ARROW Written in python.\\
  434. \ARROW Will briefly go through the some of it's functions.
  435. \only<1>{
  436. \begin{center}
  437. \includegraphics[width=1.1\textwidth]{images/code1.png}
  438. \end{center}
  439. }
  440.  
  441. \only<2>{
  442. \begin{center}
  443. \includegraphics[width=1.1\textwidth]{images/code2.png}
  444. \end{center}
  445.  
  446. }
  447. \only<3>{
  448. \begin{center}
  449. \includegraphics[width=0.8\textwidth]{images/code3.png}
  450. \end{center}
  451.  
  452. }
  453. \only<4>{
  454. \begin{center}
  455. \includegraphics[width=0.8\textwidth]{images/code5.png}
  456. \end{center}
  457.  
  458. }
  459. \only<5>{
  460. \begin{center}
  461. \includegraphics[width=0.8\textwidth]{images/out1.png}
  462. \end{center}
  463.  
  464.  
  465. }
  466.  
  467.  
  468. \end{minipage}
  469. \vspace*{2.cm}
  470. \end{frame}
  471.  
  472.  
  473.  
  474. \begin{frame}[c]{User case}
  475.  
  476. \begin{minipage}{\textwidth}
  477. \ARROW There will be things that need to be changed for each table:
  478.  
  479. \begin{center}
  480. \includegraphics[width=0.95\textwidth]{images/code4.png}
  481. \end{center}
  482.  
  483. \end{minipage}
  484. \vspace*{2.cm}
  485. \end{frame}
  486.  
  487.  
  488.  
  489. \begin{frame}[c]{Error encoding}
  490.  
  491. \begin{minipage}{\textwidth}
  492. \ARROW If you need to encode errors in HepData format:
  493. \begin{center}
  494. \includegraphics[width=0.9\textwidth]{images/out2.png}
  495. \end{center}
  496.  
  497.  
  498.  
  499. \end{minipage}
  500. \vspace*{2.cm}
  501. \end{frame}
  502.  
  503.  
  504.  
  505. \begin{frame}[c]{Submitting procedure}
  506. \begin{minipage}{\textwidth}
  507. {~}\\
  508. \ARROW Albert and Marco have put in a procedure for submitting your results to HepData:
  509. \begin{itemize}
  510. \item You contact Alex Grecu that he prepares you a temporary slot on HepData. You will get from him number and password that you can use for logging.
  511. \item He will also prepare a JIRA task for this data submission.
  512. \item You code in your result (please remember to always have your own copy as data can be lost in HepData portal).
  513. \item Once you finish coding, your results will be reviewed/sign off by the analysis e-group.
  514. \item RD convenors are also in the loop.
  515. \item After you collected enough pokemons ( :P ) Alex submits this to HepData.
  516.  
  517. \end{itemize}
  518.  
  519.  
  520.  
  521. \end{minipage}
  522. \vspace*{2.cm}
  523. \end{frame}
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530. \begin{frame}[c]{Summary}
  531.  
  532. \begin{minipage}{\textwidth}
  533. \ARROW HepData is a tricky format that unfortunately is not similar to other ones :(\\
  534. \ARROW I am afraid that everyone has to adjust those scripts for they tables.\\
  535. \ARROW If you want to put the results to HepData do it with the paper submission!\\
  536. \ARROW If you already produced some results and want to copy them from tex files to Hepdata you can start with my scripts: \\ \href{http://www.physik.uzh.ch/~mchrzasz/HepData/KstarMuMu/}{\url{http://www.physik.uzh.ch/~mchrzasz/HepData/KstarMuMu/}}\\
  537. \ARROW Or on git: \\ \href{https://git.physik.uzh.ch/gitbucket/mchrzasz/HepData}{\url{https://git.physik.uzh.ch/gitbucket/mchrzasz/HepData}}
  538.  
  539. \end{minipage}
  540. \vspace*{2.cm}
  541. \end{frame}
  542.  
  543.  
  544.  
  545.  
  546.  
  547.  
  548.  
  549.  
  550.  
  551. \begin{frame}\frametitle{Backup}
  552. \topline
  553.  
  554. \end{frame}
  555.  
  556. \backupend
  557.  
  558. \end{document}