Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Public Member Functions | List of all members
ParticleLevelJetsConfig.ParticleLevelJetsBlock Class Reference
Inheritance diagram for ParticleLevelJetsConfig.ParticleLevelJetsBlock:
Collaboration diagram for ParticleLevelJetsConfig.ParticleLevelJetsBlock:

Public Member Functions

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

Detailed Description

ConfigBlock for particle-level truth jets

Definition at line 6 of file ParticleLevelJetsConfig.py.

Constructor & Destructor Documentation

◆ __init__()

def ParticleLevelJetsConfig.ParticleLevelJetsBlock.__init__ (   self)

Definition at line 9 of file ParticleLevelJetsConfig.py.

9  def __init__(self):
10  super(ParticleLevelJetsBlock, self).__init__()
11  self.addOption('containerName', 'AntiKt4TruthDressedWZJets', type=str,
12  info='the name of the input truth jets container')
13  self.addOption('outputTruthLabelIDs', False, type=bool,
14  info='Enable or disable HadronConeExclTruthLabelID and PartonTruthLabelID decorations')
15  # Always skip on data
16  self.setOptionValue('skipOnData', True)
17 

Member Function Documentation

◆ makeAlgs()

def ParticleLevelJetsConfig.ParticleLevelJetsBlock.makeAlgs (   self,
  config 
)

Definition at line 18 of file ParticleLevelJetsConfig.py.

18  def makeAlgs(self, config):
19  config.setSourceName (self.containerName, self.containerName)
20 
21  # count the number of heavy-flavour jets for normalisation of e.g. V+HF samples
22  if "AntiKt4" in self.containerName:
23  alg = config.createAlgorithm('CP::ParticleLevelJetsAlg',
24  'ParticleLevelJetsAlg' + self.containerName,
25  reentrant=True)
26  alg.jets = self.containerName
27 
28  # decorate the energy so we can save it later
29  alg = config.createAlgorithm( 'CP::AsgEnergyDecoratorAlg', 'ParticleLevelEnergyDecorator' + self.containerName )
30  alg.particles = self.containerName
31 
32  outputVars = [
33  ['pt', 'pt'],
34  ['eta', 'eta'],
35  ['phi', 'phi'],
36  ['e_%SYS%', 'e'],
37  ['GhostBHadronsFinalCount', 'nGhosts_bHadron'],
38  ['GhostCHadronsFinalCount', 'nGhosts_cHadron'],
39  ]
40 
41  if self.outputTruthLabelIDs:
42  outputVars += [
43  ['HadronConeExclTruthLabelID', 'HadronConeExclTruthLabelID'],
44  ['PartonTruthLabelID', 'PartonTruthLabelID'],
45  ]
46 
47  for decoration, branch in outputVars:
48  config.addOutputVar (self.containerName, decoration, branch, noSys=True)
49 
50  if "AntiKt4" in self.containerName:
51  config.addOutputVar('EventInfo', 'num_truth_bjets_nocuts', 'num_truth_bjets_nocuts', noSys=True)
52  config.addOutputVar('EventInfo', 'num_truth_cjets_nocuts', 'num_truth_cjets_nocuts', 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