Skip to content

Instantly share code, notes, and snippets.

@wiso
wiso / Poisson
Created June 20, 2014 19:54
Poisson
{
"metadata": {
"name": "poisson"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@wiso
wiso / Poisson2
Created June 21, 2014 17:51
Poisson2
{
"metadata": {
"name": "poisson"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@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": [
{
@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 / 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_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 / gist:497b3ea55ccc639db829
Created February 20, 2015 15:33
Discrete profiling
{
"metadata": {
"name": "",
"signature": "sha256:49129f1ba75369822f0d975a66b9800a024085f4bca7ab501f6b1a8cf3ba306c"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
@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 / 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