Skip to content

Instantly share code, notes, and snippets.

--- fastnlotoolkit/include/fastnlotk/fastNLOCoeffAddBase.h.orig 2022-04-06 16:06:44.993363517 +0200
+++ fastnlotoolkit/include/fastnlotk/fastNLOCoeffAddBase.h 2022-04-06 16:08:27.560330160 +0200
@@ -115,17 +115,17 @@
// Manipulate coefficient bins
virtual void Clear();//!< Clear all coefficients and event counters
virtual void NormalizeCoefficients(double wgt=1); //!< Set number of events to unity and normalize coefficients accordingly
- virtual void NormalizeCoefficients(const std::vector<std::vector<double> >& wgtProcBin) {};
- virtual void MultiplyCoefficientsByConstant(double fact) {};//!< Multiply all coefficients of all bins by a constant factor
- virtual void MultiplyBin(unsigned int iObsIdx, double fact) {}; //!< Multiply coefficients of one observable bin a factor
- virtual void MultiplyBinProc(unsigned int iObsIdx, unsigned int iProc, double fact) {}; //!< Multiply coefficients of one observable bin a factor (idx starting from 0)
--- external/OpenLoops-install/pyol/bin/download_process.py 2023-12-12 15:41:57.205973359 +0100
+++ external/OpenLoops-install/pyol/bin/download_process.py.new 2023-12-12 15:42:07.918020965 +0100
@@ -116,7 +116,11 @@
if remote_channel_url.startswith('/'):
rfh = open(remote_channel_url, 'rb')
else:
- rfh = urlopen(remote_channel_url)
+ import ssl
+ ctx = ssl.create_default_context()
+ ctx.check_hostname = False
@cschwan
cschwan / compare_old_vs_new_ckm.sh
Created December 8, 2023 09:28
Patch PineAPPL grids for W+ and W- boson production to include a non-diagonal CKM matrix
#!/bin/bash
set -euo pipefail
grids=(
ATLAS_WM_7TEV.pineappl.lz4
ATLAS_WP_7TEV.pineappl.lz4
LHCB_WM_7TEV.pineappl.lz4
LHCB_WM_8TEV.pineappl.lz4
LHCB_WP_7TEV.pineappl.lz4
#define GNU_NAME_MANGLING
#include <recola.h>
#include <array>
#include <cassert>
#include <iostream>
#include <iomanip>
#include <vector>
extern "C"
Q0: 1.65
Q2grid:
- 25825.775616000003
backward_inversion: exact
configs:
backward_inversion: exact
ev_op_iterations: 1
ev_op_max_order:
- 10
- 0
=== modified file 'Template/NLO/SubProcesses/pineappl_interface.cc'
--- old/Template/NLO/SubProcesses/pineappl_interface.cc 2021-07-14 13:01:50 +0000
+++ new/Template/NLO/SubProcesses/pineappl_interface.cc 2021-11-26 11:43:57 +0000
@@ -103,27 +103,6 @@
extern "C" void appl_init_()
{
- // Grid Initialization and definition of the observables.
- // Construct the input file name according to its position in the
- // vector "grid_obs".
Samples: 6K of event 'cycles', Event count (approx.): 30565155388
- 100.00% pineappl
- 70.46% pineappl
@cschwan
cschwan / gist:913307
Created April 11, 2011 10:00
Minimum set of packages needed for a prefix - USE="-nls -perl -python"
cschwan@graviton /temp/cschwan/gentoo $ emerge -eva world
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] sys-libs/ncurses-5.7-r6 USE="cxx unicode -ada -debug -doc (-gpm) -minimal -profile -static-libs -trace" 0 kB
[ebuild R ] sys-libs/zlib-1.2.5-r2 0 kB
[ebuild R ] app-arch/xz-utils-5.0.0 USE="threads -nls -static-libs" 0 kB
[ebuild R ] sys-apps/sed-4.2.1-r1 USE="-acl -nls (-selinux) -static" 0 kB
[ebuild R ] sys-devel/gnuconfig-20110202 0 kB