From c2a70b12063b7d65238ca35bb089b07a637b55e1 Mon Sep 17 00:00:00 2001 From: Felix Date: Mon, 12 Feb 2024 14:18:24 +0100 Subject: [PATCH] Added EXOSoftDisplacedVertices skim --- .../PDWG_EXOSoftDisplacedVertices_cff.py | 32 +++++++++++++++++++ .../Skimming/python/Skims_PDWG_cff.py | 11 +++++++ Configuration/Skimming/python/autoSkim.py | 10 +++--- 3 files changed, 48 insertions(+), 5 deletions(-) create mode 100644 Configuration/Skimming/python/PDWG_EXOSoftDisplacedVertices_cff.py diff --git a/Configuration/Skimming/python/PDWG_EXOSoftDisplacedVertices_cff.py b/Configuration/Skimming/python/PDWG_EXOSoftDisplacedVertices_cff.py new file mode 100644 index 0000000000000..2d556b2e2df0c --- /dev/null +++ b/Configuration/Skimming/python/PDWG_EXOSoftDisplacedVertices_cff.py @@ -0,0 +1,32 @@ +import FWCore.ParameterSet.Config as cms + +from Configuration.EventContent.EventContent_cff import AODSIMEventContent +EXOSoftDisplacedVerticesSkimContent = AODSIMEventContent.clone() + +import HLTrigger.HLTfilters.hltHighLevel_cfi as _hltHighLevel + +hltSoftDV = _hltHighLevel.hltHighLevel.clone( + throw = False, + andOr = True, + HLTPaths = [ + "HLT_PFHT*_PFMET*_PFMHT*_IDTight_v*", + "HLT_PFMET*_PFMHT*_IDTight_v*", + "HLT_PFMET*_PFMHT*_IDTight_PFHT*_v*", + "HLT_PFMETTypeOne*_PFMHT*_IDTight_v*", + "HLT_PFMETTypeOne*_PFMHT*_IDTight_PFHT*_v*", + "HLT_PFMETNoMu*_PFMHTNoMu*_IDTight_v*", + "HLT_PFMETNoMu*_PFMHTNoMu*_IDTight_PFHT*_v*", + "HLT_MonoCentralPFJet*_PFMETNoMu*_PFMHTNoMu*_IDTight_v*", + "HLT_PFMET*_*Cleaned_v*" + ] +) + +softDVSelection=cms.EDFilter("CandViewSelector", + src = cms.InputTag("pfMet"), + cut = cms.string( "pt()>140" ), + filter = cms.bool(True) +) + +EXOSoftDisplacedVerticesSkimSequence = cms.Sequence( + hltSoftDV * softDVSelection + ) \ No newline at end of file diff --git a/Configuration/Skimming/python/Skims_PDWG_cff.py b/Configuration/Skimming/python/Skims_PDWG_cff.py index 3fba086cb4606..d1dac03f8800b 100644 --- a/Configuration/Skimming/python/Skims_PDWG_cff.py +++ b/Configuration/Skimming/python/Skims_PDWG_cff.py @@ -362,6 +362,17 @@ dataTier = cms.untracked.string('USER') ) +from Configuration.Skimming.PDWG_EXOSoftDisplacedVertices_cff import * +EXOSoftDisplacedVerticesPath = cms.Path(EXOSoftDisplacedVerticesSkimSequence) +SKIMStreamEXOSoftDisplacedVertices = cms.FilteredStream( + responsible = 'PDWG', + name = 'EXOSoftDisplacedVertices', + paths = (EXOSoftDisplacedVerticesPath ), + content = EXOSoftDisplacedVerticesSkimContent.outputCommands, + selectEvents = cms.untracked.PSet(), + dataTier = cms.untracked.string('AOD') +) + ##################### # For the Data on Data Mixing in TSG from HLTrigger.Configuration.HLT_Fake1_cff import fragment as _fragment diff --git a/Configuration/Skimming/python/autoSkim.py b/Configuration/Skimming/python/autoSkim.py index 364be46435579..8a7dc84ebf99b 100644 --- a/Configuration/Skimming/python/autoSkim.py +++ b/Configuration/Skimming/python/autoSkim.py @@ -3,8 +3,8 @@ # Skim 2023 'BTagMu' : 'LogError+LogErrorMonitor', 'DisplacedJet' : 'EXODisplacedJet+EXODelayedJet+EXODTCluster+EXOCSCCluster+EXOLLPJetHCAL+LogError+LogErrorMonitor', - 'JetMET0' : 'JetHTJetPlusHOFilter+EXOHighMET+EXODelayedJetMET+EXODisappTrk+TeVJet+LogError+LogErrorMonitor', - 'JetMET1' : 'JetHTJetPlusHOFilter+EXOHighMET+EXODelayedJetMET+EXODisappTrk+TeVJet+LogError+LogErrorMonitor', + 'JetMET0' : 'JetHTJetPlusHOFilter+EXOHighMET+EXODelayedJetMET+EXODisappTrk+EXOSoftDisplacedVertices+TeVJet+LogError+LogErrorMonitor', + 'JetMET1' : 'JetHTJetPlusHOFilter+EXOHighMET+EXODelayedJetMET+EXODisappTrk+EXOSoftDisplacedVertices+TeVJet+LogError+LogErrorMonitor', 'EGamma0':'EGMJME+ZElectron+WElectron+EXOMONOPOLE+EXODisappTrk+IsoPhotonEB+LogError+LogErrorMonitor', 'EGamma1':'EGMJME+ZElectron+WElectron+EXOMONOPOLE+EXODisappTrk+IsoPhotonEB+LogError+LogErrorMonitor', 'Tau' : 'EXODisappTrk+LogError+LogErrorMonitor', @@ -28,11 +28,11 @@ # These should be uncommented when 2022 data reprocessing # Dedicated skim for 2022 - 'JetMET' : 'JetHTJetPlusHOFilter+EXOHighMET+EXODelayedJetMET+EXODisappTrk+TeVJet+LogError+LogErrorMonitor', + 'JetMET' : 'JetHTJetPlusHOFilter+EXOHighMET+EXODelayedJetMET+EXODisappTrk+EXOSoftDisplacedVertices+TeVJet+LogError+LogErrorMonitor', 'EGamma':'EGMJME+ZElectron+WElectron+EXOMONOPOLE+EXODisappTrk+IsoPhotonEB+LogError+LogErrorMonitor', 'Muon' : 'MUOJME+ZMu+EXODisappTrk+EXODisappMuon+LogError+LogErrorMonitor', - 'JetHT' : 'JetHTJetPlusHOFilter+TeVJet+LogError+LogErrorMonitor', - 'MET' : 'EXOHighMET+EXODelayedJetMET+EXODisappTrk+TeVJet+LogError+LogErrorMonitor', + 'JetHT' : 'JetHTJetPlusHOFilter+EXOSoftDisplacedVertices+TeVJet+LogError+LogErrorMonitor', + 'MET' : 'EXOHighMET+EXODelayedJetMET+EXODisappTrk+EXOSoftDisplacedVertices+TeVJet+LogError+LogErrorMonitor', 'SingleMuon' : 'ZMu+EXODisappTrk+EXODisappMuon+LogError+LogErrorMonitor', 'DoubleMuon' : 'MUOJME+LogError+LogErrorMonitor',