ATLAS Offline Software
Loading...
Searching...
No Matches
python.StandardJetMods Namespace Reference

Functions

 _jetname (jetdef, modspec)
 isMC (flags)
 _constitContainername (jetdef, modspec)

Variables

 stdJetModifiers = ldict()
 Sort
 Define the simple modifier setups here – those defined in JetRec.
 Filter
 Filter_ifnotESD
 Filter_calibThreshold
 Calib
 jetlog = Logging.logging.getLogger('JetStandardMods')
 ClusterMoments
 ECPSFrac
 Width
 CaloEnergies
 CaloEnergiesLargeR
 CaloEnergiesClus
 CaloQuality
 CaloQualityFE
 N90
 ConstitFourMom
 EMScaleMom
 JVF
 JVT
 NNJVT
 LArHVCorr
 OriginSetPV
 TrackMoments
 TrackSumMoments
 Charge
 QGTagging
 fJVT
 bJVT
 ConstitFrac
 groomMRatio
 JetPtAssociation
 jetiso
 jetisoTruth
 PartonTruthLabel
 JetDeltaRLabel
 JetGhostLabel
 JetDeltaRInitialLabel
 JetGhostInitialLabel
 JetQuarkChargeLabel
 JetTaggingTruthLabel
 JetPileupLabel
 nsubjettiness
 nsubjettinessR
 ktdr
 ktsplitter
 angularity
 dipolarity
 planarflow
 ktmassdrop
 ecorr
 ecorrR
 ecorrgeneral
 ecorrgeneralratios
 comshapes
 pull
 charge
 qw
 softdropobs
 qgtransformer
 toptransformer
 wtransformer
 wtransformer_massdec
 vr

Detailed Description

This module defines the standard JetModifier tools used in jet reco

Definitions are grouped in a dictionary of tool configurations using the helpers defined
in package configs.
This dict maps a modifier alias to the JetModifier config object
that in turn will be responsible for generating a configured tool.

The JetModifier config class is defined in JetDefinition.py 

 Args to the JetModifier constructor are:
   1. Tool Type (ignored if the helper is a custom one)
   2. Tool Name (ignored if the helper is a custom one)
   3. createfn : helper function which build the actual tool. If none, we just instantiate the tool type. 
   4. prereqs : Prerequisites  (default to []). Can also be a function which returns a list
   X. all other keyword arguments are directly interpreted as Property of the tool. 
       for ex, passing 'PtMin=10.' will configure the tool as in 'tool.PtMin = 10'
       we can pass function as the value : 
         'JetContainerName=nameFunc' will configure as in 'tool.JetContainerName=nameFunc(jetdef, modspec)'

        --> should this be by default? prefer to avoid ignored args

Function Documentation

◆ _constitContainername()

python.StandardJetMods._constitContainername ( jetdef,
modspec )
protected
Returns the exact constituent container name used to build jetdef

Definition at line 87 of file StandardJetMods.py.

87def _constitContainername(jetdef,modspec):
88 """Returns the exact constituent container name used to build jetdef"""
89 constitdef = jetdef.inputdef
90 containername = constitdef.containername(jetdef).split(':')[-1] if callable(constitdef.containername) else constitdef.containername
91 return containername
92
93
94# Standard jet moments
std::vector< std::string > split(const std::string &s, const std::string &t=":")
Definition hcg.cxx:177

◆ _jetname()

python.StandardJetMods._jetname ( jetdef,
modspec )
protected

Definition at line 77 of file StandardJetMods.py.

77def _jetname(jetdef,modspec):
78 return jetdef.fullname()
79

◆ isMC()

python.StandardJetMods.isMC ( flags)
A simple filter function for  testing if we're running in MC
returns (bool, str) where the str contains an explanation of why the bool is False.
(probably worth re-allocating somehere else)

Definition at line 80 of file StandardJetMods.py.

80def isMC(flags):
81 """A simple filter function for testing if we're running in MC
82 returns (bool, str) where the str contains an explanation of why the bool is False.
83 (probably worth re-allocating somehere else)"""
84 return flags.Input.isMC or flags.Overlay.DataOverlay, "Input file is not MC"
85
86

