View computeNonResonantV1toV3Weights.py
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
#! /bin/env python | |
import ROOT | |
v3_filename = "Distros_benchmarks_5p_500000ev_12sam_13TeV_JHEPv3.root" | |
# From https://github.com/acarvalh/generateHH/blob/master/mapV1/Distros_5p_500000ev_12sam_13TeV_JHEP_500K.root | |
#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 |
View frameworkBootstrap.sh
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
#! /bin/sh | |
# Bootstrap a CMSSW installation ready for a given framework version | |
# Usage: ./frameworkBootstrap.sh [-j N] [-o NAME] BRANCH | |
FRAMEWORK_GITHUB_SSH=git@github.com:cp3-llbb/Framework.git | |
FRAMEWORK_GITHUB_RAW=https://raw.githubusercontent.com/cp3-llbb/Framework | |
# Default options | |
CORE=4 |
View fwtFileStat.py
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
#! /bin/env python | |
""" | |
Print disk usage of a TTree | |
""" | |
from __future__ import division | |
import sys, array, os |
View JECReader.h
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
#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> |
View patch_produce_PAT_COMMON.py
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/crab/produce_PAT_COMMON.py b/crab/produce_PAT_COMMON.py | |
index 082490f..8e3f4e1 100644 | |
--- a/crab/produce_PAT_COMMON.py | |
+++ b/crab/produce_PAT_COMMON.py | |
@@ -40,8 +40,18 @@ def createProcess(runOnMC, runCHS, correctMETWithT1, processCaloJets, globalTag) | |
# this function will modify the PAT sequences. | |
from PhysicsTools.PatAlgos.tools.coreTools import removeSpecificPATObjects, removeMCMatching | |
from PhysicsTools.PatAlgos.tools.pfTools import usePF2PAT, adaptPFIsoElectrons, adaptPVs, usePFIso | |
+ from PhysicsTools.PatAlgos.tools.jetTools import addJetCollection | |
#from PhysicsTools.PatAlgos.tools.metTools import * |