Classes | |
class | CloneSequenceVisitor |
class | GatherAllModulesVisitor |
class | MassSearchParamVisitor |
class | MassSearchReplaceAnyInputTagVisitor |
class | MassSearchReplaceParamVisitor |
class | TestModuleCommand |
Functions | |
def | __labelsInSequence (process, sequenceLabel, postfix="") |
def | applyPostfix (process, label, postfix) |
Helpers to perform some technically boring tasks like looking for all modules with a given parameter and replacing that to a given value. More... | |
def | cloneProcessingSnippet (process, sequence, postfix) |
def | contains (sequence, moduleName) |
def | jetCollectionString (prefix='', algo='', type='') |
def | listModules (sequence) |
def | listSequences (sequence) |
def | massSearchReplaceAnyInputTag (sequence, oldInputTag, newInputTag, verbose=False, moduleLabelOnly=False) |
def | massSearchReplaceParam (sequence, paramName, paramOldValue, paramValue) |
def | removeIfInSequence (process, target, sequenceLabel, postfix="") |
|
private |
Definition at line 27 of file HiHelperTools.py.
References listModules(), and listSequences().
Referenced by applyPostfix(), and removeIfInSequence().
def HiHelperTools.applyPostfix | ( | process, | |
label, | |||
postfix | |||
) |
Helpers to perform some technically boring tasks like looking for all modules with a given parameter and replacing that to a given value.
If a module is in patHeavyIonDefaultSequence use the cloned module. Will crash if patHeavyIonDefaultSequence has not been cloned with 'postfix' beforehand
Definition at line 6 of file HiHelperTools.py.
References __labelsInSequence().
def HiHelperTools.cloneProcessingSnippet | ( | process, | |
sequence, | |||
postfix | |||
) |
------------------------------------------------------------------ copy a sequence plus the modules and sequences therein both are renamed by getting a postfix input tags are automatically adjusted ------------------------------------------------------------------
Definition at line 257 of file HiHelperTools.py.
def HiHelperTools.contains | ( | sequence, | |
moduleName | |||
) |
------------------------------------------------------------------ return True if a module with name 'module' is contained in the sequence with name 'sequence' and False otherwise. This version is not so nice as it also returns True for any substr of the name of a contained module. sequence : sequence [e.g. process.patHeavyIonDefaultSequence] module : module name as a string ------------------------------------------------------------------
Definition at line 241 of file HiHelperTools.py.
References spr.find().
Referenced by HiHelperTools.TestModuleCommand.testContains().
def HiHelperTools.jetCollectionString | ( | prefix = '' , |
|
algo = '' , |
|||
type = '' |
|||
) |
------------------------------------------------------------------ return the string of the jet collection module depending on the input vaules. The default return value will be 'patAK5CaloJets'. algo : indicating the algorithm type of the jet [expected are 'AK5', 'IC5', 'SC7', ...] type : indicating the type of constituents of the jet [expec- ted are 'Calo', 'PFlow', 'JPT', ...] prefix : prefix indicating the type of pat collection module (ex- pected are '', 'selected', 'clean'). ------------------------------------------------------------------
Definition at line 217 of file HiHelperTools.py.
References reco.if().
Referenced by HiHelperTools.TestModuleCommand.testJetCollectionString().
def HiHelperTools.listModules | ( | sequence | ) |
Definition at line 203 of file HiHelperTools.py.
Referenced by __labelsInSequence(), and HiHelperTools.TestModuleCommand.testListModules().
def HiHelperTools.listSequences | ( | sequence | ) |
def HiHelperTools.massSearchReplaceAnyInputTag | ( | sequence, | |
oldInputTag, | |||
newInputTag, | |||
verbose = False , |
|||
moduleLabelOnly = False |
|||
) |
Replace InputTag oldInputTag with newInputTag, at any level of nesting within PSets, VPSets, VInputTags...
Definition at line 213 of file HiHelperTools.py.
Referenced by HiHelperTools.CloneSequenceVisitor.clonedSequence().
def HiHelperTools.massSearchReplaceParam | ( | sequence, | |
paramName, | |||
paramOldValue, | |||
paramValue | |||
) |
Definition at line 200 of file HiHelperTools.py.
Referenced by HiHelperTools.TestModuleCommand.testMassSearchReplaceParam().
def HiHelperTools.removeIfInSequence | ( | process, | |
target, | |||
sequenceLabel, | |||
postfix = "" |
|||
) |
Definition at line 20 of file HiHelperTools.py.
References __labelsInSequence(), and MatrixUtil.remove().