Variable Documentation

◆ angularity

python.StandardJetMods.angularity

Definition at line 293 of file StandardJetMods.py.

◆ bJVT

python.StandardJetMods.bJVT

Definition at line 176 of file StandardJetMods.py.

◆ Calib

python.StandardJetMods.Calib

Definition at line 58 of file StandardJetMods.py.

◆ CaloEnergies

python.StandardJetMods.CaloEnergies

Definition at line 105 of file StandardJetMods.py.

◆ CaloEnergiesClus

python.StandardJetMods.CaloEnergiesClus

Definition at line 117 of file StandardJetMods.py.

◆ CaloEnergiesLargeR

python.StandardJetMods.CaloEnergiesLargeR

Definition at line 110 of file StandardJetMods.py.

◆ CaloQuality

python.StandardJetMods.CaloQuality

Definition at line 122 of file StandardJetMods.py.

◆ CaloQualityFE

python.StandardJetMods.CaloQualityFE

Definition at line 126 of file StandardJetMods.py.

◆ Charge

python.StandardJetMods.Charge

Definition at line 161 of file StandardJetMods.py.

◆ charge

python.StandardJetMods.charge

Definition at line 311 of file StandardJetMods.py.

◆ ClusterMoments

python.StandardJetMods.ClusterMoments

Definition at line 100 of file StandardJetMods.py.

◆ comshapes

python.StandardJetMods.comshapes

Definition at line 307 of file StandardJetMods.py.

◆ ConstitFourMom

python.StandardJetMods.ConstitFourMom

Definition at line 134 of file StandardJetMods.py.

◆ ConstitFrac

python.StandardJetMods.ConstitFrac

Definition at line 181 of file StandardJetMods.py.

◆ dipolarity

python.StandardJetMods.dipolarity

Definition at line 295 of file StandardJetMods.py.

◆ ecorr

python.StandardJetMods.ecorr

Definition at line 301 of file StandardJetMods.py.

◆ ecorrgeneral

python.StandardJetMods.ecorrgeneral

Definition at line 304 of file StandardJetMods.py.

◆ ecorrgeneralratios

python.StandardJetMods.ecorrgeneralratios

Definition at line 305 of file StandardJetMods.py.

◆ ecorrR

python.StandardJetMods.ecorrR

Definition at line 302 of file StandardJetMods.py.

◆ ECPSFrac

python.StandardJetMods.ECPSFrac

Definition at line 101 of file StandardJetMods.py.

◆ EMScaleMom

python.StandardJetMods.EMScaleMom

Definition at line 136 of file StandardJetMods.py.

◆ Filter

python.StandardJetMods.Filter

Definition at line 34 of file StandardJetMods.py.

◆ Filter_calibThreshold

python.StandardJetMods.Filter_calibThreshold

Definition at line 43 of file StandardJetMods.py.

◆ Filter_ifnotESD

python.StandardJetMods.Filter_ifnotESD

Definition at line 39 of file StandardJetMods.py.

◆ fJVT

python.StandardJetMods.fJVT

Definition at line 171 of file StandardJetMods.py.

◆ groomMRatio

python.StandardJetMods.groomMRatio

Definition at line 185 of file StandardJetMods.py.

◆ JetDeltaRInitialLabel

python.StandardJetMods.JetDeltaRInitialLabel

Definition at line 246 of file StandardJetMods.py.

◆ JetDeltaRLabel

python.StandardJetMods.JetDeltaRLabel

Definition at line 230 of file StandardJetMods.py.

◆ JetGhostInitialLabel

python.StandardJetMods.JetGhostInitialLabel

Definition at line 254 of file StandardJetMods.py.

◆ JetGhostLabel

python.StandardJetMods.JetGhostLabel

Definition at line 238 of file StandardJetMods.py.

◆ jetiso

python.StandardJetMods.jetiso

Definition at line 198 of file StandardJetMods.py.

◆ jetisoTruth

