ATLAS Offline Software
TriggerJetMods.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
2 from JetRecConfig.JetDefinition import JetModifier
3 
4 
7 
8 
9 # Many JetMoment tools need to know the name of the container they operate on.
10 # We set the function below as the 'JetContainer' property so the config system
11 # can assign the right name to the c++ tool.
12 def _jetname(jetdef,modspec):
13  return jetdef.fullname()
14 
15 from JetRecConfig.StandardJetMods import stdJetModifiers
16 stdJetModifiers.update(
17 
18  # No need for the special momentum scales, just copy the basic four-vec
19  # to "DetectorEtaPhi", because we're not doing origin correction
20  # and certainly not with the offline collection names
21  ConstitFourMom_copy = JetModifier("JetConstitFourMomTool", "constitfourmom_copy",
22  JetScaleNames = ["DetectorEtaPhi"],
23  AltConstitColls = [""],
24  AltConstitScales = [0],
25  AltJetScales = ["JetConstitScaleMomentum"]
26  ),
27  Cleaning = JetModifier("JetCleaningTool","jetcleaning_{modspec}",
28  # This allows to set the modifier using a string like
29  # "Cleaning:CLEAN_LEVEL" as defined in JetCleaningTool
30  # (example "Cleaning:LooseBad")
31  CutLevel=lambda _, modspec: str(modspec),
32  prereqs=[f"mod:{mod}" for mod in ['CaloQuality']],
33  JetContainer = _jetname
34  ),
35 )
python.HLT.Jet.TriggerJetMods._jetname
def _jetname(jetdef, modspec)
Special modifier setups used by jet trigger, but not in offline We just extend the stdJetModifiers fr...
Definition: TriggerJetMods.py:12
str
Definition: BTagTrackIpAccessor.cxx:11