|
ATLAS Offline Software
|
|
def | idTrackSelToolFromJetCtx (trkOpt, trkProperties) |
|
def | getEMScaleMomTool (jetdef, modspec="") |
|
def | getConstitFourMomTool (jetdef, modspec="") |
|
def | getJVFTool (jetdef, modspec) |
|
def | getJVTTool (jetdef, modspec) |
|
def | getNNJvtTool (jetdef, modspec) |
|
def | getTrackMomentsTool (jetdef, modspec) |
|
def | getTrackSumMomentsTool (jetdef, modspec) |
|
def | getOriginCorrVxTool (jetdef, modspec) |
|
def | getJetPtAssociationTool (jetdef, modspec) |
|
def | getQGTaggingTool (jetdef, modspec) |
|
def | getPFlowfJVTTool (jetdef, modspec) |
|
def | getPFlowbJVTTool (jetdef, modspec) |
|
def | getBoostedJetTaggerTool (jetdef, modspec) |
|
|
| jetmomentlog = Logging.logging.getLogger('JetMomentToolsConfig') |
|
◆ getBoostedJetTaggerTool()
def JetMomentToolsConfig.getBoostedJetTaggerTool |
( |
|
jetdef, |
|
|
|
modspec |
|
) |
| |
Definition at line 244 of file JetMomentToolsConfig.py.
246 jssutils = CompFactory.JSSTaggerUtils(
"JSSTaggerUtils/MyTagger")
249 bjtTool = CompFactory.BoostedJetTaggerTool(
"BoostedJetTaggerTool",
251 DecorationName =
"QGTransformer",
252 CalibArea =
"QGConstituentTagger/Nov24",
253 ConfigFile =
"QGTagger_AntiKt04PFlow_Transformer.dat"
◆ getConstitFourMomTool()
def JetMomentToolsConfig.getConstitFourMomTool |
( |
|
jetdef, |
|
|
|
modspec = "" |
|
) |
| |
Definition at line 54 of file JetMomentToolsConfig.py.
67 cfourmom = CompFactory.JetConstitFourMomTool(
"constitfourmom_{0}".
format(jetdef.basename))
68 if "LCTopo" in jetdef.basename
or "EMTopo" in jetdef.basename:
69 cfourmom.JetScaleNames = [
"DetectorEtaPhi"]
70 if "HLT_" in jetdef.fullname():
71 cfourmom.AltConstitColls = [
""]
72 cfourmom.AltConstitScales = [0]
73 cfourmom.AltJetScales = [
"JetConstitScaleMomentum"]
75 clstate =
"CALIBRATED" if "LCTopo" in jetdef.basename
else "UNCALIBRATED"
76 cfourmom.AltConstitColls = [jetdef.inputdef.inputname]
77 cfourmom.AltConstitScales = [CaloClusterStates[clstate]]
78 cfourmom.AltJetScales = [
""]
81 elif "PFlow" in jetdef.basename
or "UFO" in jetdef.basename:
82 cfourmom.JetScaleNames = [
"DetectorEtaPhi"]
83 cfourmom.AltConstitColls = [
""]
84 cfourmom.AltConstitScales = [0]
85 cfourmom.AltJetScales = [
"JetConstitScaleMomentum"]
◆ getEMScaleMomTool()
def JetMomentToolsConfig.getEMScaleMomTool |
( |
|
jetdef, |
|
|
|
modspec = "" |
|
) |
| |
Definition at line 32 of file JetMomentToolsConfig.py.
37 useUncalibConstits =
False
38 if jetdef.inputdef.basetype==xAODType.CaloCluster:
39 builtFromEMClusters = jetdef.inputdef.inputname
in [
"CaloCalTopoClusters",
"HLT_CaloTopoClustersFS"]
and jetdef.inputdef.modifiers==[
"EM"]
40 useUncalibConstits =
not builtFromEMClusters
41 elif (jetdef.inputdef.basetype==xAODType.ParticleFlow
or jetdef.inputdef.basetype==xAODType.FlowElement):
42 useUncalibConstits =
True
44 raise ValueError(
"EM scale momentum not defined for input type {}".
format(jetdef.inputdef.basetype))
46 emscalemom = CompFactory.JetEMScaleMomTool(
47 "emscalemom_{}".
format(jetdef.basename),
48 UseUncalibConstits = useUncalibConstits,
49 JetContainer = jetdef.fullname(),
◆ getJetPtAssociationTool()
def JetMomentToolsConfig.getJetPtAssociationTool |
( |
|
jetdef, |
|
|
|
modspec |
|
) |
| |
Definition at line 169 of file JetMomentToolsConfig.py.
171 from JetRecConfig.JetDefinition
import buildJetAlgName
173 truthJetAlg =
buildJetAlgName(jetdef.algorithm, jetdef.radius)+
'Truth'+
str(modspec)+
'Jets'
175 jetPtAssociation = CompFactory.JetPtAssociationTool(
'jetPtAssociation',
176 MatchingJetContainer = truthJetAlg,
177 AssociationName =
"GhostTruth")
179 return jetPtAssociation
◆ getJVFTool()
def JetMomentToolsConfig.getJVFTool |
( |
|
jetdef, |
|
|
|
modspec |
|
) |
| |
Definition at line 90 of file JetMomentToolsConfig.py.
91 trkopt = modspec
or jetdef.context
92 trackingKeys = jetdef._cflags.Jet.Context[trkopt]
93 jvf = CompFactory.JetVertexFractionTool(
95 VertexContainer = trackingKeys[
"Vertices"],
96 AssociatedTracks = trackingKeys[
"GhostTracksLabel"],
97 TrackVertexAssociation = trackingKeys[
"TVA"],
98 TrackParticleContainer = trackingKeys[
"Tracks"],
100 SuppressInputDependence =
True,
101 UseOriginVertex = jetdef.byVertex
◆ getJVTTool()
def JetMomentToolsConfig.getJVTTool |
( |
|
jetdef, |
|
|
|
modspec |
|
) |
| |
Definition at line 107 of file JetMomentToolsConfig.py.
108 jvt = CompFactory.JetVertexTaggerTool(
110 VertexContainer = jetdef._cflags.Jet.Context[modspec
or jetdef.context][
"Vertices"],
111 SuppressInputDependence =
True,
112 UseOriginVertex = jetdef.byVertex
◆ getNNJvtTool()
def JetMomentToolsConfig.getNNJvtTool |
( |
|
jetdef, |
|
|
|
modspec |
|
) |
| |
Definition at line 117 of file JetMomentToolsConfig.py.
118 nnjvt = CompFactory.getComp(
"JetPileupTag::JetVertexNNTagger")(
120 VertexContainer = jetdef._cflags.Jet.Context[modspec
or jetdef.context][
"Vertices"],
121 SuppressInputDependence =
True
◆ getOriginCorrVxTool()
def JetMomentToolsConfig.getOriginCorrVxTool |
( |
|
jetdef, |
|
|
|
modspec |
|
) |
| |
Definition at line 159 of file JetMomentToolsConfig.py.
160 origin_setpv = CompFactory.JetOriginCorrectionTool(
162 VertexContainer = jetdef._cflags.Jet.Context[modspec
or jetdef.context][
"Vertices"],
163 OriginCorrectedName =
"",
◆ getPFlowbJVTTool()
def JetMomentToolsConfig.getPFlowbJVTTool |
( |
|
jetdef, |
|
|
|
modspec |
|
) |
| |
Definition at line 223 of file JetMomentToolsConfig.py.
225 from JetCalibTools
import JetCalibToolsConfig
228 wPFOTool = CompFactory.getComp(
'CP::WeightPFOTool')(
"bJVT__wPFO")
230 trackingKeys = jetdef._cflags.Jet.Context[modspec
or jetdef.context]
232 bJVTTool = CompFactory.JetBalancePFlowJvtTool(
'bJVT',
233 verticesName = trackingKeys[
"Vertices"],
234 TrackVertexAssociation = trackingKeys[
"TVA"],
235 WeightPFOTool = wPFOTool,
236 JetCalibrationTool = jetCalibrationTool,
237 FEName = jetdef.inputdef.containername,
239 BjvtRawName =
'DFCommonJets_bJvt',
◆ getPFlowfJVTTool()
def JetMomentToolsConfig.getPFlowfJVTTool |
( |
|
jetdef, |
|
|
|
modspec |
|
) |
| |
Definition at line 195 of file JetMomentToolsConfig.py.
197 from JetCalibTools
import JetCalibToolsConfig
198 calibString =
"AnalysisLatest:mc:JetArea_Residual_EtaJES"
199 if( modspec
and modspec ==
"CustomVtx" ) :
200 if jetdef._cflags.GeoModel.Run
is LHCPeriod.Run3:
201 calibString =
"AnalysisLatest:mc:JetArea_Residual_EtaJES:Kt4EMPFlowNeutEventShape:HggPrimaryVertices"
203 calibString =
"AnalysisLatest:mc:JetArea_Residual_EtaJES:Kt4EMPFlowCustomVtxEventShape:HggPrimaryVertices"
206 wPFOTool = CompFactory.getComp(
'CP::WeightPFOTool')(
"fJVT__wPFO")
208 trackingKeys = jetdef._cflags.Jet.Context[modspec
or jetdef.context]
210 fJVTTool = CompFactory.JetForwardPFlowJvtTool(
"fJVT",
211 verticesName = trackingKeys[
"Vertices"],
212 TrackVertexAssociation = trackingKeys[
"TVA"],
213 WeightPFOTool = wPFOTool,
214 JetCalibrationTool = jetCalibrationTool,
215 FEName = jetdef.inputdef.containername,
217 FjvtRawName =
"DFCommonJets_fJvt",
◆ getQGTaggingTool()
def JetMomentToolsConfig.getQGTaggingTool |
( |
|
jetdef, |
|
|
|
modspec |
|
) |
| |
Definition at line 182 of file JetMomentToolsConfig.py.
183 trkopt = modspec
or jetdef.context
184 trackingKeys = jetdef._cflags.Jet.Context[trkopt]
186 qgtagging = CompFactory.JetQGTaggerVariableTool(
'qgtagging',
187 VertexContainer = trackingKeys[
"Vertices"],
188 TrackVertexAssociation = trackingKeys[
"TVA"],
◆ getTrackMomentsTool()
def JetMomentToolsConfig.getTrackMomentsTool |
( |
|
jetdef, |
|
|
|
modspec |
|
) |
| |
Definition at line 126 of file JetMomentToolsConfig.py.
128 trkopt = modspec
or jetdef.context
129 trackingKeys = jetdef._cflags.Jet.Context[trkopt]
131 trackmoments = CompFactory.JetTrackMomentsTool(
133 VertexContainer = trackingKeys[
"Vertices"],
134 AssociatedTracks = trackingKeys[
"GhostTracksLabel"],
135 TrackVertexAssociation = trackingKeys[
"TVA"],
136 TrackMinPtCuts = [500, 1000],
138 DoPFlowMoments =
'PFlow' in jetdef.fullname()
or 'UFO' in jetdef.fullname() ,
◆ getTrackSumMomentsTool()
def JetMomentToolsConfig.getTrackSumMomentsTool |
( |
|
jetdef, |
|
|
|
modspec |
|
) |
| |
Definition at line 142 of file JetMomentToolsConfig.py.
143 trkopt = modspec
or jetdef.context
144 trackingKeys = jetdef._cflags.Jet.Context[trkopt]
147 tracksummoments = CompFactory.JetTrackSumMomentsTool(
149 VertexContainer = trackingKeys[
"Vertices"],
150 AssociatedTracks = trackingKeys[
"GhostTracksLabel"],
151 TrackVertexAssociation = trackingKeys[
"TVA"],
152 RequireTrackPV =
True,
153 TrackSelector = jettrackselloose
155 return tracksummoments
◆ idTrackSelToolFromJetCtx()
def JetMomentToolsConfig.idTrackSelToolFromJetCtx |
( |
|
trkOpt, |
|
|
|
trkProperties |
|
) |
| |
returns a InDetTrackSelectionTool configured with the jet context corresponding to trkOpt
Definition at line 25 of file JetMomentToolsConfig.py.
26 """returns a InDetTrackSelectionTool configured with the jet context corresponding to trkOpt
28 from JetRecTools.JetRecToolsConfig
import getIDTrackSelectionTool
◆ jetmomentlog
JetMomentToolsConfig.jetmomentlog = Logging.logging.getLogger('JetMomentToolsConfig') |
def buildJetAlgName(finder, mainParam, variableRMassScale=-1.0, variableRMinRadius=-1.0)