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
_____ _____ _____ _____ | |
/\ \ /\ \ /\ \ /\ \ | |
/::\ \ /::\____\ /::\ \ /::\ \ | |
/::::\ \ /::::| | \:::\ \ /::::\ \ | |
/::::::\ \ /:::::| | \:::\ \ /::::::\ \ | |
/:::/\:::\ \ /::::::| | \:::\ \ /:::/\:::\ \ | |
/:::/__\:::\ \ /:::/|::| | \:::\ \ /:::/__\:::\ \ | |
/::::\ \:::\ \ /:::/ |::| | /::::\ \ /::::\ \:::\ \ | |
/::::: |
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 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 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 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 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 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 | |
# Replace with location to your favourite ntuple | |
f = ROOT.TFile(( | |
'/Users/apearce/Physics/Data/CharmProduction2010/Reprocessed' | |
'/DVntuple.2010.12.MagUp.root' | |
), 'read') | |
t = f.Get('TupleD0Tohh/DecayTree') | |
h1 = ROOT.TH1F('h1', 'h1', 170, 1780, 1950) | |
h2 = ROOT.TH1F('h2', 'h2', 170, 1780, 1950) |
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 ROOT | |
import numpy | |
f = ROOT.TFile('alias.root', 'recreate') | |
t = ROOT.TTree('t', 't') | |
a = numpy.zeros(1, dtype=float) | |
t.Branch('a', a, 'a/D') | |
for i in range(10): |
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
g++ -c -o obj/TMVAClassification.o src/TMVAClassification.cxx -g -O0 -I./include/ -Wall -std=c++11 -fPIC -pthread -stdlib=libc++ -std=c++11 -m64 -I/usr/local/Cellar/root6/6.02.04/include/root | |
g++ -c -o obj/AnyWriter.o src/AnyWriter.cxx -g -O0 -I./include/ -Wall -std=c++11 -fPIC -pthread -stdlib=libc++ -std=c++11 -m64 -I/usr/local/Cellar/root6/6.02.04/include/root | |
g++ -c -o obj/DConfig.o src/DConfig.cxx -g -O0 -I./include/ -Wall -std=c++11 -fPIC -pthread -stdlib=libc++ -std=c++11 -m64 -I/usr/local/Cellar/root6/6.02.04/include/root | |
g++ -c -o obj/MyUtils.o src/MyUtils.cxx -g -O0 -I./include/ -Wall -std=c++11 -fPIC -pthread -stdlib=libc++ -std=c++11 -m64 -I/usr/local/Cellar/root6/6.02.04/include/root | |
g++ -c -o obj/BDTTools.o src/BDTTools.cxx -g -O0 -I./include/ -Wall -std=c++11 -fPIC -pthread -stdlib=libc++ -std=c++11 -m64 -I/usr/local/Cellar/root6/6.02.04/include/root | |
rootcint -f dict/MyDict.cxx -c -p include/ROOTex.h include/LinkDef.h | |
g++ -c -o obj/ROOTex.o dict/MyDict.cxx -I./ -g -O0 -I./include/ -Wall -std=c+ |
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/roofit/roofitcore/src/RooBanner.cxx b/roofit/roofitcore/src/RooBanner.cxx | |
index 89c0338..8cc41b9 100644 | |
--- a/roofit/roofitcore/src/RooBanner.cxx | |
+++ b/roofit/roofitcore/src/RooBanner.cxx | |
@@ -10,6 +10,7 @@ | |
// END_HTML | |
// | |
+#define __ROOFIT_NOBANNER | |
using namespace std; |
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 ROOT as R | |
from ROOT import RooFit as RF | |
# 'Unblind' or 'Blind' | |
# BLINDING = 'Blind' | |
BLINDING = 'Unblind' | |
BLIND_STR = '6LJgnoyA4Zr95gec' | |
def roovar_value(rv): | |
'''Return a pretty-printed central value and uncertainty of rv. |