ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
python.AsgAnalysisConfig.PtEtaSelectionBlock Class Reference
Inheritance diagram for python.AsgAnalysisConfig.PtEtaSelectionBlock:
Collaboration diagram for python.AsgAnalysisConfig.PtEtaSelectionBlock:

Public Member Functions

def __init__ (self, containerName='', selectionName='')
 
def makeAlgs (self, config)
 

Public Attributes

 selectionDecoration
 

Detailed Description

the ConfigBlock for a pt-eta selection

Definition at line 333 of file AsgAnalysisConfig.py.

Constructor & Destructor Documentation

◆ __init__()

def python.AsgAnalysisConfig.PtEtaSelectionBlock.__init__ (   self,
  containerName = '',
  selectionName = '' 
)

Definition at line 336 of file AsgAnalysisConfig.py.

336  def __init__ (self, containerName='', selectionName='') :
337  super (PtEtaSelectionBlock, self).__init__ ()
338  self.addOption ('containerName', containerName, type=str,
339  noneAction='error',
340  info="the name of the input container.")
341  self.addOption ('selectionName', selectionName, type=str,
342  noneAction='error',
343  info="the name of the selection to append this to. The default is "
344  "'' (empty string), meaning that the cuts are applied to every "
345  "object within the container. Specifying a name (e.g. loose) "
346  "applies the cut only to those object who also pass that selection.")
347  self.addOption ('minPt', None, type=float,
348  info="minimum pT value to cut on, in MeV. No default value.")
349  self.addOption ('maxPt', None, type=float,
350  info="maximum pT value to cut on, in MeV. No default value.")
351  self.addOption ('minEta', None, type=float,
352  info="minimum |eta| value to cut on. No default value.")
353  self.addOption ('maxEta', None, type=float,
354  info="maximum |eta| value to cut on. No default value.")
355  self.addOption ('etaGapLow', None, type=float,
356  info="low end of the |eta| gap. No default value.")
357  self.addOption ('etaGapHigh', None, type=float,
358  info="high end of the |eta| gap. No default value.")
359  self.addOption ('selectionDecoration', None, type=str,
360  info="the name of the decoration to set. If 'None', will be set "
361  "to 'selectPtEta' followed by the selection name.")
362  self.addOption ('useClusterEta', False, type=bool,
363  info="whether to use the cluster eta (etaBE(2)) instead of the object "
364  "eta (for electrons and photons). The default is False.")
365  self.addOption ('useDressedProperties', False, type=bool,
366  info="whether to use the dressed kinematic properties "
367  "(for truth particles only). The default is False.")
368 
369 

Member Function Documentation

◆ makeAlgs()

def python.AsgAnalysisConfig.PtEtaSelectionBlock.makeAlgs (   self,
  config 
)

Definition at line 370 of file AsgAnalysisConfig.py.

370  def makeAlgs (self, config) :
371 
372  alg = config.createAlgorithm( 'CP::AsgSelectionAlg', 'PtEtaSelectionAlg' + self.containerName + self.selectionName )
373  config.addPrivateTool( 'selectionTool', 'CP::AsgPtEtaSelectionTool' )
374  if self.minPt is not None :
375  alg.selectionTool.minPt = self.minPt
376  if self.maxPt is not None:
377  alg.selectionTool.maxPt = self.maxPt
378  if self.minEta is not None:
379  alg.selectionTool.minEta = self.minEta
380  if self.maxEta is not None :
381  alg.selectionTool.maxEta = self.maxEta
382  if self.etaGapLow is not None:
383  alg.selectionTool.etaGapLow = self.etaGapLow
384  if self.etaGapHigh is not None:
385  alg.selectionTool.etaGapHigh = self.etaGapHigh
386  if self.selectionDecoration is None:
387  self.selectionDecoration = 'selectPtEta' + (f'_{self.selectionName}' if self.selectionName else '')
388  alg.selectionTool.useClusterEta = self.useClusterEta
389  alg.selectionTool.useDressedProperties = self.useDressedProperties
390  alg.selectionDecoration = self.selectionDecoration
391  alg.particles = config.readName (self.containerName)
392  alg.preselection = config.getPreselection (self.containerName, '')
393  config.addSelection (self.containerName, self.selectionName, alg.selectionDecoration)
394 
395 
396 

Member Data Documentation

◆ selectionDecoration

python.AsgAnalysisConfig.PtEtaSelectionBlock.selectionDecoration

Definition at line 387 of file AsgAnalysisConfig.py.


The documentation for this class was generated from the following file:
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18