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
Using the master optionsfile: options.pkl | |
******************************************************************************** | |
* ---- LHCb Login v8r3 ---- * | |
* Building with gcc48 on slc6 x86_64 system (x86_64-slc6-gcc48-opt) * | |
******************************************************************************** | |
--- User_release_area is set to /afs/cern.ch/user/a/apearce/cmtuser | |
--- LHCBPROJECTPATH is set to: | |
/afs/cern.ch/lhcb/software/releases | |
/afs/cern.ch/sw/Gaudi/releases | |
/afs/cern.ch/sw/lcg/releases |
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
phi_combination = CombineParticles( | |
'CombineCheatedphiToKK', | |
Preambulo=truth_matching_preambulo, | |
# There's no "anti-phi", so no [...]cc | |
DecayDescriptors=['phi(1020) -> K- K+'], | |
Inputs=[ | |
kaons | |
], | |
# The D_s+ MC sample models the resonant phase space but doesn't insert | |
# actual resonant particles, so there isn't a real phi |
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
Flask==0.10.1 | |
Jinja2==2.7.3 | |
MarkupSafe==0.23 | |
Werkzeug==0.9.6 | |
uWSGI==2.0.7 | |
honcho==0.5.0 | |
itsdangerous==0.24 | |
redis==2.10.1 | |
# Use a patched rq v0.4.6 | |
# Fixes a problem where workers would have completed status before saving the payload |
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
import ROOT as R | |
from ROOT import RooFit as RF | |
from charmproduction import config, utilities | |
def create_binning(var, edges): | |
"""Return RooBinning for var with bin edges. | |
Lowest and highest bin edge are automatically added from |
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
_____ _____ _____ _____ | |
/\ \ /\ \ /\ \ /\ \ | |
/::\ \ /::\____\ /::\ \ /::\ \ | |
/::::\ \ /::::| | \:::\ \ /::::\ \ | |
/::::::\ \ /:::::| | \:::\ \ /::::::\ \ | |
/:::/\:::\ \ /::::::| | \:::\ \ /:::/\:::\ \ | |
/:::/__\:::\ \ /:::/|::| | \:::\ \ /:::/__\:::\ \ | |
/::::\ \:::\ \ /:::/ |::| | /::::\ \ /::::\ \:::\ \ | |
/::::: |
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
import ROOT | |
from ROOT import RooFit as RF | |
ROOT.gROOT.ProcessLine('#include "charmproduction/fitting/shape_classes/RooSmearedLogChiSquared.cxx"') | |
w = ROOT.RooWorkspace('w') | |
w.factory('x[-5, 5]') | |
w.factory('mu_ip[2, -10, 10]') | |
w.factory('alphaL_ip[1, 0.1, 10]') | |
w.factory('alphaR_ip[1, 0.1, 10]') | |
w.factory('RooSmearedLogChiSquared::pdf_ip(x, mu_ip, alphaL_ip, alphaR_ip)') |
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
from os import makedirs | |
def download_lfns(job, path="/afs/cern.ch/work/a/apearce/Ganga"): | |
"""Downloads all Dirac files for all subjobs of a given job. | |
Keyword arguments: | |
job -- Ganga Job object. Only completed jobs/subjobs will be downloaded | |
path -- Prefix path to download to, will be suffixed by job_id/subjob_id | |
""" | |
print "Downloading LFNs to {0}/{1}".format(path, job.id) |
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
require 'formula' | |
class Root < Formula | |
homepage 'http://root.cern.ch' | |
url 'ftp://root.cern.ch/root/root_v6.02.00.source.tar.gz' | |
mirror 'http://ftp.riken.jp/pub/ROOT/root_v6.02.00.source.tar.gz' | |
version '6.02.00' | |
sha1 '98449e9a4d91cc487c5ae59c1128d20286f134cc' | |
head 'https://github.com/root-mirror/root.git', :branch => 'v6-02-00-patches' | |
# url "ftp://root.cern.ch/root/root_v5.34.22.source.tar.gz" |
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
from datetime import datetime | |
from flask import Flask, session, redirect | |
from flask_sso import SSO | |
def get_user_session_info(key): | |
return session['user'].get( | |
key, | |
'Key `{0}` not found in user session info'.format(key) |
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
# Apache server configuration for ssotutorial. | |
# This sets up a Flask application over SSL with CERN SSO authentication via | |
# Shibboleth. | |
# Load the SSL and Shibboleth modules | |
LoadModule ssl_module modules/mod_ssl.so | |
LoadModule mod_shib /usr/lib64/shibboleth/mod_shib_22.so | |
# Disable TRACE HTTP requests on CERN advice | |
TraceEnable Off |