Skip to content

Instantly share code, notes, and snippets.

View blinkseb's full-sized avatar

Sébastien Brochet blinkseb

View GitHub Profile
blinkseb /
Created August 30, 2016 11:59
Compute V1 -> V3 weights for the 1507 phase space points
#! /bin/env python
import ROOT
v3_filename = "Distros_benchmarks_5p_500000ev_12sam_13TeV_JHEPv3.root"
# From
#v3_filename = "Distros_5p_500000ev_12sam_13TeV_JHEP_500K.root"
#v3_filename = "GluGluToHHTo2B2VTo2L2Nu_node_{}_mhh_vs_cos_theta_star.root" #=> used for v1/v1 check
blinkseb /
Last active May 4, 2016 12:06
Small script for bootstrapping the CP3 llbb framework
#! /bin/sh
# Bootstrap a CMSSW installation ready for a given framework version
# Usage: ./ [-j N] [-o NAME] BRANCH
# Default options
blinkseb /
Created October 16, 2015 07:12
Small PyROOT script to print statistics about a TTree
#! /bin/env python
Print disk usage of a TTree
from __future__ import division
import sys, array, os
View JECReader.h
#pragma once
#include <string>
#include <vector>
// Custom corrections
#include "CondFormats/JetMETObjects/interface/JetCorrectorParameters.h"
#include "CondFormats/JetMETObjects/interface/FactorizedJetCorrector.h"
#include <xercesc/parsers/XercesDOMParser.hpp>
blinkseb /
Last active December 29, 2015 23:09
CA8 configuration for gamma + jets analysis
diff --git a/crab/ b/crab/
index 082490f..8e3f4e1 100644
--- a/crab/
+++ b/crab/
@@ -40,8 +40,18 @@ def createProcess(runOnMC, runCHS, correctMETWithT1, processCaloJets, globalTag)
# this function will modify the PAT sequences.
from import removeSpecificPATObjects, removeMCMatching
from import usePF2PAT, adaptPFIsoElectrons, adaptPVs, usePFIso
+ from import addJetCollection
#from import *