Skip to content

Instantly share code, notes, and snippets.

Generating RSA private key, 4196 bit long modulus (2 primes)
............++++
.................++++
e is 65537 (0x010001)
Generating RSA private key, 4196 bit long modulus (2 primes)
............................................................................................................................................................................................................................................................................................................................++++
.++++
e is 65537 (0x010001)
Signature ok
subject=CN = docker:dind server
2019-06-03T10:21:18.219819018Z stdout F hostIP = 172.17.0.2
2019-06-03T10:21:18.219840157Z stdout F podIP = 172.17.0.2
2019-06-03T10:21:48.213045063Z stderr F panic: Get https://10.96.0.1:443/api/v1/nodes: dial tcp 10.96.0.1:443: i/o timeout
2019-06-03T10:21:48.213157104Z stderr F
2019-06-03T10:21:48.213164689Z stderr F goroutine 1 [running]:
2019-06-03T10:21:48.213169299Z stderr F main.main()
2019-06-03T10:21:48.213174648Z stderr F /src/main.go:84 +0x423
2019-06-03T08:21:45.456119607Z stdout F hostIP = 172.17.0.4
2019-06-03T08:21:45.456157435Z stdout F podIP = 172.17.0.4
2019-06-03T08:22:15.44426374Z stderr F panic: Get https://10.96.0.1:443/api/v1/nodes: dial tcp 10.96.0.1:443: i/o timeout
2019-06-03T08:22:15.444311239Z stderr F
2019-06-03T08:22:15.444317729Z stderr F goroutine 1 [running]:
2019-06-03T08:22:15.44432285Z stderr F main.main()
2019-06-03T08:22:15.444330284Z stderr F /src/main.go:84 +0x423
2019-05-26T18:13:05.551151501Z stderr F W0526 18:13:05.540783 1 server_others.go:267] Flag proxy-mode="" unknown, assuming iptables proxy
2019-05-26T18:13:05.587406293Z stderr F I0526 18:13:05.585832 1 server_others.go:146] Using iptables Proxier.
2019-05-26T18:13:05.587518904Z stderr F I0526 18:13:05.586173 1 server.go:562] Version: v1.14.2
2019-05-26T18:13:05.623931244Z stderr F I0526 18:13:05.623182 1 conntrack.go:52] Setting nf_conntrack_max to 131072
2019-05-26T18:13:05.634930768Z stderr F I0526 18:13:05.623275 1 conntrack.go:100] Set sysctl 'net/netfilter/nf_conntrack_tcp_timeout_established' to 86400
2019-05-26T18:13:05.634957583Z stderr F I0526 18:13:05.623325 1 conntrack.go:100] Set sysctl 'net/netfilter/nf_conntrack_tcp_timeout_close_wait' to 3600
2019-05-26T18:13:05.635079138Z stderr F I0526 18:13:05.626696 1 config.go:202] Starting service config controller
2019-05-26T18:13:05.635087681Z stderr F I0526 18:13:05.626726 1 controller_utils.go:1027] Wait
apk add automake autoconf libtool && apk add python-dev musl-dev libffi-dev && apk add python-dev musl-dev libffi-dev gcc && apk add autoconf curl gcc ipset ipset-dev iptables iptables-dev libnfnetlink libnfnetlink-dev libnl3 libnl3-dev make musl-dev openssl openssl-dev && curl https://bootstrap.pypa.io/get-pip.py | python -
apk add graphviz graphviz-dev imagemagick
pip install yadage[viz] pydotplus
export PACKTIVITY_DOCKER_CMD_MOD="-u root"
yadage-run workdir workflow.yml -t gitlab-cern:lheinric/susydemor_wflow --parameter message_string="myfirstworkflow" --visualize
- name: ground_truth_20180515_202114_b0328df7-8b40-4a26-8d84-c9d7f6039c7f
why: many final state particles where you need to get the momenta right
- name: ground_truth_20180515_202146_77c27a83-a2cb-4709-a8c7-56fe1ad8c85b
why: somewhat merged three-prong decay K- pi+ pi-
- name: ground_truth_20180515_202321_a90f52f5-2be1-4947-9ace-bc7d17fe1fbf
why: lots! of particles (10) with secondary decays (3 charged pi, 2 neutral pi -> gamgam)
token = "TOKEN"
projname = 'testtemplaterepo9'
import gitlab
import subprocess
from cookiecutter.main import cookiecutter
gl = gitlab.Gitlab("https://gitlab.cern.ch",token,api_version=4)
0 {16,11,-12} | 0.1785 | tau-_nu_taunu_ebe-.dat;
1 {16,13,-14} | 0.1736 | tau-_nu_taunu_mubmu-.dat;
2 {16,-211} | 0.109 | tau-_pi-nu_tau.dat;
3 {16,-321} | 0.00696 | tau-_K-nu_tau.dat;
4 {16,-211,111} | 0.255 | tau-_pi-pinu_tau.dat;
5 {16,-321,310} | 0.0007 | tau-_K-KSnu_tau.dat;
6 {16,-321,130} | 0.0007 | tau-_K-KLnu_tau.dat;
7 {16,-211,310} | 0.0042 | tau-_KSpi-nu_tau.dat;
8 {16,-211,130} | 0.0042 | tau-_pi-KLnu_tau.dat;
9 {16,-321,111} | 0.0045 | tau-_K-pinu_tau.dat;
diff --git a/pyhf/readxml.py b/pyhf/readxml.py
index 9a3a27f..9ec8bd5 100644
--- a/pyhf/readxml.py
+++ b/pyhf/readxml.py
@@ -1,5 +1,6 @@
import os
import xml.etree.ElementTree as ET
+import numpy as np
def import_root_histogram(rootdir, filename, path, name):
source setup.sh
./scripts/launch_histfitter_bkgfit ++config config/mbj_singlebin.json ++script python/3b.py ++generatePatchJSON
HistFitter.py -wtf -D "before,after,corrMatrix" -F bkg python/3b.py ++config config/mbj_singlebin.json patch0.json ++inputFiles /data/Bkg_21.2.18_mc16a.diboson.root /data/Bkg_21.2.18_mc16a.dijet.root /data/Bkg_21.2.18_mc16a.singletop.root /data/Bkg_21.2.18_mc16a.topEW.root /data/Bkg_21.2.18_mc16a.ttbar.root /data/Bkg_21.2.18_mc16a.W_jets.root /data/Bkg_21.2.18_mc16a.Z_jets.root /data/Data_21.2.18_20152016.root /data/Data_21.2.18_2017.root /data/Sig_21.2.18_mc16a.Gbb.root /data/Sig_21.2.18_mc16a.Gtb.root /data/Sig_21.2.18_mc16a.Gtt.root
mv results/* /outresults/
python python/pullPlot.py ++config config/mbj_singlebin.json ++resultsDir /outresults ++outDir_plots /outplots/