Skip to content
Snippets Groups Projects

Make maxEta configurable in muon analysis configs

Merged Thomas Strebler requested to merge tstreble-main-patch-65a8 into main
All threads resolved!
2 files
+ 7
4
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -16,6 +16,7 @@ class MuonCalibrationConfig (ConfigBlock):
self.addOption ('ptSelectionOutput', False, type=bool)
self.addOption ('trackSelection', True, type=bool)
self.addOption ('recalibratePhyslite', True, type=bool)
self.addOption ('maxEta', 2.7, type=float)
def makeAlgs (self, config) :
@@ -34,7 +35,7 @@ class MuonCalibrationConfig (ConfigBlock):
alg = config.createAlgorithm( 'CP::AsgSelectionAlg',
'MuonEtaCutAlg' + self.postfix )
config.addPrivateTool( 'selectionTool', 'CP::AsgPtEtaSelectionTool' )
alg.selectionTool.maxEta = 2.7
alg.selectionTool.maxEta = self.maxEta
alg.selectionDecoration = 'selectEta' + self.postfix + ',as_bits'
alg.particles = config.readName (self.containerName)
alg.preselection = config.getPreselection (self.containerName, '')
Loading