1 import FWCore.ParameterSet.Config
as cms
2 import Validation.RecoTau.ValidationUtils
as Utils
6 proc = cms.Process(
'helper')
8 proc.load(
'Validation.RecoTau.dataTypes.ValidateTausOnZEE_cff')
10 procAttributes =
dir(proc)
17 zttModifier = ApplyFunctionToSequence(zttLabeler)
18 proc.TauValNumeratorAndDenominatorZEEFastSim.visit(zttModifier)
21 discs_to_retain = [
'ByDecayModeFinding',
'ElectronRejection']
22 proc.RunHPSValidationZEEFastSim.discriminators = cms.VPSet([p
for p
in proc.RunHPSValidationZEEFastSim.discriminators
if any(disc
in p.discriminator.value()
for disc
in discs_to_retain) ])
25 proc.efficienciesZEEFastSim.plots = Utils.SetPlotSequence(proc.TauValNumeratorAndDenominatorZEEFastSim)
26 proc.efficienciesZEEFastSimSummary = cms.EDProducer(
"TauDQMHistEffProducer",
29 denominator = cms.string(
'RecoTauV/hpsPFTauProducerZEEFastSim_Summary/#PAR#PlotDen'),
30 efficiency = cms.string(
'RecoTauV/hpsPFTauProducerZEEFastSim_Summary/#PAR#Plot'),
31 numerator = cms.string(
'RecoTauV/hpsPFTauProducerZEEFastSim_Summary/#PAR#PlotNum'),
32 parameter = cms.vstring(
'summary'),
33 stepByStep = cms.bool(
True)
39 newProcAttributes = [x
for x
in dir(proc)
if (x
not in procAttributes)
and (x.find(
'FastSim') != -1)]
42 for newAttr
in newProcAttributes:
43 locals()[newAttr] = getattr(proc,newAttr)
45 produceDenominator = cms.Sequence(produceDenominatorZEEFastSim)
47 runTauValidationBatchMode = cms.Sequence(
48 produceDenominatorZEEFastSim
49 +TauValNumeratorAndDenominatorZEEFastSim
52 runTauValidation = cms.Sequence(
53 runTauValidationBatchMode
54 +TauEfficienciesZEEFastSim
bool any(const std::vector< T > &v, const T &what)
def cloneProcessingSnippet
def SetValidationExtention