This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python2 | |
import time | |
import math | |
import threading | |
import htcondor | |
coll = htcondor.Collector("condor02.rcf.bnl.gov:9664") | |
schedd_list = coll.locateAll(htcondor.DaemonTypes.Schedd) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdint.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <fcntl.h> | |
#include <sys/stat.h> | |
#include <sys/ioctl.h> | |
#define VME_A32 0x4 | |
#define VME_D32 0x4 | |
#define VME_USER 0x2000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VME_A16 = 0x1 | |
VME_A24 = 0x2 | |
VME_A32 = 0x4 | |
VME_A64 = 0x8 | |
VME_CRCSR = 0x10 | |
VME_SUPER = 0x1000 | |
VME_USER = 0x2000 | |
VME_PROG = 0x4000 | |
VME_DATA = 0x8000 | |
VME_SCT = 0x1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -rupN nlojet++-4.1.3-orig/nlo-hep/hep-lorentz/bits/hep-lorentzvector_complex.h nlojet++-4.1.3/nlo-hep/hep-lorentz/bits/hep-lorentzvector_complex.h | |
--- nlojet++-4.1.3-orig/nlo-hep/hep-lorentz/bits/hep-lorentzvector_complex.h 2010-05-11 11:06:00.000000000 -0400 | |
+++ nlojet++-4.1.3/nlo-hep/hep-lorentz/bits/hep-lorentzvector_complex.h 2014-08-23 03:22:51.000000000 -0400 | |
@@ -26,8 +26,11 @@ | |
namespace nlo { | |
// Spacializations | |
+ template<> | |
class lorentzvector<std::complex<float> >; | |
+ template<> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Imakefile b/Imakefile | |
index 8c61951..6e0f945 100644 | |
--- a/Imakefile | |
+++ b/Imakefile | |
@@ -18,7 +18,7 @@ AllTarget($(PROGRAM)) | |
$(PROGRAM):: | |
$(FC) $(LDOPT) -o $(PROGRAM) src/td.o td.a misc.a \ | |
- $(UGS) $(LDPRELIB) $(XTOOLLIB) $(XLIB) | |
+ $(UGS) $(LDPRELIB) $(XTOOLLIB) $(XLIB) -L/opt/X11/lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Makefile.in b/Makefile.in | |
index 7f18f5c..6d9b237 100644 | |
--- a/Makefile.in | |
+++ b/Makefile.in | |
@@ -876,10 +876,6 @@ slow: | |
install-data-local: | |
mkdir -p $(pkgdatadir) | |
-@HAS_SVNVERSION_TRUE@ if ! test `svnversion $(srcdir)` = "exported" ; then\ | |
-@HAS_SVNVERSION_TRUE@ svnversion $(srcdir) > $(pkgdatadir)/svnversion ;\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scipy.optimize | |
def mlnL_Barlow(x, x_mean, sigma_p, sigma_n): | |
# from arXiv:physics/0406120 | |
return 0.5 * ((x - x_mean)**2) / (sigma_p * sigma_n + (sigma_p - sigma_n) * (x - x_mean)) | |
assert mlnL_Barlow(7+5, 7, 5, 3) == 0.5 | |
assert mlnL_Barlow(7-3, 7, 5, 3) == 0.5 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
wget http://fastnlo.hepforge.org/code/other/nlojet++-4.1.3-patched.tar.gz | |
wget http://fastnlo.hepforge.org/code/other/fastjet-3.0.6.tar.gz | |
wget http://fastnlo.hepforge.org/code/other/qcdnum-17.00.06-patched.tar.gz | |
wget http://fastnlo.hepforge.org/code/other/lhapdf-5.9.1.tar.gz | |
wget http://fastnlo.hepforge.org/code/v23/fastnlo_toolkit-2.3.1pre-1871.tar.gz | |
wget http://fastnlo.hepforge.org/code/v23/fastnlo_interface_nlojet-2.3.1pre-1855.tar.gz | |
for i in *.tar.gz; do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
cd /tmp | |
wget http://mirrors.ctan.org/macros/latex/contrib/foiltex/foiltex.dtx | |
wget http://mirrors.ctan.org/macros/latex/contrib/foiltex/foiltex.ins | |
latex foiltex.ins | |
PREFIX=~/Library/texmf | |
mkdir $PREFIX | |
mkdir -p $PREFIX/tex/latex/foils | |
cp foils.sty $PREFIX/tex/latex/foils/ | |
mkdir -p $PREFIX/tex/latex/base |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
from reportlab.pdfgen import canvas | |
mm = 2.83464567 | |
fms = [(0, 9), (0, 10), (0, 11), (0, 12), (0, 13), (0, 14), (0, 15), (0, 16), (0, 16), (8, 16), (8, 16), (8, 16), (8, 16), (8, 16), (8, 16), (8, 16), (8, 16), (8, 16), (8, 16), (8, 16), (8, 16), (8, 16), (8, 16), (8, 16), (8, 16), (0, 16), (0, 16), (0, 15), (0, 14), (0, 13), (0, 12), (0, 11), (0, 10), (0, 9)] | |
ch = 1 | |
row = 0 |