ATLAS Offline Software
Public Member Functions | 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)
 

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', 'selectPtEta', type=str,
360  info="the name of the decoration to set.")
361  self.addOption ('useClusterEta', False, type=bool,
362  info="whether to use the cluster eta (etaBE(2)) instead of the object "
363  "eta (for electrons and photons). The default is False.")
364  self.addOption ('useDressedProperties', False, type=bool,
365  info="whether to use the dressed kinematic properties "
366  "(for truth particles only). The default is False.")
367 
368 

Member Function Documentation

◆ makeAlgs()

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

Definition at line 369 of file AsgAnalysisConfig.py.

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

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