Classes | |
class | CloneSequenceVisitor |
class | GatherAllModulesVisitor |
class | TestModuleCommand |
Functions | |
def | __labelsInSequence (process, sequenceLabel, postfix="") |
def | applyPostfix (process, label, postfix) |
def | cloneProcessingSnippet (process, sequence, postfix) |
def | contains (sequence, moduleName) |
def | jetCollectionString (prefix='', algo='', type='') |
def | listModules (sequence) |
def | listSequences (sequence) |
def | removeIfInSequence (process, target, sequenceLabel, postfix="") |
|
private |
Definition at line 32 of file HiHelperTools.py.
References listModules(), and listSequences().
Referenced by applyPostfix(), and removeIfInSequence().
def HiHelperTools.applyPostfix | ( | process, | |
label, | |||
postfix | |||
) |
If a module is in patHeavyIonDefaultSequence use the cloned module. Will crash if patHeavyIonDefaultSequence has not been cloned with 'postfix' beforehand
Definition at line 11 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 165 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 149 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 125 of file HiHelperTools.py.
Referenced by HiHelperTools.TestModuleCommand.testJetCollectionString().
def HiHelperTools.listModules | ( | sequence | ) |
Definition at line 115 of file HiHelperTools.py.
Referenced by __labelsInSequence(), and HiHelperTools.TestModuleCommand.testListModules().
def HiHelperTools.listSequences | ( | sequence | ) |
def HiHelperTools.removeIfInSequence | ( | process, | |
target, | |||
sequenceLabel, | |||
postfix = "" |
|||
) |
Definition at line 25 of file HiHelperTools.py.
References __labelsInSequence(), and MatrixUtil.remove().