1 import FWCore.ParameterSet.Config
as cms
10 kinematicSelectedTauValDenominatorQCD = cms.EDFilter(
12 src = cms.InputTag(
'slimmedGenJets'),
13 cut = kinematicSelectedTauValDenominatorCut,
14 filter = cms.bool(
False)
17 procAttributes =
dir(proc)
20 helpers.massSearchReplaceAnyInputTag(proc.TauValNumeratorAndDenominatorQCD,
'kinematicSelectedTauValDenominator',
'kinematicSelectedTauValDenominatorQCD')
24 zttModifier = ApplyFunctionToSequence(zttLabeler)
25 proc.TauValNumeratorAndDenominatorQCD.visit(zttModifier)
28 discs_to_retain = [
'ByDecayModeFinding',
'CombinedIsolationDBSumPtCorr3Hits',
'IsolationMVArun2v1DBoldDMwLT',
'IsolationMVArun2v1DBnewDMwLT']
29 proc.RunHPSValidationQCD.discriminators = cms.VPSet([p
for p
in proc.RunHPSValidationQCD.discriminators
if any(disc
in p.discriminator.value()
for disc
in discs_to_retain) ])
32 proc.efficienciesQCD.plots = Utils.SetPlotSequence(proc.TauValNumeratorAndDenominatorQCD)
33 proc.efficienciesQCDSummary = cms.EDProducer(
"TauDQMHistEffProducer",
36 denominator = cms.string(
'RecoTauV/standardValidation/hpsPFTauProducerQCD_Summary/#PAR#PlotDen'),
37 efficiency = cms.string(
'RecoTauV/standardValidation/hpsPFTauProducerQCD_Summary/#PAR#Plot'),
38 numerator = cms.string(
'RecoTauV/standardValidation/hpsPFTauProducerQCD_Summary/#PAR#PlotNum'),
39 parameter = cms.vstring(
'summary'),
40 stepByStep = cms.bool(
True)
46 newProcAttributes = [x
for x
in dir(proc)
if (x
not in procAttributes)
and (x.find(
'QCD') != -1)]
49 for newAttr
in newProcAttributes:
50 locals()[newAttr] = getattr(proc,newAttr)
52 produceDenominatorQCD = cms.Sequence(
53 cms.ignore(kinematicSelectedTauValDenominatorQCD)
56 produceDenominator = cms.Sequence(produceDenominatorQCD)
58 runTauValidationBatchMode = cms.Sequence(
60 +TauValNumeratorAndDenominatorQCD
63 runTauValidation = cms.Sequence(
64 runTauValidationBatchMode
def cloneProcessingSnippet(process, sequence, postfix, removePostfix="", noClones=[], addToTask=False, verbose=False)
bool any(const std::vector< T > &v, const T &what)
def SetValidationExtention(module, extension)