Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

131X update for TopMuEG skim #42064

Merged
merged 1 commit into from
Jun 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions DPGAnalysis/Skims/python/TopMuEGSkim_cff.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@

hltBtagTopMuEGSelection = cms.EDFilter("HLTHighLevel",
TriggerResultsTag = cms.InputTag("TriggerResults","","HLT"),
HLTPaths = cms.vstring('HLT_Mu8_TrkIsoVVL_Ele23_CaloIdL_TrackIdL_IsoVL_DZ_PFDiJet30_PFBtagDeepCSV_1p5_v*', # new (2022) MuEG trigger paths (used at DQM)
'HLT_Mu8_TrkIsoVVL_Ele23_CaloIdL_TrackIdL_IsoVL_DZ_CaloDiJet30_CaloBtagDeepCSV_1p5_v*'), # new (2022) MuEG trigger paths (used at DQM)
HLTPaths = cms.vstring(
'HLT_Mu8_TrkIsoVVL_Ele23_CaloIdL_TrackIdL_IsoVL_DZ_PFDiJet30_PFBtagDeepJet_1p5_v*', # DeepCSV paths not available anymore. See https://its.cern.ch/jira/browse/CMSHLT-2592
'HLT_Mu8_TrkIsoVVL_Ele23_CaloIdL_TrackIdL_IsoVL_DZ_PFDiJet30_PNet2BTagMean0p50_v*', # Taken from HLTrigger/Configuration/python/HLTrigger_Datasets_GRun_cff.py
),
eventSetupPathsKey = cms.string(''), # not empty => use read paths from AlCaRecoTriggerBitsRcd via this key
andOr = cms.bool(True), # how to deal with multiple triggers: True (OR) accept if ANY is true, False (AND) accept if ALL are true
throw = cms.bool(False), # throw exception on unknown path names
# saveTags = cms.bool(False)
)
)


#####################################
Expand Down
59 changes: 26 additions & 33 deletions DPGAnalysis/Skims/test/test_TopMuEG_SKIM.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: skims -s SKIM:TopMuEG --mc --dasquery=file dataset=/RelValTTbar_14TeV/CMSSW_12_1_0_pre2-PU_121X_mcRun3_2021_realistic_v1-v1/GEN-SIM-RECO -n 100 --conditions auto:phase1_2022_realistic --eventcontent=FEVTDEBUGHLT --datatier=RAW-RECO --python_filename=test_TopMuEG_SKIM.py --processName=SKIMTopMuEG --no_exec --era=Run3
# with command line options: skims -s SKIM:TopMuEG --mc --dasquery=file dataset=/RelValTTbar_14TeV/CMSSW_13_1_0_pre1-130X_mcRun3_2022_realistic_v2-v1/GEN-SIM-RECO -n 100 --conditions auto:phase1_2022_realistic --eventcontent=FEVTDEBUGHLT --datatier=RAW-RECO --python_filename=test_TopMuEG_SKIM.py --processName=SKIMTopMuEG --no_exec --era=Run3
import FWCore.ParameterSet.Config as cms

