Skip to content

Instantly share code, notes, and snippets.

View paulgessinger's full-sized avatar

Paul Gessinger paulgessinger

View GitHub Profile
We can make this file beautiful and searchable if this error is corrected: It looks like row 9 should actually have 5 columns, instead of 4. in line 8.
commit,date,utc,metric,value
928faa16,2023-06-18T14:31:42+00:00,1687098702.0,max_rss_Tests/UnitTests/Core/TrackFitting/Chi2FitterTests.cpp,3.1715660095214844
928faa16,2023-06-18T14:31:42+00:00,1687098702.0,max_rss_Examples/Algorithms/TrackFittingChi2/src/TrackFittingChi2AlgorithmFunction.cpp,2.5635108947753906
928faa16,2023-06-18T14:31:42+00:00,1687098702.0,max_rss_Tests/UnitTests/Alignment/Kernel/AlignmentTests.cpp,2.400848388671875
928faa16,2023-06-18T14:31:42+00:00,1687098702.0,max_rss_Tests/UnitTests/Core/Vertexing/AdaptiveMultiVertexFinderTests.cpp,2.3143539428710938
928faa16,2023-06-18T14:31:42+00:00,1687098702.0,max_rss_Tests/UnitTests/Core/TrackFitting/GsfTests.cpp,2.2905616760253906
928faa16,2023-06-18T14:31:42+00:00,1687098702.0,max_rss_Examples/Algorithms/Alignment/src/AlignmentAlgorithmFunction.cpp,2.252971649169922
928faa16,2023-06-18T14:31:42+00:00,1687098702.0,max_rss_Examples/Algorithms/TrackFitting/src/GsfFitterFunction.cpp,2.1289138793945312
928faa16,2023-06-18T14:31:42+00:00,1687098702.0,ma
@paulgessinger
paulgessinger / pythia8307_cpp20.patch
Created March 22, 2023 18:13
Pythia 8307+ compatibility with C++20
From 09ef584f1ca797d84c1c0af18ec06b33d6c0d2d0 Mon Sep 17 00:00:00 2001
From: Paul Gessinger <paul.gessinger@cern.ch>
Date: Thu, 24 Mar 2022 16:08:26 +0100
Subject: [PATCH] fixes for C++20 build
---
include/Pythia8/SusyLesHouches.h | 6 +++---
src/HadronWidths.cc | 8 ++++----
src/NucleonExcitations.cc | 8 ++++----
src/PythiaParallel.cc | 2 +-
#include <vector>
#include <iostream>
#include <string_view>
#include <memory>
struct A{
static constexpr auto name() { return std::string_view{"A"};}
};
struct B{
@paulgessinger
paulgessinger / CMakeLists.txt
Last active June 9, 2021 18:45
Assign C++ type to `std::function` with pybind11 without going through python
project(pybind_repro)
cmake_minimum_required(VERSION 3.14)
find_package(pybind11 CONFIG REQUIRED)
pybind11_add_module(demo binding.cpp)
\documentclass[dvipsnames,crop=true]{standalone}
\usepackage{tikz,pgfplots}
\usetikzlibrary{calc,external,intersections,pgfplots.colormaps}
\begin{document}
\tikzsetnextfilename{seeding}
\begin{tikzpicture}[scale=0.7,line width=1pt]
\begin{scope}[/pgfplots/colormap/viridis,
#!/usr/bin/env python3
import subprocess as sp
import sys
import time
from datetime import datetime
import re
import csv
import json
import os
import re
\documentclass[dvipsnames,crop=true]{standalone}
\usepackage{tikz}
\usetikzlibrary{calc,external,3d}
\usepackage{svg}
\begin{document}
\tikzsetnextfilename{bounding_box}
\begin{tikzpicture}[scale=1.5,
line width=1pt,
% x={(1cm,0cm)},
% y={(0.2cm,0.25cm)},
@paulgessinger
paulgessinger / dd4hep_1_11_2_backport.patch
Last active April 30, 2020 11:49
Backport of fixed to DD4hep 1.11.2
diff --git a/DDDigi/CMakeLists.txt b/DDDigi/CMakeLists.txt
index d6f26201..f8b522f7 100644
--- a/DDDigi/CMakeLists.txt
+++ b/DDDigi/CMakeLists.txt
@@ -24,12 +24,10 @@ target_include_directories(DDDigi
FIND_PACKAGE(TBB QUIET)
if(TBB_FOUND)
- dd4hep_print( "|++> TBB_INCLUDE_DIR --> ${TBB_INCLUDE_DIR}")
- dd4hep_print( "|++> TBB_LIBRARY --> ${TBB_LIBRARY}")
#!/usr/bin/env python
# Author: Ivan Razumov
# Usage: lcgview.py [options] <view_root>
# This package creates a "view" of LCG release in folder <view_root>.
# optional arguments:
# -h, --help show this help message and exit
# -l LCGPATH, --lcgpath LCGPATH top directory of LCG releases (default: /afs/cern.ch/sw/lcg/releases)
# -r LCGREL, --release LCGREL LCG release number (default: 80)
# -p LCGPLAT, --platform LCGPLAT Platform to use (default: x86_64-slc6-gcc49-opt)
curl -sSL http://invisible-island.net/datafiles/current/terminfo.src.gz | >/tmp/terminfo.src gunzip
tic /tmp/terminfo.src