1 import FWCore.ParameterSet.Config
as cms
11 tauValidationMiniAODZTT = tauValidationMiniAOD.clone()
12 discs_to_retain = [
'decayModeFinding',
'decayModeFindingNewDMs',
13 'CombinedIsolationDeltaBetaCorr3HitsdR03',
14 'byLooseDeepTau2018v2p5VSjet',
'byTightDeepTau2018v2p5VSjet',
15 'byLooseDeepTau2018v2p5VSe',
'byTightDeepTau2018v2p5VSe',
16 'byLooseDeepTau2018v2p5VSmu',
'byTightDeepTau2018v2p5VSmu']
18 tauValidationMiniAODZTT.discriminators = cms.VPSet([p
for p
in tauValidationMiniAODZTT.discriminators
if any(disc
in p.discriminator.value()
for disc
in discs_to_retain) ])
20 tauValidationMiniAODZEE = tauValidationMiniAODZTT.clone(
21 RefCollection =
"kinematicSelectedTauValDenominatorZEE",
24 tauValidationMiniAODZMM = tauValidationMiniAODZTT.clone(
25 RefCollection =
"kinematicSelectedTauValDenominatorZMM",
28 tauValidationMiniAODQCD = tauValidationMiniAODZTT.clone(
29 RefCollection =
"kinematicSelectedTauValDenominatorQCD",
32 tauValidationMiniAODRealData = tauValidationMiniAODZTT.clone(
33 RefCollection =
"CleanedPFJets",
34 ExtensionName =
'JETHT' 36 tauValidationMiniAODRealElectronsData = tauValidationMiniAODZTT.clone(
37 RefCollection =
"ElZLegs:theProbeLeg",
38 ExtensionName =
'DoubleElectron' 40 tauValidationMiniAODRealMuonsData = tauValidationMiniAODZTT.clone(
41 RefCollection =
"MuZLegs:theProbeLeg",
42 ExtensionName =
'DoubleMuon' 46 from DQMServices.Core.DQMEDHarvester
import DQMEDHarvester
47 efficienciesTauValidationMiniAODZTT = cms.EDProducer(
"TauDQMHistEffProducer",
50 denominator = cms.string(
'RecoTauV/miniAODValidation/ZTT/Summary/#PAR#PlotDen'),
51 efficiency = cms.string(
'RecoTauV/miniAODValidation/ZTT/Summary/#PAR#Plot'),
52 numerator = cms.string(
'RecoTauV/miniAODValidation/ZTT/Summary/#PAR#PlotNum'),
53 parameter = cms.vstring(
'summary'),
54 stepByStep = cms.bool(
True)
58 efficienciesTauValidationMiniAODZEE = cms.EDProducer(
"TauDQMHistEffProducer",
61 denominator = cms.string(
'RecoTauV/miniAODValidation/ZEE/Summary/#PAR#PlotDen'),
62 efficiency = cms.string(
'RecoTauV/miniAODValidation/ZEE/Summary/#PAR#Plot'),
63 numerator = cms.string(
'RecoTauV/miniAODValidation/ZEE/Summary/#PAR#PlotNum'),
64 parameter = cms.vstring(
'summary'),
65 stepByStep = cms.bool(
True)
69 efficienciesTauValidationMiniAODZMM = cms.EDProducer(
"TauDQMHistEffProducer",
72 denominator = cms.string(
'RecoTauV/miniAODValidation/ZMM/Summary/#PAR#PlotDen'),
73 efficiency = cms.string(
'RecoTauV/miniAODValidation/ZMM/Summary/#PAR#Plot'),
74 numerator = cms.string(
'RecoTauV/miniAODValidation/ZMM/Summary/#PAR#PlotNum'),
75 parameter = cms.vstring(
'summary'),
76 stepByStep = cms.bool(
True)
80 efficienciesTauValidationMiniAODQCD = cms.EDProducer(
"TauDQMHistEffProducer",
83 denominator = cms.string(
'RecoTauV/miniAODValidation/QCD/Summary/#PAR#PlotDen'),
84 efficiency = cms.string(
'RecoTauV/miniAODValidation/QCD/Summary/#PAR#Plot'),
85 numerator = cms.string(
'RecoTauV/miniAODValidation/QCD/Summary/#PAR#PlotNum'),
86 parameter = cms.vstring(
'summary'),
87 stepByStep = cms.bool(
True)
91 efficienciesTauValidationMiniAODRealData = cms.EDProducer(
"TauDQMHistEffProducer",
94 denominator = cms.string(
'RecoTauV/miniAODValidation/JETHT/Summary/#PAR#PlotDen'),
95 efficiency = cms.string(
'RecoTauV/miniAODValidation/JETHT/Summary/#PAR#Plot'),
96 numerator = cms.string(
'RecoTauV/miniAODValidation/JETHT/Summary/#PAR#PlotNum'),
97 parameter = cms.vstring(
'summary'),
98 stepByStep = cms.bool(
True)
102 efficienciesTauValidationMiniAODRealElectronsData = cms.EDProducer(
"TauDQMHistEffProducer",
105 denominator = cms.string(
'RecoTauV/miniAODValidation/DoubleElectron/Summary/#PAR#PlotDen'),
106 efficiency = cms.string(
'RecoTauV/miniAODValidation/DoubleElectron/Summary/#PAR#Plot'),
107 numerator = cms.string(
'RecoTauV/miniAODValidation/DoubleElectron/Summary/#PAR#PlotNum'),
108 parameter = cms.vstring(
'summary'),
109 stepByStep = cms.bool(
True)
113 efficienciesTauValidationMiniAODRealMuonsData = cms.EDProducer(
"TauDQMHistEffProducer",
116 denominator = cms.string(
'RecoTauV/miniAODValidation/DoubleMuon/Summary/#PAR#PlotDen'),
117 efficiency = cms.string(
'RecoTauV/miniAODValidation/DoubleMuon/Summary/#PAR#Plot'),
118 numerator = cms.string(
'RecoTauV/miniAODValidation/DoubleMuon/Summary/#PAR#PlotNum'),
119 parameter = cms.vstring(
'summary'),
120 stepByStep = cms.bool(
True)
125 tauValidationSequenceMiniAOD = cms.Sequence(
126 produceDenominatorZTT
127 *tauValidationMiniAODZTT
128 *produceDenominatorZEE
129 *tauValidationMiniAODZEE
130 *produceDenominatorZMM
131 *tauValidationMiniAODZMM
132 *produceDenominatorQCD
133 *tauValidationMiniAODQCD
134 *tauValidationMiniAODRealData
135 *tauValidationMiniAODRealElectronsData
136 *tauValidationMiniAODRealMuonsData
138 from Configuration.Eras.Modifier_fastSim_cff
import fastSim
139 fastSim.toReplaceWith(tauValidationSequenceMiniAOD,tauValidationSequenceMiniAOD.copyAndExclude([tauValidationMiniAODRealData,tauValidationMiniAODRealElectronsData,tauValidationMiniAODRealMuonsData]))
bool any(const std::vector< T > &v, const T &what)