ATLAS Offline Software
Functions | Variables
python.StandardJetMods Namespace Reference

Functions

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

Variables

 stdJetModifiers = ldict()
 
 Sort
 Define the simple modifier setups here – those defined in JetRec. More...
 
 Filter
 
 Filter_ifnotESD
 
 Filter_calibThreshold
 
 Calib
 
 PartonTruthLabel
 
 TruthPartonDR
 
 JetDeltaRLabel
 
 JetGhostLabel
 
 JetTaggingTruthLabel
 
 JetPileupLabel
 
 nsubjettiness
 
 nsubjettinessR
 
 ktdr
 
 ktsplitter
 
 angularity
 
 dipolarity
 
 planarflow
 
 ktmassdrop
 
 ecorr
 
 ecorrR
 
 ecorrgeneral
 
 ecorrgeneralratios
 
 comshapes
 
 pull
 
 charge
 
 qw
 
 softdropobs
 
 vr
 

Function Documentation

◆ _jetname()

def python.StandardJetMods._jetname (   jetdef,
  modspec 
)
private

Definition at line 77 of file StandardJetMods.py.

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

◆ isMC()

def 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.

80 def 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, "Input file is not MC"
85 
86 
87 # Standard jet moments
88 try:
89  from JetMomentTools import JetMomentToolsConfig
90  stdJetModifiers.update(
91 
92  # Easy cases, no special config or prereqs, just default tool config
93  ClusterMoments = JetModifier("JetClusterMomentsTool", "clsmoms", JetContainer = _jetname),
94  ECPSFrac = JetModifier("JetECPSFractionTool", "ecpsfrac", JetContainer = _jetname),
95  Width = JetModifier("JetWidthTool", "width", JetContainer = _jetname),
96 
97  # More complex cases here
98  CaloEnergies = JetModifier("JetCaloEnergies", "jetens",
99  prereqs=["mod:EMScaleMom"],
100  Calculations=["EMFrac", "HECFrac", "PSFrac", "FracSamplingMax"], JetContainer = _jetname,
101  ),
102 
103  CaloEnergiesLargeR = JetModifier("JetCaloEnergies", "jetenslargeR",
104  prereqs=["mod:EMScaleMom"],
105  Calculations=["EMFrac", "HECFrac", "PSFrac", "EM3Frac", "Tile0Frac", "EffNClusts"], JetContainer = _jetname,
106  calcClusterBasedVars = True,
107  ),
108 
109  # CaloEnergiesClus is only relevant for FE-based jet collections
110  CaloEnergiesClus = JetModifier("JetCaloEnergies", "jetensclus",
111  prereqs=["mod:EMScaleMom"],
112  Calculations=["EMFrac", "HECFrac", "PSFrac", "FracSamplingMax"], JetContainer = _jetname,
113  calcClusterBasedVars = True),
114 
115  CaloQuality = JetModifier("JetCaloQualityTool", "caloqual",
116  TimingCuts = [5,10],
117  Calculations = ["LArQuality", "N90Constituents", "NegativeE", "Timing", "HECQuality", "Centroid", "AverageLArQF", "BchCorrCell"],JetContainer = _jetname),
118 
119  CaloQualityFE = JetModifier("JetCaloQualityToolFE", "caloqualFE",
120  TimingCuts = [5,10],
121  ThresholdCuts = [90],
122  Calculations = ["LArQuality", "NegativeE", "Timing", "HECQuality", "Centroid", "AverageLArQF", "BchCorrCell"],JetContainer = _jetname),
123 
124  N90 = JetModifier("JetCaloQualityTool", "n90",
125  Calculations = ["N90Constituents"],JetContainer = _jetname),
126 
127  ConstitFourMom = JetModifier("JetConstitFourMomTool", "constitfourmom_basename",
128  createfn=JetMomentToolsConfig.getConstitFourMomTool,),
129  EMScaleMom = JetModifier("JetEMScaleMomTool", "emscalemom_basename",
130  createfn=JetMomentToolsConfig.getEMScaleMomTool,
131  JetContainer = _jetname),
132 
133  JVF = JetModifier("JetVertexFractionTool", "jvf",
134  createfn=JetMomentToolsConfig.getJVFTool,
135  prereqs = [inputsFromContext("TVA"), "mod:TrackMoments", inputsFromContext("Vertices")],
136  JetContainer = _jetname),
137  JVT = JetModifier("JetVertexTaggerTool", "jvt",
138  createfn=JetMomentToolsConfig.getJVTTool,
139  prereqs = [ "mod:JVF" ],JetContainer = _jetname),
140  NNJVT = JetModifier("JetVertexNNTagger", "nnjvt",
141  createfn=JetMomentToolsConfig.getNNJvtTool,
142  prereqs = [ "mod:JVF" ],JetContainer = _jetname),
143  LArHVCorr = JetModifier("JetLArHVTool", "larhvcorr",
144  prereqs = ["mod:EMScaleMom"],JetContainer = _jetname),
145  OriginSetPV = JetModifier("JetOriginCorrectionTool", "origin_setpv",
146  prereqs = [ "mod:JVF" ],JetContainer = _jetname, OnlyAssignPV=True),
147  TrackMoments = JetModifier("JetTrackMomentsTool", "trkmoms",
148  createfn=JetMomentToolsConfig.getTrackMomentsTool,
149  prereqs = [ inputsFromContext("TVA"),"ghost:Track" ],JetContainer = _jetname),
150 
151  TrackSumMoments = JetModifier("JetTrackSumMomentsTool", "trksummoms",
152  createfn=JetMomentToolsConfig.getTrackSumMomentsTool,
153  prereqs = [ inputsFromContext("TVA"),"ghost:Track" ],JetContainer = _jetname),
154  Charge = JetModifier("JetChargeTool", "jetcharge",
155  prereqs = [ "ghost:Track" ]),
156 
157  QGTagging = JetModifier("JetQGTaggerVariableTool", "qgtagging",
158  createfn=JetMomentToolsConfig.getQGTaggingTool,
159  prereqs = lambda _,jetdef :
160  [inputsFromContext("TVA"),"mod:TrackMoments"] +
161  (["mod:JetPtAssociation"] if not isMC(jetdef._cflags) else []),
162  JetContainer = _jetname),
163 
164  fJVT = JetModifier("JetForwardPFlowJvtTool", "fJVT",
165  createfn=JetMomentToolsConfig.getPFlowfJVTTool,
166  prereqs = [inputsFromContext("TVA"),inputsFromContext("EventDensity"),inputsFromContext("Vertices"),"mod:NNJVT"],
167  JetContainer = _jetname),
168 
169  bJVT = JetModifier("JetBalancePFlowJvtTool", "bJVT",
170  createfn=JetMomentToolsConfig.getPFlowbJVTTool,
171  prereqs = [inputsFromContext("EventDensity"),inputsFromContext("Vertices"),"mod:NNJVT"],
172  JetContainer = _jetname),
173 
174  ConstitFrac = JetModifier("JetConstituentFrac", "constitFrac",
175  JetContainer = _jetname,
176  ),
177 
178  groomMRatio = JetModifier("JetGroomMRatio", "groomMRatio",
179  JetContainer = _jetname,
180  ),
181 
182  JetPtAssociation = JetModifier("JetPtAssociationTool", "jetPtAssociation",
183  filterfn=isMC,
184  createfn=JetMomentToolsConfig.getJetPtAssociationTool,
185  prereqs=["ghost:Truth"],
186  JetContainer = _jetname
187  ),
188 
189  )

