Page MenuHomeHEPForge

No OneTemporary

diff --git a/data/anainfo/ATLAS_2014_I1300647.info b/data/anainfo/ATLAS_2014_I1300647.info
--- a/data/anainfo/ATLAS_2014_I1300647.info
+++ b/data/anainfo/ATLAS_2014_I1300647.info
@@ -1,38 +1,38 @@
Name: ATLAS_2014_I1300647
Year: 2014
-Summary: Measurement of $Z/\gamma^\ast$ boson $p_T$ at $\sqrt{s} = 7{\TeV}$
+Summary: Measurement of $Z/\gamma^*$ boson $p_T$ at $\sqrt{s} = 7\TeV$
Experiment: ATLAS
Collider: LHC
InspireID: 1300647
Status: VALIDATED
Authors:
- Elena Yatsenko <elena.yatsenko@cern.ch>
References:
- JHEP09(2014)145
- arXiv:1406.3660 [hep-ex]
RunInfo:
- $Z/\gamma^\ast$ production with decays to electrons and/or muons.
+ $Z/\gamma^*$ production with decays to electrons and/or muons.
NumEvents: 1000000
NeedCrossSection: no
Beams: [p+, p+]
Energies: [7000]
PtCuts: [20]
Description:
- A measurement of the $Z/\gamma^\ast$ transverse momentum spectrum using ATLAS proton-proton collision data at a center
- of mass energy of $\sqrt{s} = 7{\TeV}$ at the LHC. The measurement is performed in both $Z/\gamma^\ast \rightarrow ee$
- and $Z/\gamma^\ast \rightarrow \mu \mu$ channels.
+ A measurement of the $Z/\gamma^*$ transverse momentum spectrum using ATLAS proton-proton collision data at a center
+ of mass energy of $\sqrt{s} = 7{\TeV}$ at the LHC. The measurement is performed in both $Z/\gamma^* \rightarrow ee$
+ and $Z/\gamma^* \rightarrow \mu \mu$ channels.
BibKey: Aad:2014xaa
BibTeX: '@article{Aad:2014xaa,
author = "Aad, Georges and others",
- title = "{Measurement of the $Z/\gamma^\ast$ boson transverse
+ title = "{Measurement of the $Z/\gamma^*$ boson transverse
momentum distribution in $pp$ collisions at $\sqrt{s}$ = 7
TeV with the ATLAS detector}",
collaboration = "ATLAS Collaboration",
doi = "10.1007/JHEP09(2014)145",
year = "2014",
eprint = "1406.3660",
archivePrefix = "arXiv",
primaryClass = "hep-ex",
reportNumber = "CERN-PH-EP-2014-075",
SLACcitation = "%%CITATION = ARXIV:1406.3660;%%",
}'
diff --git a/data/anainfo/ATLAS_2014_I1307756.info b/data/anainfo/ATLAS_2014_I1307756.info
--- a/data/anainfo/ATLAS_2014_I1307756.info
+++ b/data/anainfo/ATLAS_2014_I1307756.info
@@ -1,43 +1,43 @@
Name: ATLAS_2014_I1307756
Year: 2014
-Summary: Search for scalar diphoton resonances in ATLAS at $\sqrt(s)$ = 8 TeV
+Summary: Search for scalar diphoton resonances in ATLAS at $\sqrt{s} = 8$ \TeV
Experiment: ATLAS
Collider: LHC 8 TeV
InspireID: 1307756
Status: VALIDATED
Authors:
- Jessica Leveque <leveque@lapp.in2p3.fr>
References:
- arXiv:hep-ex/1407.6583
RunInfo:
Inclusive diphotons events at $\sqrt(s)$ = 8 TeV
NumEvents: 100000
NeedCrossSection: yes
Beams: [p+, p+]
Energies: [8000]
PtCuts: [22]
Description:
- 'A search for narrow resonances mX decaying into two photons in the
- mass range 65 < mX < 600 GeV was performed using 20.3 inverse
- femtobarns of pp collisions data collected by the ATLAS experiment at
+ 'A search for narrow resonances $m_X$ decaying into two photons in the
+ mass range $65 < mX < 600$ GeV was performed using 20.3 inverse
+ femtobarns of $pp$ collisions data collected by the ATLAS experiment at
the Large Hadron Collider. The results are presented as a
model-independent limit on the fiducial production cross-section of a
scalar boson times branching ratio into two photons. This routine
applies the fiducial cuts on the photons (kinematic cuts and isolation
cuts) and computes the fiducial cross-section. The total cross-section
times branching ratio to two photons must be given as input to the
routine.'
BibKey: 'Aad:2014ioa'
BibTeX: '@article{Aad:2014ioa,
author = "Aad, Georges and others",
- title = "{Search for Scalar Diphoton Resonances in the Mass Range
- $65-600$ GeV with the ATLAS Detector in $pp$ Collision
- Data at $\sqrt{s}$ = 8 $TeV$}",
+ title = "{Search for scalar diphoton resonances in the mass range
+ 65--600 \GeV with the ATLAS Detector in $pp$ collision
+ data at $\sqrt{s} = 8 \TeV$}",
collaboration = "ATLAS Collaboration",
year = "2014",
eprint = "1407.6583",
archivePrefix = "arXiv",
primaryClass = "hep-ex",
reportNumber = "CERN-PH-EP-2014-142",
SLACcitation = "%%CITATION = ARXIV:1407.6583;%%",
}'
diff --git a/pyext/rivet/util.py b/pyext/rivet/util.py
--- a/pyext/rivet/util.py
+++ b/pyext/rivet/util.py
@@ -1,185 +1,186 @@
"Python utility functions for use by Rivet scripts (and anyone else who wants to)"
def check_python_version(req_version=(2,6,0)):
"Enforce the Rivet scripts' minimal Python version requirement"
import sys
if sys.version_info[:3] < req_version:
sys.stderr.write( "Python version >= %s is required... exiting\n" % ".".join(req_version) )
sys.exit(1)
def set_process_name(name):
"Try to rename the process on Linux so it doesn't appear as 'python <scriptpath>'"
try:
## Try to use this: https://code.google.com/p/py-setproctitle/
import setproctitle
setproctitle.setproctitle(name)
except:
try:
## Fall back to a by-hand thing that doesn't work for me...
import ctypes
libc = ctypes.cdll.LoadLibrary("libc.so.6")
libc.prctl(15, name, 0, 0, 0)
except:
## And then give up ;-)
pass
def import_ET():
"Try to import the ElementTree XML parser, which has many historical import signatures"
ET = None
try:
import xml.etree.cElementTree as ET
except ImportError:
try:
import cElementTree as ET
except ImportError:
try:
import xml.etree.ElementTree as ET
except:
raise ImportError("Can't load the ElementTree XML parser (any of three historical ways)")
return ET
def htmlify(s, para=False):
"""Modify LaTeX text strings from analysis metadata for inclusion
in MathJax-enabled web page source code."""
t = s.replace("&", "&amp;")\
.replace("<","&lt;")\
.replace(">","&gt;")\
.replace(r"~", " ")
t = t.replace(r"\pT", r"p_\perp")\
.replace(r"\degree", r"^\circ")\
.replace(r"\MeV", r"\text{MeV}")\
.replace(r"\GeV", r"\text{GeV}")\
.replace(r"\TeV", r"\text{TeV}")
# t = t.replace(r"\;", " ")\
# .replace(r"\,", " ")\
# .replace(r"\!", "")
if para:
t = t.replace("\n\n", "</p><p>")
return t
def texify(s):
"Insert required TeX escapes"
t = s \
.replace(r"&", r"\&") \
.replace(r"\\&", r"\&") \
.replace(r"#", r"\#") \
# .replace(r"_", r"\_") \
# .replace(r"^", r"") \
return t
def texpand(s):
"Expand some physics-specific TeX macros."
t = s \
.replace(r"\kT", r"\ensuremath{k_\perp}\xspace") \
.replace(r"\kt", r"\ensuremath{k_\mathrm{T}}\xspace") \
.replace(r"\pT", r"\ensuremath{p_\perp}\xspace") \
.replace(r"\pt", r"\ensuremath{p_\mathrm{T}}\xspace") \
.replace(r"\sqrts", r"\ensuremath{\sqrt{s}}\xspace") \
.replace(r"\sqrtS", r"\ensuremath{\sqrt{s}}\xspace") \
.replace(r"\MeV", r"\ensuremath{\text{M\eV}}\xspace") \
.replace(r"\GeV", r"\ensuremath{\text{G\eV}}\xspace") \
.replace(r"\TeV", r"\ensuremath{\text{T\eV}}\xspace") \
.replace(r"\eV", r"\ensuremath{\text{e\kern-0.15ex{}V}}\xspace")
return t
def detex(tex):
"""Use pandoc (if available) to modify LaTeX text strings from
analysis metadata for use as plain text, e.g. as printed to the terminal.
TODO: Maybe group many strings to be processed together, to save on system call / pandoc startup?
"""
from distutils.spawn import find_executable
if not find_executable("pandoc"):
return tex
texheader = r"""
\newcommand{\text}[1]{#1}
\newcommand{\ensuremath}[1]{#1}
\newcommand{\emph}[1]{_#1_}
\newcommand{\textrm}[1]{#1}
\newcommand{\textit}[1]{_#1_}
\newcommand{\textbf}[1]{*#1*}
\newcommand{\mathrm}[1]{#1}
\newcommand{\mathit}[1]{_#1_}
\newcommand{\mathbf}[1]{*#1*}
\newcommand{\bm}[1]{*#1*}
\newcommand{\frac}[2]{#1/#2}
\newcommand{\sqrt}[1]{sqrt(#1)}
\newcommand{\hat}[1]{#1hat}
\newcommand{\bar}[1]{#1bar}
\newcommand{\d}[1]{d#1}
\newcommand{\degree}{^\circ }
\newcommand{\infty}{oo }
\newcommand{\exp}{exp }
\newcommand{\log}{log }
\newcommand{\ln}{ln }
\newcommand{\sin}{sin }
\newcommand{\cos}{cos }
\newcommand{\tan}{tan }
\newcommand{\sinh}{sinh }
\newcommand{\cosh}{cosh }
\newcommand{\tanh}{tanh }
\newcommand{\ell}{l}
\newcommand{\varphi}{\phi}
\newcommand{\varepsilon}{\epsilon}
\newcommand{\sim}{~}
\newcommand{\lesssim}{<~ }
\newcommand{\gtrsim}{>~ }
\newcommand{\neq}{!= }
\newcommand{\ge}{>= }
\newcommand{\gg}{>> }
\newcommand{\le}{<= }
\newcommand{\ll}{<< }
\newcommand{\pm}{+- }
\newcommand{\mp}{-+ }
\newcommand{\times}{x }
\newcommand{\cdot}{. }
\newcommand{\dots}{... }
\newcommand{\ldots}{... }
\newcommand{\langle}{<}
\newcommand{\rangle}{>}
\newcommand{\gets}{<- }
\newcommand{\to}{-> }
\newcommand{\leftarrow}{<- }
\newcommand{\rightarrow}{-> }
\newcommand{\leftrightarrow}{<-> }
\newcommand{\Leftarrow}{<= }
\newcommand{\Rightarrow}{=> }
\newcommand{\Leftrightarrow}{ }
\newcommand{\left}{}
\newcommand{\right}{}
\newcommand{\!}{}
\newcommand{\/}{}
\newcommand{\rm}{}
\newcommand{\it}{}
\newcommand{\,}{ }
\newcommand{\;}{ }
\newcommand{\ }{ }
\newcommand{\unit}[2]{#1 #2}
\newcommand{\bar}[1]{#1bar}
\newcommand{\pT}{pT }
\newcommand{\perp}{T}
+ \newcommand{\ast}{*}
\newcommand{\MeV}{MeV }
\newcommand{\GeV}{GeV }
\newcommand{\TeV}{TeV }
"""
import subprocess, shlex
p = subprocess.Popen(shlex.split("pandoc -f latex -t plain --no-wrap"),
stdin=subprocess.PIPE, stdout=subprocess.PIPE)
plain, err = p.communicate((texheader + tex).replace("\n", ""))
plain = plain.replace(r"\&", "&")
# TODO: Replace \gamma, \mu, \tau, \Upsilon, \rho, \psi, \pi, \eta, \Delta, \Omega, \omega -> no-\ form?
# TODO: Replace e^+- -> e+-?
if plain[-1] == "\n":
return plain[:-1]
else:
return plain
#print detex(r"Foo \! $\int \text{bar} \d{x} \sim \; \frac{1}{3} \neq \emph{foo}$ \to \gg bar")

File Metadata

Mime Type
text/x-diff
Expires
Tue, Nov 19, 8:52 PM (1 d, 2 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3806170
Default Alt Text
(10 KB)

Event Timeline