from Configuration.Eras.Era_Run3_cff import Run3
Expand All @@ -28,15 +28,12 @@
# Input source
process.source = cms.Source("PoolSource",
fileNames = cms.untracked.vstring(
'/store/relval/CMSSW_12_1_0_pre2/RelValTTbar_14TeV/GEN-SIM-RECO/PU_121X_mcRun3_2021_realistic_v1-v1/10000/1047ae69-bff7-43ef-858e-431009bf73ba.root',
'/store/relval/CMSSW_12_1_0_pre2/RelValTTbar_14TeV/GEN-SIM-RECO/PU_121X_mcRun3_2021_realistic_v1-v1/10000/5c1bbaaf-797e-4843-8296-a9cbaf36a8a3.root',
'/store/relval/CMSSW_12_1_0_pre2/RelValTTbar_14TeV/GEN-SIM-RECO/PU_121X_mcRun3_2021_realistic_v1-v1/10000/5d7209bf-c323-4dce-a0b5-e3d2db5aba73.root',
'/store/relval/CMSSW_12_1_0_pre2/RelValTTbar_14TeV/GEN-SIM-RECO/PU_121X_mcRun3_2021_realistic_v1-v1/10000/63286a1c-de2a-443d-9963-03f55e6abd7c.root',
'/store/relval/CMSSW_12_1_0_pre2/RelValTTbar_14TeV/GEN-SIM-RECO/PU_121X_mcRun3_2021_realistic_v1-v1/10000/667f5503-d24f-4504-823a-6470c82d48e0.root',
'/store/relval/CMSSW_12_1_0_pre2/RelValTTbar_14TeV/GEN-SIM-RECO/PU_121X_mcRun3_2021_realistic_v1-v1/10000/b846eae8-d564-4a2d-b28c-c9b683b9bb60.root',
'/store/relval/CMSSW_12_1_0_pre2/RelValTTbar_14TeV/GEN-SIM-RECO/PU_121X_mcRun3_2021_realistic_v1-v1/10000/cbc44982-5d35-43fa-b010-abcc05bd9d03.root',
'/store/relval/CMSSW_12_1_0_pre2/RelValTTbar_14TeV/GEN-SIM-RECO/PU_121X_mcRun3_2021_realistic_v1-v1/10000/ce256d7b-603b-412b-8948-41ae64a40372.root',
'/store/relval/CMSSW_12_1_0_pre2/RelValTTbar_14TeV/GEN-SIM-RECO/PU_121X_mcRun3_2021_realistic_v1-v1/10000/f046bf44-514a-4061-b6b2-7890cd75071e.root'
# '/store/relval/CMSSW_13_1_0_pre1/RelValTTbar_14TeV/GEN-SIM-RECO/130X_mcRun3_2022_realistic_v2-v1/00000/517b2197-d95a-4b2d-b9d9-8bcdb84c1aa3.root',
# '/store/relval/CMSSW_13_1_0_pre1/RelValTTbar_14TeV/GEN-SIM-RECO/130X_mcRun3_2022_realistic_v2-v1/00000/779015cc-960d-4c95-a9b3-31ddca65f42e.root',
# '/store/relval/CMSSW_13_1_0_pre1/RelValTTbar_14TeV/GEN-SIM-RECO/130X_mcRun3_2022_realistic_v2-v1/00000/e6d74d35-896c-45b9-b27c-83434a022aff.root',
'/store/relval/CMSSW_13_0_0/RelValTTbar_14TeV/GEN-SIM-RECO/130X_mcRun3_2022_realistic_v2-v1/00000/120127ad-f806-4494-8d98-f69ef0b2a85a.root',
'/store/relval/CMSSW_13_0_0/RelValTTbar_14TeV/GEN-SIM-RECO/130X_mcRun3_2022_realistic_v2-v1/00000/3be6dcf5-9b42-4bd4-b437-23c9753134e0.root',
'/store/relval/CMSSW_13_0_0/RelValTTbar_14TeV/GEN-SIM-RECO/130X_mcRun3_2022_realistic_v2-v1/00000/545d64b5-2ee2-4cac-b3de-9123e4890b9f.root',
),
secondaryFileNames = cms.untracked.vstring()
)
Expand All @@ -46,6 +43,7 @@
IgnoreCompletely = cms.untracked.vstring(),
Rethrow = cms.untracked.vstring(),
SkipEvent = cms.untracked.vstring(),
accelerators = cms.untracked.vstring('*'),
allowUnscheduled = cms.obsolete.untracked.bool,
canDeleteEarly = cms.untracked.vstring(),
deleteNonConsumedUnscheduledModules = cms.untracked.bool(True),
Expand All @@ -59,15 +57,17 @@
),
fileMode = cms.untracked.string('FULLMERGE'),
forceEventSetupCacheClearOnNewRun = cms.untracked.bool(False),
holdsReferencesToDeleteEarly = cms.untracked.VPSet(),
makeTriggerResults = cms.obsolete.untracked.bool,
modulesToIgnoreForDeleteEarly = cms.untracked.vstring(),
numberOfConcurrentLuminosityBlocks = cms.untracked.uint32(0),
numberOfConcurrentRuns = cms.untracked.uint32(1),
numberOfStreams = cms.untracked.uint32(0),
numberOfThreads = cms.untracked.uint32(1),
printDependencies = cms.untracked.bool(False),
sizeOfStackForThreadsInKB = cms.optional.untracked.uint32,
throwIfIllegalParameter = cms.untracked.bool(True),
wantSummary = cms.untracked.bool(True)
wantSummary = cms.untracked.bool(False)
)

