36 if isinstance(object, cms.InputTag):
38 keepStatement_regex =
r"keep [a-zA-Z0-9*]+_(?P<label>[a-zA-Z0-9*]+)_[a-zA-Z0-9*]+_[a-zA-Z0-9*]+"
39 keepStatement_matcher = re.compile(keepStatement_regex)
40 isStoredInRECO =
False
41 for keepStatement
in RECOEventContent.outputCommands:
42 keepStatement_match = keepStatement_matcher.match(keepStatement)
43 if keepStatement_match:
44 label = keepStatement_match.group(
'label')
45 if label == object.getModuleLabel():
47 isInRerunParticleFlowSequence =
False
48 if hasattr(process,
"rerunParticleFlowSequenceForPFMuonCleaning"):
50 getattr(process,
"rerunParticleFlowSequenceForPFMuonCleaning").
visit(sequenceVisitor)
51 moduleNames = sequenceVisitor.getModuleNames()
52 for moduleName
in moduleNames:
53 if moduleName == object.getModuleLabel():
54 isInRerunParticleFlowSequence =
True
55 if isStoredInRECO
and not isInRerunParticleFlowSequence:
56 if object.getProcessName() != inputProcess:
58 object.setProcessName(inputProcess)
59 elif isinstance(object, cms.PSet):
60 for attrName
in dir(object):
61 attr = getattr(object, attrName)
63 elif isinstance(object, cms.VPSet):
65 for attrName
in dir(pset):
66 attr = getattr(pset, attrName)