CMS 3D CMS Logo

RecoTauValidation_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
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) ])
7 
8 tauValidationMiniAODZEE = tauValidationMiniAODZTT.clone(
9  RefCollection = cms.InputTag("kinematicSelectedTauValDenominatorZEE"),
10  ExtensionName = cms.string('ZEE')
11 )
12 tauValidationMiniAODZMM = tauValidationMiniAODZTT.clone(
13  RefCollection = cms.InputTag("kinematicSelectedTauValDenominatorZMM"),
14  ExtensionName = cms.string('ZMM')
15 )
16 tauValidationMiniAODQCD = tauValidationMiniAODZTT.clone(
17  RefCollection = cms.InputTag("kinematicSelectedTauValDenominatorQCD"),
18  ExtensionName = cms.string('QCD')
19 )
20 tauValidationMiniAODRealData = tauValidationMiniAODZTT.clone(
21  RefCollection = cms.InputTag("CleanedPFJets"),
22  ExtensionName = cms.string('RealData')
23 )
24 tauValidationMiniAODRealElectronsData = tauValidationMiniAODZTT.clone(
25  RefCollection = cms.InputTag("ElZLegs","theProbeLeg"),
26  ExtensionName = cms.string("RealElectronsData")
27 )
28 tauValidationMiniAODRealMuonsData = tauValidationMiniAODZTT.clone(
29  RefCollection = cms.InputTag("MuZLegs","theProbeLeg"),
30  ExtensionName = cms.string('RealMuonsData')
31 )
32 
33 
34 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
35 efficienciesTauValidationMiniAODZTT = cms.EDProducer("TauDQMHistEffProducer",
36  plots = cms.PSet(
37  Summary = cms.PSet(
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)
43  ),
44  )
45 )
46 efficienciesTauValidationMiniAODZEE = cms.EDProducer("TauDQMHistEffProducer",
47  plots = cms.PSet(
48  Summary = cms.PSet(
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)
54  ),
55  )
56 )
57 efficienciesTauValidationMiniAODZMM = cms.EDProducer("TauDQMHistEffProducer",
58  plots = cms.PSet(
59  Summary = cms.PSet(
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)
65  ),
66  )
67 )
68 efficienciesTauValidationMiniAODQCD = cms.EDProducer("TauDQMHistEffProducer",
69  plots = cms.PSet(
70  Summary = cms.PSet(
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)
76  ),
77  )
78 )
79 efficienciesTauValidationMiniAODRealData = cms.EDProducer("TauDQMHistEffProducer",
80  plots = cms.PSet(
81  Summary = cms.PSet(
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)
87  ),
88  )
89 )
90 efficienciesTauValidationMiniAODRealElectronsData = cms.EDProducer("TauDQMHistEffProducer",
91  plots = cms.PSet(
92  Summary = cms.PSet(
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)
98  ),
99  )
100 )
101 efficienciesTauValidationMiniAODRealMuonsData = cms.EDProducer("TauDQMHistEffProducer",
102  plots = cms.PSet(
103  Summary = cms.PSet(
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)
109  ),
110  )
111 )
112 
113 tauValidationSequenceMiniAOD = cms.Sequence(tauValidationMiniAODZTT*tauValidationMiniAODZEE*tauValidationMiniAODZMM*tauValidationMiniAODQCD*tauValidationMiniAODRealData*tauValidationMiniAODRealElectronsData*tauValidationMiniAODRealMuonsData)
bool any(const std::vector< T > &v, const T &what)
Definition: ECalSD.cc:37