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

Functions

 standardReco (input)
 _trackParticleInputsExist (flags)
 List of standard input sources for jets.
 _muonSegmentInputsExist (flags)
 _unassocMuonSegmentInputsExist (flags)
 _largeRTracksExist (flags)
 getCaloClusterEnergyMLCalibAlgBuilder ()
 getPFOClusterMLCorrectionAlgorithmBuilder ()
 _getWeightPFOToolDefault (*l)
 List of standard constituent modifiers.

Variables

 stdInputExtDic = ldict()
 stdConstitDic = ldict()
 stdContitModifDic = ldict()
list _stdInputList
 _locked
str vtxKey = "PrimaryVertices"
str tvaKey = "JetTrackVtxAssoc"
list _stdModList

Detailed Description

 StandardJetConstits: A module containing standard definitions for jet inputs : external container and 
 constituents.
 These can be copied and modified by users who want something a bit   
 different from what is provided.                                     
                                                                      
 Author: TJ Khoo, P-A Delsart                                                      

Function Documentation

◆ _getWeightPFOToolDefault()

python.StandardJetConstits._getWeightPFOToolDefault ( * l)
protected

List of standard constituent modifiers.

One Property of the CorrectPFO constit modifier is a tool. 
we use this function as a placeholder, allowing to delay the instantiation of this property tool
to the time the modifier itself is instantiated.

Definition at line 557 of file StandardJetConstits.py.

557def _getWeightPFOToolDefault(*l):
558 """One Property of the CorrectPFO constit modifier is a tool.
559 we use this function as a placeholder, allowing to delay the instantiation of this property tool
560 to the time the modifier itself is instantiated.
561 """
562 from AthenaConfiguration.ComponentFactory import CompFactory
563 return CompFactory.getComp("CP::WeightPFOTool")("weightPFO")
564
565

◆ _largeRTracksExist()

python.StandardJetConstits._largeRTracksExist ( flags)
protected

Definition at line 127 of file StandardJetConstits.py.

127def _largeRTracksExist(flags):
128 warning = "Large radius tracking did not run"
129 if "InDetLargeD0TrackParticles" in flags.Input.Collections:
130 # the conditions here weren't the same as above: apparently we
131 # require _both_ the input condition _and_ the tracking
132 # flag. I don't know if this is what we want but it keeps with
133 # the existing behavior.
134 #
135 # Again, the isAnalysisRelease function is needed to short
136 # circuit the flag check, since flags.Tracking doesn't exist
137 # in analysis releases.
138 if isAnalysisRelease() or flags.Tracking.doLargeD0:
139 return True, warning
140 return False, warning
141

◆ _muonSegmentInputsExist()

python.StandardJetConstits._muonSegmentInputsExist ( flags)
protected

Definition at line 106 of file StandardJetConstits.py.

106def _muonSegmentInputsExist(flags):
107 warning = "Muon reco is disabled"
108 if "MuonSegments" in flags.Input.Collections:
109 return True, warning
110 if isAnalysisRelease():
111 # reco flags don't exist in analysis release
112 return False, warning
113 return flags.Reco.EnableCombinedMuon, warning
114

◆ _trackParticleInputsExist()

python.StandardJetConstits._trackParticleInputsExist ( flags)
protected

List of standard input sources for jets.

Definition at line 96 of file StandardJetConstits.py.

96def _trackParticleInputsExist(flags):
97 warning = "Tracking is disabled and no InDetTrackParticles in input"
98 if "InDetTrackParticles" in flags.Input.Collections:
99 return True, warning
100 if isAnalysisRelease():
101 # we can't check reco flags in analysis release (and would not
102 # be building tracks anyway)
103 return False, warning
104 return flags.Reco.EnableTracking, warning
105

◆ _unassocMuonSegmentInputsExist()

python.StandardJetConstits._unassocMuonSegmentInputsExist ( flags)
protected

Definition at line 115 of file StandardJetConstits.py.

115def _unassocMuonSegmentInputsExist(flags):
116 warning = "UnAssociated muon segments not present"
117 if "UnAssocMuonSegments" in flags.Input.Collections:
118 return True, warning
119 if flags.Input.RunNumbers[0] < 410000:
120 # Unassociated containers only exist from Run 3 and mc23 onwards
121 return False, warning
122 if isAnalysisRelease():
123 # reco flags don't exist in analysis release
124 return False, warning
125 return flags.Reco.EnableCombinedMuon, warning
126

◆ getCaloClusterEnergyMLCalibAlgBuilder()

