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

Public Member Functions

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

Detailed Description

ConfigBlock for particle-level truth neutrinos

Definition at line 6 of file ParticleLevelNeutrinosConfig.py.

Constructor & Destructor Documentation

◆ __init__()

def ParticleLevelNeutrinosConfig.ParticleLevelNeutrinosBlock.__init__ (   self)

Definition at line 9 of file ParticleLevelNeutrinosConfig.py.

9  def __init__(self):
10  super(ParticleLevelNeutrinosBlock, self).__init__()
11  self.addOption('containerName', 'TruthNeutrinos', type=str,
12  info='the name of the input truth neutrinos container')
13  self.addOption('selectionName', '', type=str,
14  info='the name of the selection to create. The default is "",'
15  ' which applies the selection to all truth neutrinos.')
16  self.addOption('isolated', True, type=bool,
17  info='select only truth neutrinos that are isolated.')
18  self.addOption('notFromTau', True, type=bool,
19  info='select only truth neutrinos that did not orginate '
20  'from a tau decay.')
21  # Always skip on data
22  self.setOptionValue('skipOnData', True)
23 

Member Function Documentation

◆ makeAlgs()

def ParticleLevelNeutrinosConfig.ParticleLevelNeutrinosBlock.makeAlgs (   self,
  config 
)

Definition at line 24 of file ParticleLevelNeutrinosConfig.py.

24  def makeAlgs(self, config):
25  config.setSourceName (self.containerName, self.containerName)
26 
27  # decorate the missing elements of the 4-vector so we can save it later
28  alg = config.createAlgorithm('CP::ParticleLevelPtEtaPhiDecoratorAlg', 'ParticleLevelPtEtaPhiEDecoratorNeutrinos' + self.selectionName)
29  alg.particles = self.containerName
30 
31  # check for prompt isolation and possible origin from tau decays
32  alg = config.createAlgorithm('CP::ParticleLevelIsolationAlg', 'ParticleLevelIsolationNeutrinos' + self.selectionName)
33  alg.particles = self.containerName
34  alg.isolation = 'isIsolated' + self.selectionName if self.isolated else 'isIsolatedButNotRequired' + self.selectionName
35  alg.notTauOrigin = 'notFromTau' + self.selectionName if self.notFromTau else 'notFromTauButNotRequired' + self.selectionName
36  alg.checkType = 'Neutrino'
37 
38  if self.isolated:
39  config.addSelection (self.containerName, self.selectionName, alg.isolation+',as_char')
40  if self.notFromTau:
41  config.addSelection (self.containerName, self.selectionName, alg.notTauOrigin+',as_char')
42 
43  # output branches to be scheduled only once
44  if ParticleLevelNeutrinosBlock.get_instance_count() == 1:
45  outputVars = [
46  ['pt', 'pt'],
47  ['eta', 'eta'],
48  ['phi', 'phi'],
49  ['e', 'e'],
50  ]
51  for decoration, branch in outputVars:
52  config.addOutputVar (self.containerName, decoration, branch, noSys=True)

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