Skip to content

Instantly share code, notes, and snippets.

View artlbv's full-sized avatar

Artur Lobanov artlbv

  • Uni Hamburg / CMS
  • Hamburg
View GitHub Profile
@artlbv
artlbv / l1ph2_nano_cfg.py
Last active July 4, 2023 08:59
cmsRun config to dump some Ph2 L1 collections to nano
import FWCore.ParameterSet.Config as cms
from Configuration.StandardSequences.Eras import eras
from PhysicsTools.NanoAOD.nano_eras_cff import *
from PhysicsTools.NanoAOD.common_cff import *
process = cms.Process("L1Ph2Nano", eras.Phase2C9)
process.load('Configuration.StandardSequences.Services_cff')
process.load("FWCore.MessageLogger.MessageLogger_cfi")
process.options = cms.untracked.PSet(
@artlbv
artlbv / diff_Snap3_13x_vsCMSSW133_P2GT.diff
Created August 22, 2023 13:25
Difference for L1P2GT package between Phase2Snapshot3_13x and CMSSW 133pre3
diff --git a/afs/cern.ch/user/a/alobanov/work/L1T/phase2/menu/13X/6Jul_Snap3_wNtupler_PR/CMSSW_13_1_0/src/L1Trigger/Phase2L1GT/interface/L1GTScales.h b/L1Trigger/Phase2L1GT/interface/L1GTScales.h
index 899a03d55d5..f70b0dc3149 100644
--- a/afs/cern.ch/user/a/alobanov/work/L1T/phase2/menu/13X/6Jul_Snap3_wNtupler_PR/CMSSW_13_1_0/src/L1Trigger/Phase2L1GT/interface/L1GTScales.h
+++ b/L1Trigger/Phase2L1GT/interface/L1GTScales.h
@@ -28,7 +28,7 @@ namespace l1t {
L1GTScales(const edm::ParameterSet &);
- static void fillDescriptions(edm::ParameterSetDescription &);
+ static void fillPSetDescription(edm::ParameterSetDescription &);
@artlbv
artlbv / rerun_L1uGT_AOD_cfg.py
Created September 22, 2023 12:12
Rerun L1uGT emu on AOD
# Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: l1Ntuple -s RAW2DIGI -n 1 --python_filename runAxoemu_cfg_fromAOD_sR2R.py --era=Run2_2017 --data --conditions=130X_dataRun3_Prompt_v4 --customise=L1Trigger/Configuration/customiseUtils.L1TGlobalMenuXML --customise=L1Trigger/Configuration/customiseReEmul.L1TReEmulFromNANO --customise=L1Trigger/L1TNtuples/customiseL1Ntuple.L1NtupleNANOEMU --filein=/store/data/Run2023C/JetMET0/AOD/PromptReco-v4/000/368/566/00000/0036fca6-ffd3-4c07-afa9-5be8eaa50bce.root --fileout=L1Ntuple_fromNano.root --no_output
import FWCore.ParameterSet.Config as cms
from Configuration.Eras.Era_Run2_2017_cff import Run2_2017
process = cms.Process('RAW2DIGI',Run2_2017)
@artlbv
artlbv / Ph2L1_nano_GTandMenu_cfg.py
Created October 12, 2023 12:47
Phase2 L1 Menu and GT nano ntupler
import FWCore.ParameterSet.Config as cms
from PhysicsTools.NanoAOD.nano_eras_cff import *
from PhysicsTools.NanoAOD.common_cff import *
##################################################################
### This part can be taken from l1trig_cff starting from 13X
l1_float_precision_=16
l1PtVars = cms.PSet(
@artlbv
artlbv / rerunL1_GTmenuNano_cfg_133x.py
Created October 12, 2023 19:09
Phase2 cmsRun config to rerun L1 and produce Menu and GT nano
# Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: step1 --conditions 131X_mcRun4_realistic_v5 -n 2 --era Phase2C17I13M9 --eventcontent FEVTDEBUGHLT -s RAW2DIGI,L1:RUNP2GT --datatier GEN-SIM-DIGI-RAW-MINIAOD --fileout file:test.root --customise SLHCUpgradeSimulations/Configuration/aging.customise_aging_1000,Configuration/DataProcessing/Utils.addMonitoring,L1Trigger/Configuration/customisePhase2.addHcalTriggerPrimitives,L1Trigger/Configuration/customisePhase2FEVTDEBUGHLT.customisePhase2FEVTDEBUGHLT --geometry Extended2026D95
import FWCore.ParameterSet.Config as cms
from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9
process = cms.Process('L1',Phase2C17I13M9)
@artlbv
artlbv / data_L1Nano_wHLTfilter_130X_cfg.py
Created January 30, 2024 10:15
cmsRun config to produce Nano with L1 info and use HLT filter in 130X
# Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: NANOwL1 -s NANO --data --conditions 130X_dataRun3_Prompt_v4 --era Run3 --eventcontent NANOAOD --datatier NANOAOD --customise_commands=process.add_(cms.Service('InitRootHandlers', EnableIMT = cms.untracked.bool(False)));process.MessageLogger.cerr.FwkReport.reportEvery=1000 -n -1 --no_exec --customise PhysicsTools/NanoAOD/nano_cff.nanoL1TrigObjCustomizeFull --nStreams 2 --nThreads 8 --number 1000 --python nano_v12_data.py
import FWCore.ParameterSet.Config as cms
from Configuration.Eras.Era_Run3_cff import Run3
process = cms.Process('NANO',Run3)
@artlbv
artlbv / rerunL1_P2GT_140_Step1Menu_cfg.py
Created February 19, 2024 10:27
Step1 Menu for P2GT in 1400pre3 with L1Nano output
# Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: step1 --conditions 131X_mcRun4_realistic_v9 -n 2 --era Phase2C17I13M9 --eventcontent NANOAOD -s RAW2DIGI,L1,L1P2GT,USER:PhysicsTools/L1Nano/l1tPh2Nano_cff.l1tPh2NanoTask --datatier GEN-SIM-DIGI-RAW-MINIAOD --fileout file:test.root --customise SLHCUpgradeSimulations/Configuration/aging.customise_aging_1000,Configuration/DataProcessing/Utils.addMonitoring,L1Trigger/Configuration/customisePhase2.addHcalTriggerPrimitives,PhysicsTools/L1Nano/l1tPh2Nano_cff.addFullPh2L1Nano --geometry Extended2026D95 --nThreads 8 --filein /store/mc/Phase2Spring23DIGIRECOMiniAOD/TT_TuneCP5_14TeV-powheg-pythia8/GEN-SIM-DIGI-RAW-MINIAOD/PU200_L1TFix_Trk1GeV_131X_mcRun4_realistic_v9-v1/50000/005bc30b-cf79-4b3b-9ec1-a80e13072afd.root --mc --inputCommands=keep *, drop l1tPFJets_*_*_* --outputCommands=drop l1tPFJets_*_*_*
import FWCore.ParameterSet.Config as cm
@artlbv
artlbv / parseCMSbotHLTResults.py
Last active March 16, 2024 11:53
parse the HLT trigger results json from the CMSSW build bot
## 14_0 Backport results:
## JSON https://cmssdt.cern.ch/SDT/jenkins-artifacts/baseLineComparisons/CMSSW_14_0_X_2024-03-15-2300+220365/61714/triggerResults/141.044_RunJetMET2023D/reHLT.json
## from tests https://github.com/cms-sw/cmssw/pull/44397#issuecomment-2001893129
## "reHLT_140_backport.json"
## 14_1 PR results:
## JSON https://cmssdt.cern.ch/SDT/jenkins-artifacts/baseLineComparisons/CMSSW_14_1_X_2024-03-13-1100+5aa5c5/61657/triggerResults/141.044_RunJetMET2023D/reHLT.json
## From comment https://github.com/cms-sw/cmssw/pull/44054#issuecomment-1996266443
# fname = "reHLT_141.json"
@artlbv
artlbv / L1Ph2_Menu_Btag_seed_dev.ipynb
Created June 6, 2024 12:58
L1Ph2_Menu_Btag_seed_dev notebook
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.