Variable Documentation

◆ angularity

python.StandardJetMods.angularity

Definition at line 248 of file StandardJetMods.py.

◆ Calib

python.StandardJetMods.Calib

Definition at line 60 of file StandardJetMods.py.

◆ charge

python.StandardJetMods.charge

Definition at line 266 of file StandardJetMods.py.

◆ comshapes

python.StandardJetMods.comshapes

Definition at line 262 of file StandardJetMods.py.

◆ dipolarity

python.StandardJetMods.dipolarity

Definition at line 250 of file StandardJetMods.py.

◆ ecorr

python.StandardJetMods.ecorr

Definition at line 256 of file StandardJetMods.py.

◆ ecorrgeneral

python.StandardJetMods.ecorrgeneral

Definition at line 259 of file StandardJetMods.py.

◆ ecorrgeneralratios

python.StandardJetMods.ecorrgeneralratios

Definition at line 260 of file StandardJetMods.py.

◆ ecorrR

python.StandardJetMods.ecorrR

Definition at line 257 of file StandardJetMods.py.

◆ Filter

python.StandardJetMods.Filter

Definition at line 36 of file StandardJetMods.py.

◆ Filter_calibThreshold

python.StandardJetMods.Filter_calibThreshold

Definition at line 45 of file StandardJetMods.py.

