CMS 3D CMS Logo

RecoTauValidation_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
9 
11 tauValidationMiniAODZTT = tauValidationMiniAOD.clone()
12 discs_to_retain = ['decayModeFinding','decayModeFindingNewDMs',
13  'CombinedIsolationDeltaBetaCorr3HitsdR03',
14  'byLooseDeepTau2018v2p5VSjet','byTightDeepTau2018v2p5VSjet',
15  'byLooseDeepTau2018v2p5VSe','byTightDeepTau2018v2p5VSe',
16  'byLooseDeepTau2018v2p5VSmu','byTightDeepTau2018v2p5VSmu']
17 
18 tauValidationMiniAODZTT.discriminators = cms.VPSet([p for p in tauValidationMiniAODZTT.discriminators if any(disc in p.discriminator.value() for disc in discs_to_retain) ])
19 
20 tauValidationMiniAODZEE = tauValidationMiniAODZTT.clone(
21  RefCollection = "kinematicSelectedTauValDenominatorZEE",
22  ExtensionName = 'ZEE'
23 )
24 tauValidationMiniAODZMM = tauValidationMiniAODZTT.clone(
25  RefCollection = "kinematicSelectedTauValDenominatorZMM",
26  ExtensionName = 'ZMM'
27 )
28 tauValidationMiniAODQCD = tauValidationMiniAODZTT.clone(
29  RefCollection = "kinematicSelectedTauValDenominatorQCD",
30  ExtensionName = 'QCD'
31 )
32 tauValidationMiniAODRealData = tauValidationMiniAODZTT.clone(
33  RefCollection = "CleanedPFJets",
34  ExtensionName = 'JETHT'
35 )
36 tauValidationMiniAODRealElectronsData = tauValidationMiniAODZTT.clone(
37  RefCollection = "ElZLegs:theProbeLeg",
38  ExtensionName = 'DoubleElectron'
39 )
40 tauValidationMiniAODRealMuonsData = tauValidationMiniAODZTT.clone(
41  RefCollection = "MuZLegs:theProbeLeg",
42  ExtensionName = 'DoubleMuon'
43 )
44 
45 
46 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
47 efficienciesTauValidationMiniAODZTT = cms.EDProducer("TauDQMHistEffProducer",
48  plots = cms.PSet(
49  Summary = cms.PSet(
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)
55  ),
56  )
57 )
58 efficienciesTauValidationMiniAODZEE = cms.EDProducer("TauDQMHistEffProducer",
59  plots = cms.PSet(
60  Summary = cms.PSet(
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)
66  ),
67  )
68 )
69 efficienciesTauValidationMiniAODZMM = cms.EDProducer("TauDQMHistEffProducer",
70  plots = cms.PSet(
71  Summary = cms.PSet(
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)
77  ),
78  )
79 )
80 efficienciesTauValidationMiniAODQCD = cms.EDProducer("TauDQMHistEffProducer",
81  plots = cms.PSet(
82  Summary = cms.PSet(
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)
88  ),
89  )
90 )
91 efficienciesTauValidationMiniAODRealData = cms.EDProducer("TauDQMHistEffProducer",
92  plots = cms.PSet(
93  Summary = cms.PSet(
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)
99  ),
100  )
101 )
102 efficienciesTauValidationMiniAODRealElectronsData = cms.EDProducer("TauDQMHistEffProducer",
103  plots = cms.PSet(
104  Summary = cms.PSet(
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)
110  ),
111  )
112 )
113 efficienciesTauValidationMiniAODRealMuonsData = cms.EDProducer("TauDQMHistEffProducer",
114  plots = cms.PSet(
115  Summary = cms.PSet(
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)
121  ),
122  )
123 )
124 
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
137 )
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)
Definition: ECalSD.cc:36