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.ValidateTausOnZTT_cff')
10 procAttributes =
dir(proc)
17 zttModifier = ApplyFunctionToSequence(zttLabeler)
18 proc.TauValNumeratorAndDenominatorZTTFastSim.visit(zttModifier)
21 discs_to_retain = [
'ByDecayModeFinding',
'CombinedIsolationDBSumPtCorr3Hits',
'IsolationMVArun2v1DBoldDMwLT',
'IsolationMVArun2v1DBnewDMwLT',
'MuonRejection',
'ElectronRejection']
22 proc.RunHPSValidationZTTFastSim.discriminators = cms.VPSet([p
for p
in proc.RunHPSValidationZTTFastSim.discriminators
if any(disc
in p.discriminator.value()
for disc
in discs_to_retain) ])
25 proc.efficienciesZTTFastSim.plots = Utils.SetPlotSequence(proc.TauValNumeratorAndDenominatorZTTFastSim)
26 proc.efficienciesZTTFastSimSummary = cms.EDProducer(
"TauDQMHistEffProducer",
29 denominator = cms.string(
'RecoTauV/hpsPFTauProducerZTTFastSim_Summary/#PAR#PlotDen'),
30 efficiency = cms.string(
'RecoTauV/hpsPFTauProducerZTTFastSim_Summary/#PAR#Plot'),
31 numerator = cms.string(
'RecoTauV/hpsPFTauProducerZTTFastSim_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(produceDenominatorZTTFastSim)
47 runTauValidationBatchMode = cms.Sequence(
48 produceDenominatorZTTFastSim
49 +TauValNumeratorAndDenominatorZTTFastSim
52 runTauValidation = cms.Sequence(
53 runTauValidationBatchMode
54 +TauEfficienciesZTTFastSim
bool any(const std::vector< T > &v, const T &what)
def cloneProcessingSnippet
def SetValidationExtention