Commit bc4c7808 authored by Nils Krumnack's avatar Nils Krumnack
Browse files

make copies of python lists from meta-configuration

Just for safety, since the lists may be subsequently updated.
parent d11f12cf
......@@ -168,15 +168,15 @@ def makeMuonAnalysisSequence( dataType, workingPoint,
alg.selectionDecoration = 'baselineSelection' + postfix + ',as_char'
seq.append( alg, inputPropName = 'particles',
stageName = 'selection',
dynConfig = {'selectionTool.selectionFlags' : lambda meta : meta["selectionDecorNames"]})
dynConfig = {'selectionTool.selectionFlags' : lambda meta : meta["selectionDecorNames"][:]})
# Set up an algorithm used to create muon selection cutflow:
if enableCutflow:
alg = createAlgorithm( 'CP::ObjectCutFlowHistAlg', 'MuonCutFlowDumperAlg' + postfix )
alg.histPattern = 'muon' + postfix + '_cflow_%SYS%'
seq.append( alg, inputPropName = 'input', stageName = 'selection',
dynConfig = {'selection' : lambda meta : meta["selectionDecorNames"],
'selectionNCuts' : lambda meta : meta["selectionDecorCount"]} )
dynConfig = {'selection' : lambda meta : meta["selectionDecorNames"][:],
'selectionNCuts' : lambda meta : meta["selectionDecorCount"][:]} )
# Set up an algorithm that makes a view container using the selections
# performed previously:
......@@ -185,7 +185,7 @@ def makeMuonAnalysisSequence( dataType, workingPoint,
'MuonViewFromSelectionAlg' + postfix )
seq.append( alg, inputPropName = 'input', outputPropName = 'output',
stageName = 'selection',
dynConfig = {'selection' : lambda meta : meta["selectionDecorNamesOutput"]} )
dynConfig = {'selection' : lambda meta : meta["selectionDecorNamesOutput"][:]} )
# Set up the efficiency scale factor calculation algorithm:
alg = createAlgorithm( 'CP::MuonEfficiencyScaleFactorAlg',
......@@ -217,7 +217,7 @@ def makeMuonAnalysisSequence( dataType, workingPoint,
alg.deepCopy = True
seq.append( alg, inputPropName = 'input', outputPropName = 'output',
stageName = 'selection',
dynConfig = {'selection' : lambda meta : meta["selectionDecorNamesOutput"]} )
dynConfig = {'selection' : lambda meta : meta["selectionDecorNamesOutput"][:]} )
pass
# Return the sequence:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment