Skip to content
Snippets Groups Projects
Verified Commit dd72cb76 authored by Tadej Novak's avatar Tadej Novak
Browse files

Properly apply pt cut in analysis sequences

parent 98d1130b
No related branches found
No related tags found
14 merge requests!59674InDetPerformanceMonitoring with LumiBlock selection,!59383cppcheck in trigger code: Prefer prefix ++/-- operators for non-primitive types.,!58990Draft:Fixing bug in FTF config when running with Reco_tf,!58835DataQualityConfigurations: Modify L1Calo config for web display,!58791DataQualityConfigurations: Modify L1Calo config for web display,!58373Modification of V2.3 processing to work well with all clients,!58289New NVSI calibration,!58286New NVSI calibration,!58106Update NVSI example algorithm,!57937Draft: New nighlty test for trigger with a Run 4 single muon RDO,!57841Edits to ZDC signal processing in preparation for analysis of data from LHCf run,!57590Fixing LAr DT dumper,!57584Draft: LAr DB fixes,!57419Properly apply pt cut in analysis sequences
...@@ -297,14 +297,6 @@ def makeElectronWorkingPointSequence( seq, dataType, workingPoint, ...@@ -297,14 +297,6 @@ def makeElectronWorkingPointSequence( seq, dataType, workingPoint,
dynConfig = {'preselection' : lambda meta : "&&".join (meta["selectionDecorNamesOutput"])} ) dynConfig = {'preselection' : lambda meta : "&&".join (meta["selectionDecorNamesOutput"])} )
pass 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: # Set up the electron efficiency correction algorithm:
alg = createAlgorithm( 'CP::ElectronEfficiencyCorrectionAlg', alg = createAlgorithm( 'CP::ElectronEfficiencyCorrectionAlg',
'ElectronEfficiencyCorrectionAlg' + postfix ) 'ElectronEfficiencyCorrectionAlg' + postfix )
...@@ -327,3 +319,11 @@ def makeElectronWorkingPointSequence( seq, dataType, workingPoint, ...@@ -327,3 +319,11 @@ def makeElectronWorkingPointSequence( seq, dataType, workingPoint,
stageName = 'efficiency', stageName = 'efficiency',
dynConfig = {'preselection' : lambda meta : "&&".join (meta["selectionDecorNamesOutput"])} ) dynConfig = {'preselection' : lambda meta : "&&".join (meta["selectionDecorNamesOutput"])} )
pass 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"])} )
...@@ -294,17 +294,6 @@ def makePhotonWorkingPointSequence( seq, dataType, workingPoint, postfix = '', ...@@ -294,17 +294,6 @@ def makePhotonWorkingPointSequence( seq, dataType, workingPoint, postfix = '',
dynConfig = {'preselection' : lambda meta : "&&".join (meta["selectionDecorNamesOutput"])} ) dynConfig = {'preselection' : lambda meta : "&&".join (meta["selectionDecorNamesOutput"])} )
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',
metaConfig = {'selectionDecorNames' : [alg.selectionDecoration],
'selectionDecorNamesOutput' : [alg.selectionDecoration],
'selectionDecorCount' : [1]},
dynConfig = {'preselection' : lambda meta : "&&".join (meta["selectionDecorNamesOutput"])} )
# Set up the photon efficiency correction algorithm. # Set up the photon efficiency correction algorithm.
alg = createAlgorithm( 'CP::PhotonEfficiencyCorrectionAlg', alg = createAlgorithm( 'CP::PhotonEfficiencyCorrectionAlg',
'PhotonEfficiencyCorrectionAlg' + postfix ) 'PhotonEfficiencyCorrectionAlg' + postfix )
...@@ -327,3 +316,11 @@ def makePhotonWorkingPointSequence( seq, dataType, workingPoint, postfix = '', ...@@ -327,3 +316,11 @@ def makePhotonWorkingPointSequence( seq, dataType, workingPoint, postfix = '',
pass pass
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"])} )
...@@ -247,5 +247,5 @@ def makeMuonWorkingPointSequence( seq, dataType, workingPoint, postfix = '', ...@@ -247,5 +247,5 @@ def makeMuonWorkingPointSequence( seq, dataType, workingPoint, postfix = '',
alg.selectionDecoration = 'baselineSelection' + postfix + ',as_char' alg.selectionDecoration = 'baselineSelection' + postfix + ',as_char'
seq.append( alg, inputPropName = 'particles', seq.append( alg, inputPropName = 'particles',
stageName = 'selection', stageName = 'selection',
dynConfig = {'preselection' : lambda meta : "&&".join (meta["selectionDecorNamesOutput"])}) dynConfig = {'preselection' : lambda meta : "&&".join (meta["selectionDecorNames"])})
pass pass
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment