Skip to content

Instantly share code, notes, and snippets.

View svenkreiss's full-sized avatar

Sven Kreiss svenkreiss

View GitHub Profile
@cranmer
cranmer / RooBSplineExample.py
Created September 2, 2014 20:18
RooBSpline example
import ROOT
import numpy as np
def makeBSpline(w,interpParam, observable, pdfList, paramPoints):
# source code for these classes can be found here:
# https://github.com/svenkreiss/roostats/tree/development/roofit/histfactory
#if you don't have this class in your ROOT library, but have it locally
ROOT.gROOT.ProcessLine(".L RooBSpline.cxx+")
paramVec = ROOT.TVectorD(len(paramPoints))