ATLAS Offline Software
Public Member Functions | List of all members
ParticleLevelOverlapRemovalConfig.ParticleLevelOverlapRemovalBlock Class Reference
Inheritance diagram for ParticleLevelOverlapRemovalConfig.ParticleLevelOverlapRemovalBlock:
Collaboration diagram for ParticleLevelOverlapRemovalConfig.ParticleLevelOverlapRemovalBlock:

Public Member Functions

def __init__ (self)
 
def makeAlgs (self, config)
 

Detailed Description

ConfigBlock for particle-level truth taus

Definition at line 6 of file ParticleLevelOverlapRemovalConfig.py.

Constructor & Destructor Documentation

◆ __init__()

def ParticleLevelOverlapRemovalConfig.ParticleLevelOverlapRemovalBlock.__init__ (   self)

Definition at line 9 of file ParticleLevelOverlapRemovalConfig.py.

9  def __init__(self):
10  super(ParticleLevelOverlapRemovalBlock, self).__init__()
11  self.addOption('jets', '', type=str,
12  info ='the name of the input truth jets container, in the format "container" or "container.selection".')
13  self.addOption('electrons', '', type=str,
14  info='the name of the input truth electrons container, in the format "container" or "container.selection".')
15  self.addOption('muons', '', type=str,
16  info='the name of the input truth muons container, in the format "container" or "container.selection".')
17  self.addOption('photons', '', type=str,
18  info='the name of the input truth photons container, in the format "container" or "container.selection".')
19  self.addOption('label', 'passesOR', type=str,
20  info='the name of the decoration to apply to all particles passing OR')
21  self.addOption('useDressedProperties', True, type=bool,
22  info='whether to use dressed electron and muon kinematics rather than simple P4 kinematics')
23  self.addOption('useRapidityForDeltaR', True, type=bool,
24  info='whether to use rapidity instead of pseudo-rapidity for the calculation of DeltaR')
25  # Always skip on data
26  self.setOptionValue('skipOnData', True)
27 

Member Function Documentation

◆ makeAlgs()

def ParticleLevelOverlapRemovalConfig.ParticleLevelOverlapRemovalBlock.makeAlgs (   self,
  config 
)

Definition at line 28 of file ParticleLevelOverlapRemovalConfig.py.

28  def makeAlgs(self, config):
29  alg = config.createAlgorithm('CP::ParticleLevelOverlapRemovalAlg', 'ParticleLevelOverlapRemoval')
30  alg.useDressedProperties = self.useDressedProperties
31  alg.useRapidityForDeltaR = self.useRapidityForDeltaR
32  alg.labelOR = self.label
33  if self.electrons:
34  alg.electrons, alg.electronSelection = config.readNameAndSelection (self.electrons)
35  alg.doJetElectronOR = True
36  config.addSelection (self.electrons, '', alg.labelOR + ',as_char')
37  if self.muons:
38  alg.muons, alg.muonSelection = config.readNameAndSelection (self.muons)
39  alg.doJetMuonOR = True
40  config.addSelection (self.muons, '', alg.labelOR + ',as_char')
41  if self.photons:
42  alg.photons, alg.photonSelection = config.readNameAndSelection (self.photons)
43  alg.doJetPhotonOR = True
44  config.addSelection (self.photons, '', alg.labelOR + ',as_char')
45  if self.jets:
46  alg.jets, alg.jetSelection = config.readNameAndSelection (self.jets)
47  config.addSelection (self.jets, '', alg.labelOR + ',as_char')
48  else:
49  raise ValueError('Particle-level overlap removal needs the jet container to be run!')

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