# Production Info
Expand Down Expand Up @@ -114,12 +114,9 @@
'keep edmTriggerResults_*_*_*',
'keep triggerTriggerEvent_*_*_*',
'keep *_hltFEDSelectorL1_*_*',
'keep *_hltScoutingCaloPacker_*_*',
'keep *_hltScoutingEgammaPacker_*_*',
'keep *_hltScoutingMuonPackerCalo_*_*',
'keep *_hltScoutingMuonPacker_*_*',
'keep *_hltScoutingPFPacker_*_*',
'keep *_hltScoutingPrimaryVertexPackerCaloMuon_*_*',
'keep *_hltScoutingPrimaryVertexPacker_*_*',
'keep *_hltScoutingTrackPacker_*_*',
'keep edmTriggerResults_*_*_*',
Expand All @@ -136,6 +133,8 @@
'keep *_dt4DCosmicSegments_*_*',
'keep *_cscSegments_*_*',
'keep *_rpcRecHits_*_*',
'keep *_dt1DRecHits_*_*',
'keep *_csc2DRecHits_*_*',
'keep *_gemRecHits_*_*',
'keep *_gemSegments_*_*',
'keep *_hbhereco_*_*',
Expand Down Expand Up @@ -294,6 +293,13 @@
'keep recoMuonCosmicCompatibilityedmValueMap_muons_*_*',
'keep uintedmValueMap_muons_*_*',
'keep *_particleFlow_muons_*',
'keep recoMuons_displacedMuons_*_*',
'keep booledmValueMap_displacedMuons_*_*',
'keep doubleedmValueMap_displacedMuons_dispMuPFMean*_*',
'keep doubleedmValueMap_displacedMuons_dispMuPFSum*_*',
'keep recoMuonTimeExtraedmValueMap_displacedMuons_*_*',
'keep uintedmValueMap_displacedMuons_*_*',
'keep *_particleFlow_displacedMuons_*',
'keep recoTracks_standAloneMuons_*_*',
'keep recoTrackExtras_standAloneMuons_*_*',
'keep TrackingRecHitsOwned_standAloneMuons_*_*',
Expand All @@ -318,10 +324,15 @@
'keep recoTrackExtras_displacedStandAloneMuons_*_*',
'keep TrackingRecHitsOwned_displacedStandAloneMuons_*_*',
'keep *_muonReducedTrackExtras_*_*',
'keep *_displacedMuonReducedTrackExtras_*_*',
'keep *_muIsoDepositTk_*_*',
'keep *_muIsoDepositCalByAssociatorTowers_*_*',
'keep *_muIsoDepositCalByAssociatorHits_*_*',
'keep *_muIsoDepositJets_*_*',
'keep *_muIsoDepositTkDisplaced_*_*',
'keep *_muIsoDepositCalByAssociatorTowersDisplaced_*_*',
'keep *_muIsoDepositCalByAssociatorHitsDisplaced_*_*',
'keep *_muIsoDepositJetsDisplaced_*_*',
'keep *_muGlobalIsoDepositCtfTk_*_*',
'keep *_muGlobalIsoDepositCalByAssociatorTowers_*_*',
'keep *_muGlobalIsoDepositCalByAssociatorHits_*_*',
Expand Down Expand Up @@ -352,7 +363,6 @@
'keep *_pfDeepCSVJetTags_*_*',
'keep *_pfDeepCMVAJetTags_*_*',
'keep *_pixelClusterTagInfos_*_*',
'keep *_hpsPFTauDiscriminationByLooseElectronRejection_*_*',
'keep recoRecoTauPiZeros_hpsPFTauProducer_pizeros_*',
'keep recoPFTaus_hpsPFTauProducer_*_*',
'keep *_hpsPFTauBasicDiscriminators_*_*',
Expand All @@ -363,13 +373,6 @@
'keep *_hpsPFTauDiscriminationByDecayModeFindingOldDMs_*_*',
'keep *_hpsPFTauDiscriminationByMuonRejection3_*_*',
'keep *_hpsPFTauTransverseImpactParameters_*_*',
'keep *_hpsPFTauDiscriminationByMVA6ElectronRejection_*_*',
'keep *_hpsPFTauDiscriminationByIsolationMVArun2v1DBoldDMwLT_*_*',
'keep *_hpsPFTauDiscriminationByIsolationMVArun2v1DBnewDMwLT_*_*',
'keep *_hpsPFTauDiscriminationByIsolationMVArun2v1PWoldDMwLT_*_*',
'keep *_hpsPFTauDiscriminationByIsolationMVArun2v1PWnewDMwLT_*_*',
'keep *_hpsPFTauDiscriminationByIsolationMVArun2v1DBdR03oldDMwLT_*_*',
'keep *_hpsPFTauDiscriminationByIsolationMVArun2v1PWdR03oldDMwLT_*_*',
'keep *_offlinePrimaryVertices__*',
'keep *_offlinePrimaryVerticesWithBS_*_*',
'keep *_offlinePrimaryVerticesFromCosmicTracks_*_*',
Expand Down Expand Up @@ -507,12 +510,9 @@
'keep edmTriggerResults_*_*_*',
'keep triggerTriggerEvent_*_*_*',
'keep *_hltFEDSelectorL1_*_*',
'keep *_hltScoutingCaloPacker_*_*',
'keep *_hltScoutingEgammaPacker_*_*',
'keep *_hltScoutingMuonPackerCalo_*_*',
'keep *_hltScoutingMuonPacker_*_*',
'keep *_hltScoutingPFPacker_*_*',
'keep *_hltScoutingPrimaryVertexPackerCaloMuon_*_*',
'keep *_hltScoutingPrimaryVertexPacker_*_*',
'keep *_hltScoutingTrackPacker_*_*',
'keep edmTriggerResults_*_*_*',
Expand All @@ -529,14 +529,6 @@
'keep recoBeamSpot_onlineMetaDataDigis_*_*',
'keep *_tcdsDigis_*_*',
'keep *_logErrorHarvester_*_*',
'keep *_pfIsolatedElectronsEI_*_*',
'keep *_pfIsolatedMuonsEI_*_*',
'keep recoPFJets_pfJetsEI_*_*',
'keep *_pfCombinedInclusiveSecondaryVertexV2BJetTagsEI_*_*',
'keep recoPFTaus_pfTausEI_*_*',
'keep recoPFTauDiscriminator_pfTausDiscriminationByDecayModeFinding_*_*',
'keep recoSingleTauDiscriminatorContaineredmValueMap_pfTausDiscriminationByIsolation_*_*',
'keep recoPFMETs_pfMetEI_*_*',
'keep TotemTriggerCounters_totemTriggerRawToDigi_*_*',
'keep TotemFEDInfos_totemRPRawToDigi_*_*',
'keep TotemRPDigiedmDetSetVector_totemRPRawToDigi_*_*',
Expand All @@ -550,6 +542,7 @@
'keep TotemVFATStatusedmDetSetVector_ctppsDiamondRawToDigi_*_*',
'keep CTPPSDiamondRecHitedmDetSetVector_ctppsDiamondRecHits_*_*',
'keep CTPPSDiamondLocalTrackedmDetSetVector_ctppsDiamondLocalTracks_*_*',
'keep TotemTimingLocalTrackedmDetSetVector_diamondSampicLocalTracks_*_*',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The following keep statements were present in the master version of this PR, but missing here:

        'keep TotemFEDInfos_totemT2Digis_*_*',
        'keep TotemT2DigiedmNewDetSetVector_totemT2Digis_*_*',
        'keep TotemVFATStatusedmDetSetVector_totemT2Digis_*_*',

Since this is a test script it does not prevent getting merged, but probably it is something you want to have a look at, @soureek

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@perrotta The test python file is generated with cmsDriver command using the options listed in L5. The conditions are taken from 2022 setup. I did not add or remove anything here.

'keep TotemTimingDigiedmDetSetVector_totemTimingRawToDigi_*_*',
'keep TotemTimingRecHitedmDetSetVector_totemTimingRecHits_*_*',
'keep TotemTimingLocalTrackedmDetSetVector_totemTimingLocalTracks_*_*',
Expand Down