5 import FWCore.ParameterSet.Config
as cms
7 from RecoTracker.Configuration.customiseEarlyDeleteForSeeding
import customiseEarlyDeleteForSeeding
8 from CommonTools.ParticleFlow.Isolation.customiseEarlyDeleteForCandIsoDeposits
import customiseEarlyDeleteForCandIsoDeposits
11 for name
in pset.parameterNames_():
12 value = getattr(pset,name)
13 if isinstance(value, cms.PSet):
16 elif isinstance(value, cms.VPSet):
20 elif isinstance(value, cms.VInputTag):
23 if not isinstance(t, cms.InputTag):
25 if t2.getModuleLabel() == moduleLabel:
27 elif isinstance(value, cms.InputTag):
28 if value.getModuleLabel() == moduleLabel:
30 if isinstance(value, cms.string)
and name ==
"refToPSet_":
37 products = collections.defaultdict(list)
44 if not hasattr(process.options,
"canDeleteEarly"):
45 process.options.canDeleteEarly = cms.untracked.vstring()
48 for branches
in products.itervalues():
49 for branch
in branches:
51 process.options.canDeleteEarly.extend(
list(branchSet))
54 for moduleType
in [process.producers_(), process.filters_(), process.analyzers_()]:
55 for name, module
in moduleType.iteritems():
56 for producer, branches
in products.iteritems():
59 if hasattr(module,
"mightGet"):
60 module.mightGet.extend(branches)
62 module.mightGet = cms.untracked.vstring(branches)
66 if __name__==
"__main__":
75 p.pset = cms.PSet(a=cms.InputTag(
"a"),a2=cms.untracked.InputTag(
"a2"))
76 p.prod = cms.EDProducer(
"Producer",
77 foo = cms.InputTag(
"foo"),
78 foo2 = cms.InputTag(
"foo2",
"instance"),
79 foo3 = cms.InputTag(
"foo3",
"instance",
"PROCESS"),
80 foo4 = cms.untracked.InputTag(
"foo4"),
82 bar = cms.InputTag(
"bar"),
83 bar2 = cms.untracked.InputTag(
"bar2"),
85 nested2 = cms.untracked.PSet(
86 bar3 = cms.untracked.InputTag(
"bar3"),
88 flintstones = cms.VPSet(
89 cms.PSet(fred=cms.InputTag(
"fred")),
90 cms.PSet(wilma=cms.InputTag(
"wilma"))
92 flintstones2 = cms.VPSet(
93 cms.PSet(fred2=cms.untracked.InputTag(
"fred2")),
94 cms.PSet(wilma2=cms.InputTag(
"wilma2"))
97 refToPSet_ = cms.string(
"pset")
99 ref2 = cms.untracked.PSet(
100 refToPSet_ = cms.string(
"pset")
def customiseEarlyDelete(process)
def _hasInputTagModuleLabel(process, pset, moduleLabel)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger list("!*","!HLTx*"if it matches 2 triggers or more) will accept the event if all the matching triggers are FAIL.It will reject the event if any of the triggers are PASS or EXCEPTION(this matches the behavior of"!*"before the partial wildcard feature was incorporated).Triggers which are in the READY state are completely ignored.(READY should never be returned since the trigger paths have been run