diff --git a/PhysicsAnalysis/Algorithms/EgammaAnalysisAlgorithms/python/ElectronAnalysisSequence.py b/PhysicsAnalysis/Algorithms/EgammaAnalysisAlgorithms/python/ElectronAnalysisSequence.py index 67230addc20c1d1e8bfe305121133d92bdf13d35..7058102a1a744ef1e9d367a27985b414fbdbc960 100644 --- a/PhysicsAnalysis/Algorithms/EgammaAnalysisAlgorithms/python/ElectronAnalysisSequence.py +++ b/PhysicsAnalysis/Algorithms/EgammaAnalysisAlgorithms/python/ElectronAnalysisSequence.py @@ -297,14 +297,6 @@ def makeElectronWorkingPointSequence( seq, dataType, workingPoint, dynConfig = {'preselection' : lambda meta : "&&".join (meta["selectionDecorNamesOutput"])} ) pass - # Set up an algorithm used for decorating baseline electron selection: - alg = createAlgorithm( 'CP::AsgSelectionAlg', - 'ElectronSelectionSummary' + postfix ) - alg.selectionDecoration = 'baselineSelection' + postfix + ',as_char' - seq.append( alg, inputPropName = 'particles', - stageName = 'selection', - dynConfig = {'preselection' : lambda meta : "&&".join (meta["selectionDecorNamesOutput"])} ) - # Set up the electron efficiency correction algorithm: alg = createAlgorithm( 'CP::ElectronEfficiencyCorrectionAlg', 'ElectronEfficiencyCorrectionAlg' + postfix ) @@ -327,3 +319,11 @@ def makeElectronWorkingPointSequence( seq, dataType, workingPoint, stageName = 'efficiency', dynConfig = {'preselection' : lambda meta : "&&".join (meta["selectionDecorNamesOutput"])} ) pass + + # Set up an algorithm used for decorating baseline electron selection: + alg = createAlgorithm( 'CP::AsgSelectionAlg', + 'ElectronSelectionSummary' + postfix ) + alg.selectionDecoration = 'baselineSelection' + postfix + ',as_char' + seq.append( alg, inputPropName = 'particles', + stageName = 'selection', + dynConfig = {'preselection' : lambda meta : "&&".join (meta["selectionDecorNames"])} ) diff --git a/PhysicsAnalysis/Algorithms/EgammaAnalysisAlgorithms/python/PhotonAnalysisSequence.py b/PhysicsAnalysis/Algorithms/EgammaAnalysisAlgorithms/python/PhotonAnalysisSequence.py index c600d8293660f94b778e0a9fe4bb95c998497659..ff0002cf4de642644d1ab5b2a9f0d7397bbc1c17 100644 --- a/PhysicsAnalysis/Algorithms/EgammaAnalysisAlgorithms/python/PhotonAnalysisSequence.py +++ b/PhysicsAnalysis/Algorithms/EgammaAnalysisAlgorithms/python/PhotonAnalysisSequence.py @@ -294,17 +294,6 @@ def makePhotonWorkingPointSequence( seq, dataType, workingPoint, postfix = '', dynConfig = {'preselection' : lambda meta : "&&".join (meta["selectionDecorNamesOutput"])} ) pass - # Set up an algorithm used for decorating baseline photon selection: - alg = createAlgorithm( 'CP::AsgSelectionAlg', - 'PhotonSelectionSummary' + postfix ) - alg.selectionDecoration = 'baselineSelection' + postfix + ',as_char' - seq.append( alg, inputPropName = 'particles', - stageName = 'selection', - metaConfig = {'selectionDecorNames' : [alg.selectionDecoration], - 'selectionDecorNamesOutput' : [alg.selectionDecoration], - 'selectionDecorCount' : [1]}, - dynConfig = {'preselection' : lambda meta : "&&".join (meta["selectionDecorNamesOutput"])} ) - # Set up the photon efficiency correction algorithm. alg = createAlgorithm( 'CP::PhotonEfficiencyCorrectionAlg', 'PhotonEfficiencyCorrectionAlg' + postfix ) @@ -327,3 +316,11 @@ def makePhotonWorkingPointSequence( seq, dataType, workingPoint, postfix = '', pass pass + + # Set up an algorithm used for decorating baseline photon selection: + alg = createAlgorithm( 'CP::AsgSelectionAlg', + 'PhotonSelectionSummary' + postfix ) + alg.selectionDecoration = 'baselineSelection' + postfix + ',as_char' + seq.append( alg, inputPropName = 'particles', + stageName = 'selection', + dynConfig = {'preselection' : lambda meta : "&&".join (meta["selectionDecorNames"])} ) diff --git a/PhysicsAnalysis/Algorithms/MuonAnalysisAlgorithms/python/MuonAnalysisSequence.py b/PhysicsAnalysis/Algorithms/MuonAnalysisAlgorithms/python/MuonAnalysisSequence.py index fb55bc1c05369ef2f3cf3ba15ac790f2868012b7..da72b9ce33b712bfb3192782230911d908ffd127 100644 --- a/PhysicsAnalysis/Algorithms/MuonAnalysisAlgorithms/python/MuonAnalysisSequence.py +++ b/PhysicsAnalysis/Algorithms/MuonAnalysisAlgorithms/python/MuonAnalysisSequence.py @@ -247,5 +247,5 @@ def makeMuonWorkingPointSequence( seq, dataType, workingPoint, postfix = '', alg.selectionDecoration = 'baselineSelection' + postfix + ',as_char' seq.append( alg, inputPropName = 'particles', stageName = 'selection', - dynConfig = {'preselection' : lambda meta : "&&".join (meta["selectionDecorNamesOutput"])}) + dynConfig = {'preselection' : lambda meta : "&&".join (meta["selectionDecorNames"])}) pass