CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Functions
MassReplace Namespace Reference

Classes

class  MassSearchParamVisitor
 
class  MassSearchReplaceAnyInputTagVisitor
 
class  MassSearchReplaceParamVisitor
 
class  SwitchProducerTest
 
class  TestModuleCommand
 

Functions

def massReplaceInputTag
 
def massReplaceParameter
 
def massSearchReplaceAnyInputTag
 
def massSearchReplaceParam
 

Function Documentation

def MassReplace.massReplaceInputTag (   process,
  old = "rawDataCollector",
  new = "rawDataRepacker",
  verbose = False,
  moduleLabelOnly = False,
  skipLabelTest = False 
)

Definition at line 83 of file MassReplace.py.

References relativeConstraints.keys, massSearchReplaceAnyInputTag(), and gpuVertexFinder.return.

Referenced by MassReplace.TestModuleCommand.testMassReplaceInputTag().

83 
84 def massReplaceInputTag(process,old="rawDataCollector",new="rawDataRepacker",verbose=False,moduleLabelOnly=False,skipLabelTest=False):
85  for s in process.paths_().keys():
86  massSearchReplaceAnyInputTag(getattr(process,s), old, new, verbose, moduleLabelOnly, skipLabelTest)
87  for s in process.endpaths_().keys():
88  massSearchReplaceAnyInputTag(getattr(process,s), old, new, verbose, moduleLabelOnly, skipLabelTest)
89  if process.schedule_() is not None:
90  for task in process.schedule_()._tasks:
91  massSearchReplaceAnyInputTag(task, old, new, verbose, moduleLabelOnly, skipLabelTest)
92  return(process)
def massReplaceInputTag
Definition: MassReplace.py:83
def massSearchReplaceAnyInputTag
Definition: MassReplace.py:79
def MassReplace.massReplaceParameter (   process,
  name = "label",
  old = "rawDataCollector",
  new = "rawDataRepacker",
  verbose = False 
)

Definition at line 132 of file MassReplace.py.

References relativeConstraints.keys, massSearchReplaceParam(), and gpuVertexFinder.return.

Referenced by customiseHybrid.runOnHybridZS(), and MassReplace.TestModuleCommand.testMassReplaceParam().

133 def massReplaceParameter(process,name="label",old="rawDataCollector",new="rawDataRepacker",verbose=False):
134  for s in process.paths_().keys():
135  massSearchReplaceParam(getattr(process,s),name,old,new,verbose)
136  for s in process.endpaths_().keys():
137  massSearchReplaceParam(getattr(process,s),name,old,new,verbose)
138  if process.schedule_() is not None:
139  for task in process.schedule_()._tasks:
140  massSearchReplaceParam(task, name, old, new, verbose)
141  return(process)
def massReplaceParameter
Definition: MassReplace.py:132
def massSearchReplaceParam
Definition: MassReplace.py:129
def MassReplace.massSearchReplaceAnyInputTag (   sequence,
  oldInputTag,
  newInputTag,
  verbose = False,
  moduleLabelOnly = False,
  skipLabelTest = False 
)
Replace InputTag oldInputTag with newInputTag, at any level of nesting within PSets, VPSets, VInputTags...

Definition at line 79 of file MassReplace.py.

Referenced by boostedHPSPFTaus_cfi.addBoostedTaus(), extraSlimmedMETs_MuEGFixMoriond2017.addExtraMETCollections(), extraJets_MuEGFixMoriond2017.backupJetsSecondStep(), patMuonsWithTrigger_cff.changeRecoMuonInput(), helpers.CloneSequenceVisitor.clonedSequence(), helpers.CloneTaskVisitor.clonedTask(), helpers.extendWithPrePostfix(), massReplaceInputTag(), ConfigBuilder.ConfigBuilder.renameInputTagsInSequence(), MassReplace.TestModuleCommand.testMassSearchReplaceAnyInputTag(), and patMuonsWithTrigger_cff.useExistingPATMuons().

79 
80 def massSearchReplaceAnyInputTag(sequence, oldInputTag, newInputTag,verbose=False,moduleLabelOnly=False,skipLabelTest=False) :
81  """Replace InputTag oldInputTag with newInputTag, at any level of nesting within PSets, VPSets, VInputTags..."""
82  sequence.visit(MassSearchReplaceAnyInputTagVisitor(oldInputTag,newInputTag,verbose=verbose,moduleLabelOnly=moduleLabelOnly,skipLabelTest=skipLabelTest))
def massSearchReplaceAnyInputTag
Definition: MassReplace.py:79
def MassReplace.massSearchReplaceParam (   sequence,
  paramName,
  paramOldValue,
  paramValue,
  verbose = False 
)

Definition at line 129 of file MassReplace.py.

Referenced by massReplaceParameter(), pfTools.reconfigurePF2PATTaus(), switchMVAtoDB_cfi.switchMVAtoDB(), and MassReplace.TestModuleCommand.testMassSearchReplaceParam().

130 def massSearchReplaceParam(sequence,paramName,paramOldValue,paramValue,verbose=False):
131  sequence.visit(MassSearchReplaceParamVisitor(paramName,paramOldValue,paramValue,verbose))
def massSearchReplaceParam
Definition: MassReplace.py:129