python.StandardJetConstits.getCaloClusterEnergyMLCalibAlgBuilder ( )

Definition at line 142 of file StandardJetConstits.py.

142def getCaloClusterEnergyMLCalibAlgBuilder():
143 def f(flags,spec):
144 from CaloRec.CaloClusterMLCalibAlgLiteConfig import CaloClusterMLCalibAlgLiteCfg
145 return CaloClusterMLCalibAlgLiteCfg(flags._cflags)
146 return f

◆ getPFOClusterMLCorrectionAlgorithmBuilder()

python.StandardJetConstits.getPFOClusterMLCorrectionAlgorithmBuilder ( )

Definition at line 147 of file StandardJetConstits.py.

147def getPFOClusterMLCorrectionAlgorithmBuilder():
148 def f(flags,spec):
149 from eflowRec.PFRun3Config import PFOClusterMLCorrectionAlgorithmBuilder
150 return PFOClusterMLCorrectionAlgorithmBuilder(flags._cflags, spec)
151 return f
152
153
154

◆ standardReco()

python.StandardJetConstits.standardReco ( input)
Returns a helper function which invokes the standard reco configuration for the container 'input' 
(where input is external to the jet domain).

We group the definition of functions here rather than separately, so that we can change them 
automatically to a void function in case we're in an Analysis release and we can not import upstream packages.

Definition at line 46 of file StandardJetConstits.py.

46def standardReco(input):
47 """Returns a helper function which invokes the standard reco configuration for the container 'input'
48 (where input is external to the jet domain).
49
50 We group the definition of functions here rather than separately, so that we can change them
51 automatically to a void function in case we're in an Analysis release and we can not import upstream packages.
52
53 """
54
55 doNothingFunc = lambda *l:None # noqa: E731
56 if isAnalysisRelease():
57 return doNothingFunc
58
59
60 if input=='CaloClusters':
61 def f(jetdef,spec):
62 from CaloRec.CaloRecoConfig import CaloRecoCfg
63 flags = jetdef._cflags
64 return CaloRecoCfg(flags) if flags.Jet.doUpstreamDependencies else None
65 elif input=='Tracks':
66 def f(jetdef,spec):
67 from InDetConfig.TrackRecoConfig import InDetTrackRecoCfg
68 flags = jetdef._cflags
69 return InDetTrackRecoCfg(flags) if flags.Jet.doUpstreamDependencies else None
70 elif input=="Muons":
71 def f(jetdef,spec):
72 from MuonConfig.MuonReconstructionConfig import MuonReconstructionCfg
73 flags = jetdef._cflags
74 return MuonReconstructionCfg(flags) if flags.Jet.doUpstreamDependencies else None
75 elif input=="PFlow":
76 def f(jetdef,spec):
77 if not jetdef._cflags.Jet.doUpstreamDependencies:
78 return None
79 from eflowRec.PFRun3Config import PFCfg
80 return PFCfg(jetdef._cflags)
81 elif input=="DressedWZ":
82 def f(jetdef,spec):
83 from DerivationFrameworkMCTruth.MCTruthCommonConfig import PreJetMCTruthAugmentationsCfg
84 return PreJetMCTruthAugmentationsCfg(jetdef._cflags,decorationDressing='dressedPhoton')
85 else:
86 f = doNothingFunc
87
88 return f
89
Definition PFCfg.py:1

Variable Documentation

◆ _locked

python.StandardJetConstits._locked
protected

Definition at line 549 of file StandardJetConstits.py.

◆ _stdInputList

list python.StandardJetConstits._stdInputList
protected

Definition at line 155 of file StandardJetConstits.py.

◆ _stdModList

list python.StandardJetConstits._stdModList
protected

Definition at line 568 of file StandardJetConstits.py.

◆ stdConstitDic

python.StandardJetConstits.stdConstitDic = ldict()

Definition at line 27 of file StandardJetConstits.py.

◆ stdContitModifDic

python.StandardJetConstits.stdContitModifDic = ldict()

Definition at line 28 of file StandardJetConstits.py.

◆ stdInputExtDic

python.StandardJetConstits.stdInputExtDic = ldict()

Definition at line 26 of file StandardJetConstits.py.

◆ tvaKey

str python.StandardJetConstits.tvaKey = "JetTrackVtxAssoc"

Definition at line 567 of file StandardJetConstits.py.

◆ vtxKey

str python.StandardJetConstits.vtxKey = "PrimaryVertices"

Definition at line 566 of file StandardJetConstits.py.