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 json | |
import random | |
import sys | |
import dask | |
import uproot | |
from coffea.dataset_tools import rucio_utils | |
from dbs.apis.dbsClient import DbsApi | |
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 json | |
import os | |
import sys | |
import awkward as ak | |
# import correctionlib._core as core | |
import correctionlib | |
import hist | |
import matplotlib as mpl |
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
// /cvmfs/sft.cern.ch/lcg/releases/gcc/12.1.0-57c96/x86_64-centos7/bin/g++ main42.cc -o main42 -I/cvmfs/sft.cern.ch/lcg/releases/MCGenerators/pythia8/310-4b0bd/x86_64-centos7-gcc12-opt/include -O2 -std=c++11 -pedantic -W -Wall -Wshadow -fPIC -pthread -L/cvmfs/sft.cern.ch/lcg/releases/MCGenerators/pythia8/310-4b0bd/x86_64-centos7-gcc12-opt/lib -Wl,-rpath,/cvmfs/sft.cern.ch/lcg/releases/MCGenerators/pythia8/310-4b0bd/x86_64-centos7-gcc12-opt/lib -lpythia8 -ldl -I/cvmfs/sft.cern.ch/lcg/releases/fastjet/3.4.1-5af57/x86_64-centos7-gcc12-opt/include/ -L/cvmfs/sft.cern.ch/lcg/releases/fastjet/3.4.1-5af57/x86_64-centos7-gcc12-opt/lib/ -Wl,-rpath,/cvmfs/sft.cern.ch/lcg/releases/fastjet/3.4.1-5af57/x86_64-centos7-gcc12-opt/lib/ -lfastjet `root-config --cflags --glibs` | |
// main42.cc is a part of the PYTHIA event generator. | |
// Copyright (C) 2023 Torbjorn Sjostrand. | |
// PYTHIA is licenced under the GNU GPL v2 or later, see COPYING for details. | |
// Please respect the MCnet Guidelines, see GUIDELINES for details. | |
// Authors |
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
# Auto generated configuration file | |
# using: | |
# Revision: 1.19 | |
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v | |
# with command line options: Configuration/GenProduction/python/HIG.py --python_filename HIG_cfg.py --eventcontent NANOAODGEN --customise Configuration/DataProcessing/Utils.addMonitoring --datatier NANOAOD --fileout file:HIG-RunIISummer20UL18wmLHEGEN-01277.root --conditions 106X_upgrade2018_realistic_v4 --beamspot Realistic25ns13TeVEarly2018Collision --geometry DB:Extended --step LHE,GEN,NANOGEN --era Run2_2018 --no_exec --mc -n 10 | |
import FWCore.ParameterSet.Config as cms | |
from FWCore.ParameterSet.VarParsing import VarParsing | |
options = VarParsing ('analysis') |
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 requests | |
import subprocess | |
class block: | |
def __init__(self, restrict, name='SMEFT'): | |
start = restrict.index(list(filter(lambda k: k == 'Block ' + name, restrict))[0]) + 1 | |
stop = restrict[start:].index('###################################') | |
stop = start + stop | |
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
""" | |
Main script for the creation of shapes, starting from a configuration folder. | |
It gives the option to compile the configuration folder and save it as both JSON and pickle file. | |
It also gives the option to run the analysis in batch mode, or to check for errors in the batch submission. | |
The analysis can be run in batch mode or locally. | |
If run in batch mode it gives the ability to merge the output root files. |
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
from copy import deepcopy | |
import sys | |
import ROOT | |
from array import array | |
from mkShapesRDF.lib.parse_cpp import ParseCpp | |
import os | |
from math import sqrt | |
ROOT.gROOT.SetBatch(True) | |
ROOT.TH1.SetDefaultSumw2(True) |
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
#!/usr/bin/env python | |
import sys | |
import ROOT | |
import optparse | |
import collections | |
import os.path | |
import shutil |
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
from copy import deepcopy | |
import sys | |
import ROOT | |
from array import array | |
from mkShapesRDF.lib.parse_cpp import ParseCpp | |
import os | |
from math import sqrt | |
ROOT.gROOT.SetBatch(True) | |
ROOT.TH1.SetDefaultSumw2(True) |
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 sys | |
#sys.path.insert(0, '/gwpool/users/tecedor/.local/lib/python3.9/site-packages/') | |
sys.path.insert(0, '/gwpool/users/gpizzati/.local/lib/python3.9/site-packages/') | |
import ROOT | |
import pylhe | |
import awkward as ak | |
import numpy as np | |
#arr = pylhe.to_awkward(pylhe.read_lhe_with_attributes('/gwpool/users/tecedor/genproductions/GridpackConfig/bin/MadGraph5_aMCatNLO/lhe/HHjj_ewk_smhloop0_dim6_3ops_15904236_10.lhe')) | |
files = [] |
NewerOlder