Skip to content

Commit 1cf5c12

Browse files
authored
Merge pull request #48408 from KIT-CMS/embedding_dev_CMSSW_15_1_0_pre1_improveCode
Restructure and comment the tau embedding method
2 parents 51437cd + 2993c3e commit 1cf5c12

File tree

80 files changed

+2115
-1652
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+2115
-1652
lines changed

Configuration/Applications/python/ConfigBuilder.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1699,6 +1699,12 @@ def prepare_HLT(self, stepSpec = None):
16991699
else:
17001700
self.executeAndRemember('process.loadHltConfiguration("%s",%s)'%(stepSpec.replace(',',':'),optionsForHLTConfig))
17011701
else:
1702+
# case where HLT:something was provided (most of the cases)
1703+
if '+' in stepSpec:
1704+
# case where HLT:menu+customisation+customisation+... was provided
1705+
# the customiser allows to modify parts of the HLT menu
1706+
stepSpec, *hltcustomiser = stepSpec.rsplit('+')
1707+
self._options.customisation_file_unsch = hltcustomiser + self._options.customisation_file_unsch
17021708
self.loadAndRemember('HLTrigger/Configuration/HLT_%s_cff' % stepSpec)
17031709

17041710
if self._options.isMC:

Configuration/EventContent/python/EventContent_cff.py

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,3 +1021,36 @@ def SwapKeepAndDrop(l):
10211021
for _entry in [MINIAODEventContent, MINIAODSIMEventContent]:
10221022
fastSim.toModify(_entry, outputCommands = _entry.outputCommands + fastSimEC.dropPatTrigger)
10231023

1024+
# Tau Embedding EventContent
1025+
from TauAnalysis.MCEmbeddingTools.Embedding_EventContent_cff import (
1026+
TauEmbCleaning,
1027+
TauEmbMerge,
1028+
TauEmbNano,
1029+
TauEmbSelection,
1030+
TauEmbSimGen,
1031+
TauEmbSimHLT,
1032+
TauEmbSimReco,
1033+
)
1034+
1035+
TauEmbeddingSelectionEventContent = RAWRECOEventContent.clone()
1036+
TauEmbeddingSelectionEventContent.outputCommands.extend(TauEmbSelection.outputCommands)
1037+
1038+
TauEmbeddingCleaningEventContent = RAWRECOEventContent.clone()
1039+
TauEmbeddingCleaningEventContent.outputCommands.extend(TauEmbCleaning.outputCommands)
1040+
1041+
TauEmbeddingSimGenEventContent = RAWSIMEventContent.clone()
1042+
TauEmbeddingSimGenEventContent.outputCommands.extend(TauEmbSimGen.outputCommands)
1043+
1044+
TauEmbeddingSimHLTEventContent = RAWSIMEventContent.clone()
1045+
TauEmbeddingSimHLTEventContent.outputCommands.extend(TauEmbSimHLT.outputCommands)
1046+
1047+
TauEmbeddingSimRecoEventContent = RAWRECOSIMHLTEventContent.clone()
1048+
TauEmbeddingSimRecoEventContent.outputCommands.extend(TauEmbSimReco.outputCommands)
1049+
1050+
# needs to have MINIAOD in its name to be recognized by cmsDriver as a MINIAOD output so that miniAOD_customizeOutput is applied
1051+
TauEmbeddingMergeMINIAODEventContent = MINIAODSIMEventContent.clone()
1052+
TauEmbeddingMergeMINIAODEventContent.outputCommands.extend(TauEmbMerge.outputCommands)
1053+
1054+
# needs to have NANOAOD in its name to be recognized by cmsDriver as a NANOAOD output so that NanoAODOutputModule is used
1055+
TauEmbeddingNANOAODEventContent = NANOAODSIMEventContent.clone()
1056+
TauEmbeddingNANOAODEventContent.outputCommands.extend(TauEmbNano.outputCommands)
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import FWCore.ParameterSet.Config as cms
2+
3+
# This modifier is to implement general changes in the RECO sequence needed for the tau embedding method. More info can be found in TauAnalysis/MCEmbeddingTools.
4+
tau_embedding_cleaning = cms.Modifier()
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import FWCore.ParameterSet.Config as cms
2+
3+
# This modifier sets the correct cuts for the taus decaying into one electron and one muon. More info can be found in TauAnalysis/MCEmbeddingTools.
4+
tau_embedding_emu = cms.Modifier()
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import FWCore.ParameterSet.Config as cms
2+
3+
# This modifier sets the correct cuts for the taus decaying into one jet and one electron. More info can be found in TauAnalysis/MCEmbeddingTools.
4+
tau_embedding_etauh = cms.Modifier()
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import FWCore.ParameterSet.Config as cms
2+
3+
# This modifier is to implement general changes in the RECO sequence needed for the tau embedding method. More info can be found in TauAnalysis/MCEmbeddingTools.
4+
tau_embedding_merging = cms.Modifier()
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import FWCore.ParameterSet.Config as cms
2+
3+
# This modifier is to change tau embedding method to perform mu->e embedding. More info can be found in TauAnalysis/MCEmbeddingTools.
4+
tau_embedding_mu_to_e = cms.Modifier()
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import FWCore.ParameterSet.Config as cms
2+
3+
# This modifier is to change tau embedding method to perform mu->mu embedding. More info can be found in TauAnalysis/MCEmbeddingTools.
4+
tau_embedding_mu_to_mu = cms.Modifier()
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import FWCore.ParameterSet.Config as cms
2+
3+
# This modifier sets the correct cuts for the taus decaying into one jet and one muon. More info can be found in TauAnalysis/MCEmbeddingTools.
4+
tau_embedding_mutauh = cms.Modifier()
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import FWCore.ParameterSet.Config as cms
2+
3+
# This modifier is to implement general changes in the RECO sequence needed for the tau embedding method. More info can be found in TauAnalysis/MCEmbeddingTools.
4+
tau_embedding_sim = cms.Modifier()

0 commit comments

Comments
 (0)