1 import FWCore.ParameterSet.Config
as cms
13 selectElectrons = cms.EDProducer(
15 src = cms.InputTag(
"prunedGenParticles"),
23 selectStableElectrons = genParticlesForJets.clone(src =
"selectElectrons")
28 kinematicSelectedTauValDenominatorZEE = cms.EDFilter(
30 src = cms.InputTag(
'selectStableElectrons'),
31 cut = kinematicSelectedTauValDenominatorCut,
32 filter = cms.bool(
False)
35 procAttributes =
dir(proc)
38 helpers.massSearchReplaceAnyInputTag(proc.TauValNumeratorAndDenominatorZEE,
'kinematicSelectedTauValDenominator',
'kinematicSelectedTauValDenominatorZEE')
42 zttModifier = ApplyFunctionToSequence(zttLabeler)
43 proc.TauValNumeratorAndDenominatorZEE.visit(zttModifier)
46 discs_to_retain = [
'ByDecayModeFinding',
'ElectronRejection']
47 proc.RunHPSValidationZEE.discriminators = cms.VPSet([p
for p
in proc.RunHPSValidationZEE.discriminators
if any(disc
in p.discriminator.value()
for disc
in discs_to_retain) ])
50 proc.efficienciesZEE.plots = Utils.SetPlotSequence(proc.TauValNumeratorAndDenominatorZEE)
51 proc.efficienciesZEESummary = cms.EDProducer(
"TauDQMHistEffProducer",
54 denominator = cms.string(
'RecoTauV/standardValidation/hpsPFTauProducerZEE_Summary/#PAR#PlotDen'),
55 efficiency = cms.string(
'RecoTauV/standardValidation/hpsPFTauProducerZEE_Summary/#PAR#Plot'),
56 numerator = cms.string(
'RecoTauV/standardValidation/hpsPFTauProducerZEE_Summary/#PAR#PlotNum'),
57 parameter = cms.vstring(
'summary'),
58 stepByStep = cms.bool(
True)
64 newProcAttributes = [x
for x
in dir(proc)
if (x
not in procAttributes)
and (x.find(
'ZEE') != -1)]
67 for newAttr
in newProcAttributes:
68 locals()[newAttr] = getattr(proc,newAttr)
70 produceDenominatorZEE = cms.Sequence(
72 +cms.ignore(selectStableElectrons)
73 +cms.ignore(kinematicSelectedTauValDenominatorZEE)
76 produceDenominator = cms.Sequence(produceDenominatorZEE)
78 runTauValidationBatchMode = cms.Sequence(
79 produceDenominatorZEE*
80 TauValNumeratorAndDenominatorZEE
83 runTauValidation = cms.Sequence(
84 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)