1 import FWCore.ParameterSet.Config
as cms
4 tauValidationMiniAODZTT = tauValidationMiniAOD.clone()
5 discs_to_retain = [
'decayModeFinding',
'CombinedIsolationDeltaBetaCorr3HitsdR03',
'IsolationMVArun2v1DBoldDMwLT',
'IsolationMVArun2v1DBnewDMwLT',
'againstMuon',
'againstElectron']
6 tauValidationMiniAODZTT.discriminators = cms.VPSet([p
for p
in tauValidationMiniAODZTT.discriminators
if any(disc
in p.discriminator.value()
for disc
in discs_to_retain) ])
8 tauValidationMiniAODZEE = tauValidationMiniAODZTT.clone(
9 RefCollection = cms.InputTag(
"kinematicSelectedTauValDenominatorZEE"),
10 ExtensionName = cms.string(
'ZEE')
12 tauValidationMiniAODZMM = tauValidationMiniAODZTT.clone(
13 RefCollection = cms.InputTag(
"kinematicSelectedTauValDenominatorZMM"),
14 ExtensionName = cms.string(
'ZMM')
16 tauValidationMiniAODQCD = tauValidationMiniAODZTT.clone(
17 RefCollection = cms.InputTag(
"kinematicSelectedTauValDenominatorQCD"),
18 ExtensionName = cms.string(
'QCD')
20 tauValidationMiniAODRealData = tauValidationMiniAODZTT.clone(
21 RefCollection = cms.InputTag(
"CleanedPFJets"),
22 ExtensionName = cms.string(
'RealData')
24 tauValidationMiniAODRealElectronsData = tauValidationMiniAODZTT.clone(
25 RefCollection = cms.InputTag(
"ElZLegs",
"theProbeLeg"),
26 ExtensionName = cms.string(
"RealElectronsData")
28 tauValidationMiniAODRealMuonsData = tauValidationMiniAODZTT.clone(
29 RefCollection = cms.InputTag(
"MuZLegs",
"theProbeLeg"),
30 ExtensionName = cms.string(
'RealMuonsData')
34 from DQMServices.Core.DQMEDHarvester
import DQMEDHarvester
35 efficienciesTauValidationMiniAODZTT = cms.EDProducer(
"TauDQMHistEffProducer",
38 denominator = cms.string(
'RecoTauV/miniAODValidationZTT/#PAR#PlotDen'),
39 efficiency = cms.string(
'RecoTauV/miniAODValidationZTT/#PAR#Plot'),
40 numerator = cms.string(
'RecoTauV/miniAODValidationZTT/#PAR#PlotNum'),
41 parameter = cms.vstring(
'summary'),
42 stepByStep = cms.bool(
True)
46 efficienciesTauValidationMiniAODZEE = cms.EDProducer(
"TauDQMHistEffProducer",
49 denominator = cms.string(
'RecoTauV/miniAODValidationZEE/#PAR#PlotDen'),
50 efficiency = cms.string(
'RecoTauV/miniAODValidationZEE/#PAR#Plot'),
51 numerator = cms.string(
'RecoTauV/miniAODValidationZEE/#PAR#PlotNum'),
52 parameter = cms.vstring(
'summary'),
53 stepByStep = cms.bool(
True)
57 efficienciesTauValidationMiniAODZMM = cms.EDProducer(
"TauDQMHistEffProducer",
60 denominator = cms.string(
'RecoTauV/miniAODValidationZMM/#PAR#PlotDen'),
61 efficiency = cms.string(
'RecoTauV/miniAODValidationZMM/#PAR#Plot'),
62 numerator = cms.string(
'RecoTauV/miniAODValidationZMM/#PAR#PlotNum'),
63 parameter = cms.vstring(
'summary'),
64 stepByStep = cms.bool(
True)
68 efficienciesTauValidationMiniAODQCD = cms.EDProducer(
"TauDQMHistEffProducer",
71 denominator = cms.string(
'RecoTauV/miniAODValidationQCD/#PAR#PlotDen'),
72 efficiency = cms.string(
'RecoTauV/miniAODValidationQCD/#PAR#Plot'),
73 numerator = cms.string(
'RecoTauV/miniAODValidationQCD/#PAR#PlotNum'),
74 parameter = cms.vstring(
'summary'),
75 stepByStep = cms.bool(
True)
79 efficienciesTauValidationMiniAODRealData = cms.EDProducer(
"TauDQMHistEffProducer",
82 denominator = cms.string(
'RecoTauV/miniAODValidationRealData/#PAR#PlotDen'),
83 efficiency = cms.string(
'RecoTauV/miniAODValidationRealData/#PAR#Plot'),
84 numerator = cms.string(
'RecoTauV/miniAODValidationRealData/#PAR#PlotNum'),
85 parameter = cms.vstring(
'summary'),
86 stepByStep = cms.bool(
True)
90 efficienciesTauValidationMiniAODRealElectronsData = cms.EDProducer(
"TauDQMHistEffProducer",
93 denominator = cms.string(
'RecoTauV/miniAODValidationRealElectronsData/#PAR#PlotDen'),
94 efficiency = cms.string(
'RecoTauV/miniAODValidationRealElectronsData/#PAR#Plot'),
95 numerator = cms.string(
'RecoTauV/miniAODValidationRealElectronsData/#PAR#PlotNum'),
96 parameter = cms.vstring(
'summary'),
97 stepByStep = cms.bool(
True)
101 efficienciesTauValidationMiniAODRealMuonsData = cms.EDProducer(
"TauDQMHistEffProducer",
104 denominator = cms.string(
'RecoTauV/miniAODValidationRealMuonsData/#PAR#PlotDen'),
105 efficiency = cms.string(
'RecoTauV/miniAODValidationRealMuonsData/#PAR#Plot'),
106 numerator = cms.string(
'RecoTauV/miniAODValidationRealMuonsData/#PAR#PlotNum'),
107 parameter = cms.vstring(
'summary'),
108 stepByStep = cms.bool(
True)
113 tauValidationSequenceMiniAOD = cms.Sequence(tauValidationMiniAODZTT*tauValidationMiniAODZEE*tauValidationMiniAODZMM*tauValidationMiniAODQCD*tauValidationMiniAODRealData*tauValidationMiniAODRealElectronsData*tauValidationMiniAODRealMuonsData)
bool any(const std::vector< T > &v, const T &what)