python.StandardJetMods.jetisoTruth

Definition at line 206 of file StandardJetMods.py.

◆ jetlog

python.StandardJetMods.jetlog = Logging.logging.getLogger('JetStandardMods')

Definition at line 64 of file StandardJetMods.py.

◆ JetPileupLabel

python.StandardJetMods.JetPileupLabel

Definition at line 273 of file StandardJetMods.py.

◆ JetPtAssociation

python.StandardJetMods.JetPtAssociation

Definition at line 189 of file StandardJetMods.py.

◆ JetQuarkChargeLabel

python.StandardJetMods.JetQuarkChargeLabel

Definition at line 261 of file StandardJetMods.py.

◆ JetTaggingTruthLabel

python.StandardJetMods.JetTaggingTruthLabel

Definition at line 267 of file StandardJetMods.py.

◆ JVF

python.StandardJetMods.JVF

Definition at line 140 of file StandardJetMods.py.

◆ JVT

python.StandardJetMods.JVT

Definition at line 144 of file StandardJetMods.py.

◆ ktdr

python.StandardJetMods.ktdr

Definition at line 289 of file StandardJetMods.py.

◆ ktmassdrop

python.StandardJetMods.ktmassdrop

Definition at line 299 of file StandardJetMods.py.

◆ ktsplitter

python.StandardJetMods.ktsplitter

Definition at line 291 of file StandardJetMods.py.

◆ LArHVCorr

python.StandardJetMods.LArHVCorr

Definition at line 150 of file StandardJetMods.py.

◆ N90

python.StandardJetMods.N90

Definition at line 131 of file StandardJetMods.py.

◆ NNJVT

python.StandardJetMods.NNJVT

Definition at line 147 of file StandardJetMods.py.

◆ nsubjettiness

python.StandardJetMods.nsubjettiness

Definition at line 284 of file StandardJetMods.py.

◆ nsubjettinessR

python.StandardJetMods.nsubjettinessR

Definition at line 286 of file StandardJetMods.py.

◆ OriginSetPV

python.StandardJetMods.OriginSetPV

Definition at line 152 of file StandardJetMods.py.

◆ PartonTruthLabel

python.StandardJetMods.PartonTruthLabel

Definition at line 225 of file StandardJetMods.py.

◆ planarflow

python.StandardJetMods.planarflow

Definition at line 297 of file StandardJetMods.py.

◆ pull

python.StandardJetMods.pull

Definition at line 309 of file StandardJetMods.py.

◆ QGTagging

python.StandardJetMods.QGTagging

Definition at line 164 of file StandardJetMods.py.

◆ qgtransformer

python.StandardJetMods.qgtransformer

Definition at line 322 of file StandardJetMods.py.

◆ qw

python.StandardJetMods.qw

Definition at line 313 of file StandardJetMods.py.

◆ softdropobs

python.StandardJetMods.softdropobs

Definition at line 315 of file StandardJetMods.py.

◆ Sort

python.StandardJetMods.Sort

Define the simple modifier setups here – those defined in JetRec.

Definition at line 33 of file StandardJetMods.py.

◆ stdJetModifiers

python.StandardJetMods.stdJetModifiers = ldict()

Definition at line 28 of file StandardJetMods.py.

◆ toptransformer

python.StandardJetMods.toptransformer

Definition at line 337 of file StandardJetMods.py.

◆ TrackMoments

python.StandardJetMods.TrackMoments

Definition at line 154 of file StandardJetMods.py.

◆ TrackSumMoments

python.StandardJetMods.TrackSumMoments

Definition at line 158 of file StandardJetMods.py.

◆ vr

python.StandardJetMods.vr

Definition at line 380 of file StandardJetMods.py.

◆ Width

python.StandardJetMods.Width

Definition at line 102 of file StandardJetMods.py.

◆ wtransformer

python.StandardJetMods.wtransformer

Definition at line 352 of file StandardJetMods.py.

◆ wtransformer_massdec

python.StandardJetMods.wtransformer_massdec

Definition at line 367 of file StandardJetMods.py.