◆ Filter_ifnotESD

python.StandardJetMods.Filter_ifnotESD

Definition at line 41 of file StandardJetMods.py.

◆ JetDeltaRLabel

python.StandardJetMods.JetDeltaRLabel

Definition at line 208 of file StandardJetMods.py.

◆ JetGhostLabel

python.StandardJetMods.JetGhostLabel

Definition at line 216 of file StandardJetMods.py.

◆ JetPileupLabel

python.StandardJetMods.JetPileupLabel

Definition at line 229 of file StandardJetMods.py.

◆ JetTaggingTruthLabel

python.StandardJetMods.JetTaggingTruthLabel

Definition at line 224 of file StandardJetMods.py.

◆ ktdr

python.StandardJetMods.ktdr

Definition at line 244 of file StandardJetMods.py.

◆ ktmassdrop

python.StandardJetMods.ktmassdrop

Definition at line 254 of file StandardJetMods.py.

◆ ktsplitter

python.StandardJetMods.ktsplitter

Definition at line 246 of file StandardJetMods.py.

◆ nsubjettiness

python.StandardJetMods.nsubjettiness

Definition at line 240 of file StandardJetMods.py.

◆ nsubjettinessR

python.StandardJetMods.nsubjettinessR

Definition at line 241 of file StandardJetMods.py.

◆ PartonTruthLabel

python.StandardJetMods.PartonTruthLabel

Definition at line 198 of file StandardJetMods.py.

◆ planarflow

python.StandardJetMods.planarflow

Definition at line 252 of file StandardJetMods.py.

◆ pull

python.StandardJetMods.pull

Definition at line 264 of file StandardJetMods.py.

◆ qw

python.StandardJetMods.qw

Definition at line 268 of file StandardJetMods.py.

◆ softdropobs

python.StandardJetMods.softdropobs

Definition at line 270 of file StandardJetMods.py.

◆ Sort

python.StandardJetMods.Sort

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

Definition at line 35 of file StandardJetMods.py.

◆ stdJetModifiers

python.StandardJetMods.stdJetModifiers = ldict()

Definition at line 30 of file StandardJetMods.py.

◆ TruthPartonDR

python.StandardJetMods.TruthPartonDR

Definition at line 202 of file StandardJetMods.py.

◆ vr

python.StandardJetMods.vr

Definition at line 276 of file StandardJetMods.py.

python.StandardJetContext.inputsFromContext
def inputsFromContext(inputKey, prefix="", suffix="")
Definition: StandardJetContext.py:106
python.StandardJetMods.isMC
def isMC(flags)
Definition: StandardJetMods.py:80
python.StandardJetMods._jetname
def _jetname(jetdef, modspec)
Definition: StandardJetMods.py:77