Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-12-27 18:27:37

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Validation.RecoTau.RecoTauValidationMiniAOD_cfi import *
0004 tauValidationMiniAODZTT = tauValidationMiniAOD.clone()
0005 discs_to_retain = ['decayModeFinding', 'CombinedIsolationDeltaBetaCorr3HitsdR03', 'IsolationMVArun2v1DBoldDMwLT', 'IsolationMVArun2v1DBnewDMwLT', 'againstMuon', 'againstElectron']
0006 tauValidationMiniAODZTT.discriminators = cms.VPSet([p for p in tauValidationMiniAODZTT.discriminators if any(disc in p.discriminator.value() for disc in discs_to_retain) ])
0007 
0008 tauValidationMiniAODZEE = tauValidationMiniAODZTT.clone(
0009   RefCollection = "kinematicSelectedTauValDenominatorZEE",
0010   ExtensionName = 'ZEE'
0011 )
0012 tauValidationMiniAODZMM = tauValidationMiniAODZTT.clone(
0013   RefCollection = "kinematicSelectedTauValDenominatorZMM",
0014   ExtensionName = 'ZMM'
0015 )
0016 tauValidationMiniAODQCD = tauValidationMiniAODZTT.clone(
0017   RefCollection = "kinematicSelectedTauValDenominatorQCD",
0018   ExtensionName = 'QCD'
0019 )
0020 tauValidationMiniAODRealData = tauValidationMiniAODZTT.clone(
0021   RefCollection = "CleanedPFJets",
0022   ExtensionName = 'RealData'
0023 )
0024 tauValidationMiniAODRealElectronsData = tauValidationMiniAODZTT.clone(
0025   RefCollection = "ElZLegs:theProbeLeg",
0026   ExtensionName = "RealElectronsData"
0027 )
0028 tauValidationMiniAODRealMuonsData = tauValidationMiniAODZTT.clone(
0029   RefCollection = "MuZLegs:theProbeLeg",
0030   ExtensionName = 'RealMuonsData'
0031 )
0032 
0033 
0034 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
0035 efficienciesTauValidationMiniAODZTT = cms.EDProducer("TauDQMHistEffProducer",
0036     plots = cms.PSet(
0037         Summary = cms.PSet(
0038             denominator = cms.string('RecoTauV/miniAODValidationZTT/#PAR#PlotDen'),
0039             efficiency = cms.string('RecoTauV/miniAODValidationZTT/#PAR#Plot'),
0040             numerator = cms.string('RecoTauV/miniAODValidationZTT/#PAR#PlotNum'),
0041             parameter = cms.vstring('summary'),
0042             stepByStep = cms.bool(True)
0043         ),
0044     )
0045 )
0046 efficienciesTauValidationMiniAODZEE = cms.EDProducer("TauDQMHistEffProducer",
0047     plots = cms.PSet(
0048         Summary = cms.PSet(
0049             denominator = cms.string('RecoTauV/miniAODValidationZEE/#PAR#PlotDen'),
0050             efficiency = cms.string('RecoTauV/miniAODValidationZEE/#PAR#Plot'),
0051             numerator = cms.string('RecoTauV/miniAODValidationZEE/#PAR#PlotNum'),
0052             parameter = cms.vstring('summary'),
0053             stepByStep = cms.bool(True)
0054         ),
0055     )
0056 )
0057 efficienciesTauValidationMiniAODZMM = cms.EDProducer("TauDQMHistEffProducer",
0058     plots = cms.PSet(
0059         Summary = cms.PSet(
0060             denominator = cms.string('RecoTauV/miniAODValidationZMM/#PAR#PlotDen'),
0061             efficiency = cms.string('RecoTauV/miniAODValidationZMM/#PAR#Plot'),
0062             numerator = cms.string('RecoTauV/miniAODValidationZMM/#PAR#PlotNum'),
0063             parameter = cms.vstring('summary'),
0064             stepByStep = cms.bool(True)
0065         ),
0066     )
0067 )
0068 efficienciesTauValidationMiniAODQCD = cms.EDProducer("TauDQMHistEffProducer",
0069     plots = cms.PSet(
0070         Summary = cms.PSet(
0071             denominator = cms.string('RecoTauV/miniAODValidationQCD/#PAR#PlotDen'),
0072             efficiency = cms.string('RecoTauV/miniAODValidationQCD/#PAR#Plot'),
0073             numerator = cms.string('RecoTauV/miniAODValidationQCD/#PAR#PlotNum'),
0074             parameter = cms.vstring('summary'),
0075             stepByStep = cms.bool(True)
0076         ),
0077     )
0078 )
0079 efficienciesTauValidationMiniAODRealData = cms.EDProducer("TauDQMHistEffProducer",
0080     plots = cms.PSet(
0081         Summary = cms.PSet(
0082             denominator = cms.string('RecoTauV/miniAODValidationRealData/#PAR#PlotDen'),
0083             efficiency = cms.string('RecoTauV/miniAODValidationRealData/#PAR#Plot'),
0084             numerator = cms.string('RecoTauV/miniAODValidationRealData/#PAR#PlotNum'),
0085             parameter = cms.vstring('summary'),
0086             stepByStep = cms.bool(True)
0087         ),
0088     )
0089 )
0090 efficienciesTauValidationMiniAODRealElectronsData = cms.EDProducer("TauDQMHistEffProducer",
0091     plots = cms.PSet(
0092         Summary = cms.PSet(
0093             denominator = cms.string('RecoTauV/miniAODValidationRealElectronsData/#PAR#PlotDen'),
0094             efficiency = cms.string('RecoTauV/miniAODValidationRealElectronsData/#PAR#Plot'),
0095             numerator = cms.string('RecoTauV/miniAODValidationRealElectronsData/#PAR#PlotNum'),
0096             parameter = cms.vstring('summary'),
0097             stepByStep = cms.bool(True)
0098         ),
0099     )
0100 )
0101 efficienciesTauValidationMiniAODRealMuonsData = cms.EDProducer("TauDQMHistEffProducer",
0102     plots = cms.PSet(
0103         Summary = cms.PSet(
0104             denominator = cms.string('RecoTauV/miniAODValidationRealMuonsData/#PAR#PlotDen'),
0105             efficiency = cms.string('RecoTauV/miniAODValidationRealMuonsData/#PAR#Plot'),
0106             numerator = cms.string('RecoTauV/miniAODValidationRealMuonsData/#PAR#PlotNum'),
0107             parameter = cms.vstring('summary'),
0108             stepByStep = cms.bool(True)
0109         ),
0110     )
0111 )
0112 
0113 tauValidationSequenceMiniAOD = cms.Sequence(tauValidationMiniAODZTT*tauValidationMiniAODZEE*tauValidationMiniAODZMM*tauValidationMiniAODQCD*tauValidationMiniAODRealData*tauValidationMiniAODRealElectronsData*tauValidationMiniAODRealMuonsData)