Skip to content

Instantly share code, notes, and snippets.

@wiso
wiso / chi2_problem_root
Created April 15, 2015 22:36
chi2 problem root
{
"metadata": {
"name": "",
"signature": "sha256:df7234a0e683ce8cb49122683b52f787f9f33e94bdd3a6bc8189dc167e0e2aee"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
@wiso
wiso / localgroupdisk
Created April 14, 2015 22:03
Analysis of usage of localgroupdisk
{
"metadata": {
"name": "",
"signature": "sha256:3e1c49c3c4e537695ae945cbf720250a7981031b9cf4e7037eba8a129208ef78"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
@wiso
wiso / background_ruggero
Last active August 29, 2015 14:18
Background
Many shape analyses have the problem of parametrizing the background. Many approach have been used in the past and new ideas should be investigated, trying to define common recipe(s) taking into account that different analyses can have different needs.
It would be good to extend the discussion to ATLAS, for example inside the statistical forum, but the concern is that such approach, as experimented in the past, may not converge. So the idea is to start the discussion with few people working in some similar analyses ($\gamma\gamma$, $jj$, $\gamma j$, diboson, ...), to list the various possibilities and to evaluate the pro and the cons.
These analyses share a similar background distribution of the invariant mass (smooth, decreasing) with a large number of events and the search for a resonant signal.
Some functional forms have theoretical motivation, but the detector effects are not negligible, so in general it is not mandatory to use functional form that comes from theoretical arguments.
The main topics of
@wiso
wiso / background_ruggero
Last active August 29, 2015 14:18
Background
Many shape analyses have the problem of parametrizing the background. Many approach have been used in the past and new ideas should be investigated, trying to define common recipe(s) taking into account that different analyses can have different needs.
It would be good to extend the discussion to ATLAS, for example inside the statistical forum, but the concern is that such approach, as experimented in the past, may not converge. So the idea is to start the discussion with few people working in some similar analyses ($\gamma\gamma$, $jj$, $\gamma j$, diboson, ...), to list the various possibilities and to evaluate the pro and the cons.
These analyses share a similar background distribution of the invariant mass (smooth, decreasing) with a large number of events and the search for a resonant signal.
Some functional forms have theoretical motivation, but the detector effects are not negligible, so in general it is not mandatory to use functional form that comes from theoretical arguments.
The main topics of
@wiso
wiso / plot_stack.py
Last active August 29, 2015 14:17
Just plot some histograms
import ROOT
if __name__ == "__main__":
common_path = "/users2/mratti/MonoPhotonSL6/Run/looseSR/data-output/"
samples = ({"filenames": common_path + "user.mgenest.slim.mc12_8TeV.126744.Sherpa_CT10_munugammaPt80.vCOMMON1.0.root",
"treename": "physics",
"color": ROOT.kOrange - 9,
"fill": True,
@wiso
wiso / gist:497b3ea55ccc639db829
Created February 20, 2015 15:33
Discrete profiling
{
"metadata": {
"name": "",
"signature": "sha256:49129f1ba75369822f0d975a66b9800a024085f4bca7ab501f6b1a8cf3ba306c"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
@wiso
wiso / example_THPoly_Attilafix2.cxx
Created December 15, 2014 16:43
THPoly problem
// compile with:
// g++ -std=c++11 example_THPoly_Attilafix2.cxx -O0 -g `root-config --cflags` `root-config --libs`
// first download the file:
// wget http://atlas.web.cern.ch/Atlas/GROUPS/DATABASE/GroupData/egammaMVACalib/v1/MVACalib_electron.weights.root
// run with valgrind
// valgrind --tool=memcheck --suppressions=`root-config --etcdir`/valgrind-root.supp ./a.out
#include <cassert>
@wiso
wiso / example_THPoly.cxx
Last active August 29, 2015 14:11
THPoly problem
// compile with:
// g++ example_THPoly.cxx -O0 -g `root-config --cflags` `root-config --libs`
// first download the file:
// wget http://atlas.web.cern.ch/Atlas/GROUPS/DATABASE/GroupData/egammaMVACalib/v1/MVACalib_electron.weights.root
// run with valgrind
// valgrind --tool=memcheck --suppressions=`root-config --etcdir`/valgrind-root.supp ./a.out
#include <cassert>
@wiso
wiso / example_THPoly_Attilafix.cxx
Last active August 29, 2015 14:11
THPoly problem
// compile with:
// g++ example_THPoly_Attilafix.cxx -O0 -g `root-config --cflags` `root-config --libs`
// first download the file:
// wget http://atlas.web.cern.ch/Atlas/GROUPS/DATABASE/GroupData/egammaMVACalib/v1/MVACalib_electron.weights.root
// run with valgrind
// valgrind --tool=memcheck --suppressions=`root-config --etcdir`/valgrind-root.supp ./a.out
#include <cassert>
@wiso
wiso / truncated_rms
Created August 19, 2014 14:13
truncated rms bias correction
{
"metadata": {
"name": "fraction rms"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{