Page MenuHomeHEPForge

No OneTemporary

diff --git a/.hgignore b/.hgignore
--- a/.hgignore
+++ b/.hgignore
@@ -1,72 +1,72 @@
~$
-^run.*$
+^(anas|test|run).*$
\.orig$
\.(o|Po|lo|Plo|la|a|so|dylib|pyc|tar\.bz2|tar\.gz|fifo|hepmc)$
^config\.guess$
^config\.status$
^config\.sub$
^config\.log$
^configure$
^depcomp$
^compile$
^ar-lib$
^install-sh$
^INSTALL$
^libtool$
^test-driver$
^ltmain\.sh$
^m4/ltoptions\.m4$
^m4/ltsugar\.m4$
^m4/ltversion\.m4$
^m4/lt~obsolete\.m4$
^missing$
^autom4te\.cache$
^include/Rivet/Config/stamp-h.$
^tmp$
^rivet.pc$
Makefile$
Makefile\.in$
\.(pdf|toc|bbl|blg|sty|bib|html|tex)$
Doxyfile$
\.libs$
\.deps$
#Rivet.yoda
#.*/Rivet\.yoda
^bin/rivet-buildplugin$
^bin/rivet-config$
^bin/rivet-nopy$
^aclocal\.m4$
^pyext/build$
^pyext/rivet/core.cpp$
^pyext/rivet/rivetwrap\.py$
^pyext/rivet/rivetwrap_wrap\.cc$
^pyext/rivet/fix-out-of-source$
^pyext/setup\.py$
^rivetenv\.(sh|csh)$
^test/test(Api|Cmp|NaN)$
^include/Rivet/Config/DummyConfig\.hh\.in$
^include/Rivet/Config/BuildOptions\.hh$
^include/Rivet/Config/DummyConfig\.hh$
^include/Rivet/Config/RivetConfig\.hh$
^doc/.*\.(log|aux|out)$
^doc/diffanas$
^test/log$
^test/.*\.log$
^test/out\.yoda$
^test/NaN.aida$
^test/Rivet.yoda$
^test/testBoost$
^test/.*\.trs$
^test/testMatVec$
^test/testMath$
^test/testBeams$
^dev$
^devval$
^newanalyses$
^.*plots$
^a\.out$
^a\.out\.dSYM$
^Rivet-.\..\..$
^local/.*$
^(for|analyses)\d\d\d$
^src/Analyses/.*__all\.cc$
diff --git a/avglist b/avglist
new file mode 100755
--- /dev/null
+++ b/avglist
@@ -0,0 +1,14 @@
+#! /usr/bin/env python
+
+import sys
+argstr = "".join(sys.argv[1:])
+if argstr == "-":
+ valstr = sys.stdin.read()
+else:
+ valstr = argstr
+
+vals = [float(x) for x in valstr.split(",")]
+avgvals = []
+for i in range(len(vals)-1):
+ avgvals.append((vals[i]+vals[i+1])/2.)
+print ", ".join(["{:0.3f}".format(x) for x in avgvals])
diff --git a/foldlist b/foldlist
new file mode 100755
--- /dev/null
+++ b/foldlist
@@ -0,0 +1,18 @@
+#! /usr/bin/env python
+
+import sys
+argstr = "".join(sys.argv[1:])
+if argstr == "-":
+ valstr = sys.stdin.read()
+else:
+ valstr = argstr
+
+vals = [float(x) for x in valstr.split(",")]
+tmp = []
+for i in range(len(vals)//2):
+ x = (vals[i] + vals[-i-1])/2.
+ tmp.append(x)
+if len(vals) % 2 != 0:
+ tmp.append(vals[len(vals)//2])
+foldedvals = reversed(tmp)
+print ", ".join(["{:0.3f}".format(x) for x in foldedvals])
diff --git a/getinspirenames b/getinspirenames
new file mode 100755
--- /dev/null
+++ b/getinspirenames
@@ -0,0 +1,16 @@
+#! /usr/bin/env bash
+
+IN=src/Analyses
+OUT=spires2inspire.txt
+
+> $OUT
+for acc in $IN/*_S*.cc; do
+ aold=$(basename $acc .cc)
+ echo "Translating $aold"
+ sid=$(echo $aold | sed -e 's/.*_S\([0-9]\+\).*/\1/')
+ iid=$(wget --quiet http://inspirehep.net/search?p=find+key+7075677 -O - | grep /record/ | \
+ sed -e "s:.*/record/\([0-9]\+\).*:\1:" | sort | uniq)
+ anew=$(echo $aold | sed -e "s/S$sid\+/I$iid/")
+ echo "$aold $anew" >> $OUT
+ #break
+done

File Metadata

Mime Type
text/x-diff
Expires
Tue, Nov 19, 9:14 PM (23 h, 8 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3806220
Default Alt Text
(2 KB)

Event Timeline