Skip to content

Instantly share code, notes, and snippets.

@kmohrman
kmohrman / make_scan_files.py
Created June 8, 2023 17:15
The very messy script used to produce the scan files for the TOP-22-006 gridpacks.
import random
import json
# wc_names_list is in the order for the scanpoints file
#WC_NAMES_LST = ["ctW" , "ctp" , "cpQM" , "ctei" , "ctli" , "cQei" , "ctZ" , "cQlMi" , "cQl3i" , "ctG" , "ctlTi" , "cbW" , "cpQ3" , "cptb" , "cpt" , "ctlSi"]
WC_NAMES_LST = ["ctW" , "ctp" , "cpQM" , "ctei" , "ctli" , "cQei" , "ctZ" , "cQlMi" , "cQl3i" , "ctG" , "ctlTi" , "cbW" , "cpQ3" , "cptb" , "cpt" , "ctlSi" , "cQq13" , "cQq83" , "cQq11" , "ctq1" , "cQq81" , "ctq8"]
print WC_NAMES_LST
TOP19001_LIMS = {
"ctW" : [-3.08, 2.87],
@kmohrman
kmohrman / LSTSonicProducer.cc
Last active October 16, 2023 22:31
Attempting to "SONICize" the LSTProducer.cc
//#include <alpaka/alpaka.hpp>
//#include "DataFormats/Portable/interface/Product.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/Framework/interface/Frameworkfwd.h"
//#include "FWCore/Framework/interface/stream/EDProducer.h"
#include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/ParameterSet/interface/ParameterSetDescription.h"