This file contains hidden or 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 <cstdlib> | |
#include <complex> | |
#include <iostream> | |
#include <cstring> | |
using namespace std; | |
void PrintPhysicsParameterXML(string name, double value, double min, double max, string unit) | |
{ | |
cout << " <PhysicsParameter>" << endl; | |
cout << " <Name>" << name << "</Name>" << endl; | |
cout << " <Value>" << value << "</Value>" << endl; |
This file contains hidden or 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
# Executes the first argument as a command on a ui node and keeps an interactive bash session once it closes | |
function lhcbui() | |
{ | |
ssh ui.lhcb -t "bash -ic \"$1;bash\"" | |
} | |
alias presenter='lhcbui /group/online/scripts/presenter' |
This file contains hidden or 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
# file /nightlies/jenkins/workspace/nightly-slot-checkout/tmp/checkout/DBASE/Gen/DecFiles/v28r1/options/13104013.py generated: Wed, 12 Aug 2015 15:32:33 | |
# | |
# Event Type: 13104013 | |
# | |
# ASCII decay Descriptor: [B_s0 -> (phi(1020) -> K+ K-) (phi(1020) -> K+ K-)]cc | |
# | |
from Gaudi.Configuration import * | |
#importOptions( "$DECFILESROOT/options/B2PhiPhi.py" ) | |
from Configurables import Generation | |
Generation().EventType = 13104013 |
This file contains hidden or 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/bash | |
pyp2rpm nbgrader -s | |
sed -i '/^.*python3dist(jupyter).*$/d' rpmbuild/SPECS/python-nbgrader.spec | |
rpmbuild -bs rpmbuild/SPECS/python-nbgrader.spec | |
rpmbuild --rebuild rpmbuild/SRPMS/python-nbgrader-*.src.rpm |
This file contains hidden or 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 python | |
import requests | |
import csv | |
def download_table(url="https://gitlab.cern.ch/lhcb-conddb/DDDB/-/raw/master/param/ParticleTable.txt"): | |
r = requests.get(url) | |
r.raise_for_status() | |
lines = r.text.split("\n") |
This file contains hidden or 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 python | |
import requests | |
import csv | |
import datetime as dt | |
def download_table(url="https://gitlab.cern.ch/lhcb-conddb/DDDB/-/raw/master/param/ParticleTable.txt"): | |
r = requests.get(url) | |
r.raise_for_status() |