|
ATLAS Offline Software
|
|
def | _buildJetAlgForInput (suffix, tools) |
|
def | buildJetTrackUsedInFitDeco (parentjetdef, inputspec) |
|
def | buildJetInputTruth (parentjetdef, truthmod) |
|
def | buildJetInputTruthGEN (parentjetdef, truthmod) |
|
def | buildLabelledTruth (parentjetdef, truthmod) |
|
def | buildPV0TrackSel (parentjetdef, spec) |
|
def | buildPFlowSel (parentjetdef, spec) |
|
def | buildPFlowSel_noElectrons (parentjetdef, spec) |
|
def | buildPFlowSel_noMuons (parentjetdef, spec) |
|
def | buildPFlowSel_noLeptons (parentjetdef, spec) |
|
def | buildEventShapeAlg (jetOrConstitdef, inputspec, voronoiRf=0.9, radius=0.4, suffix=None) |
|
◆ _buildJetAlgForInput()
def python.JetInputConfig._buildJetAlgForInput |
( |
|
suffix, |
|
|
|
tools |
|
) |
| |
|
private |
Definition at line 15 of file JetInputConfig.py.
16 jetalg = CompFactory.JetAlgorithm(
"jetalg_"+suffix,
◆ buildEventShapeAlg()
def python.JetInputConfig.buildEventShapeAlg |
( |
|
jetOrConstitdef, |
|
|
|
inputspec, |
|
|
|
voronoiRf = 0.9 , |
|
|
|
radius = 0.4 , |
|
|
|
suffix = None |
|
) |
| |
Function producing an EventShapeAlg to calculate
median energy density for pileup correction
Definition at line 132 of file JetInputConfig.py.
132 def buildEventShapeAlg(jetOrConstitdef, inputspec, voronoiRf = 0.9, radius = 0.4, suffix = None ):
133 """Function producing an EventShapeAlg to calculate
134 median energy density for pileup correction"""
136 from .JetRecConfig
import getPJContName
137 from EventShapeTools.EventDensityConfig
import configEventDensityTool, getEventShapeName
141 nameprefix = inputspec
or ""
143 f
"EventDensity_{nameprefix}Kt4{pjContName}",
145 InputContainer = pjContName,
146 OutputContainer =
getEventShapeName(jetOrConstitdef, nameprefix=nameprefix, suffix=suffix, radius=radius),
148 VoronoiRfact = voronoiRf,
151 eventshapealg = CompFactory.EventDensityAthAlg(
152 f
"EventDensity_{nameprefix}Kt4{pjContName}Alg",
153 EventDensityTool = rhotool )
◆ buildJetInputTruth()
def python.JetInputConfig.buildJetInputTruth |
( |
|
parentjetdef, |
|
|
|
truthmod |
|
) |
| |
Definition at line 30 of file JetInputConfig.py.
31 truthmod = truthmod
or ""
32 from ParticleJetTools.ParticleJetToolsConfig
import getCopyTruthJetParticles
◆ buildJetInputTruthGEN()
def python.JetInputConfig.buildJetInputTruthGEN |
( |
|
parentjetdef, |
|
|
|
truthmod |
|
) |
| |
Build truth constituents as in EVTGEN jobs in the r21 config.
IMPORTANT : this is expected to be temporary, only to reproduce the EVTGEN r21 config with the new config. The definitions should be harmonized with reco-level at some point and this function removed.
The source for r21 EVTGEN config was in GeneratorFilters/share/common/GenerateTruthJets.py
Definition at line 37 of file JetInputConfig.py.
38 """ Build truth constituents as in EVTGEN jobs in the r21 config.
39 IMPORTANT : this is expected to be temporary, only to reproduce the EVTGEN r21 config with the new config. The definitions should be harmonized with reco-level at some point and this function removed.
40 The source for r21 EVTGEN config was in GeneratorFilters/share/common/GenerateTruthJets.py
42 truthmod = truthmod
or ""
45 truthClassifier = CompFactory.MCTruthClassifier(
"JetMCTruthClassifier")
48 truthpartcopy = CompFactory.CopyTruthJetParticles(
"truthpartcopy",
49 OutputName=
"JetInputTruthParticlesGEN",
50 MCTruthClassifier=truthClassifier)
51 elif truthmod==
"NoWZ":
53 truthpartcopy = CompFactory.CopyTruthJetParticles(
"truthpartcopywz",
54 OutputName=
"JetInputTruthParticlesGENNoWZ",
55 MCTruthClassifier=truthClassifier,
56 IncludePromptLeptons=
False)
59 tools = [ truthpartcopy ]
◆ buildJetTrackUsedInFitDeco()
def python.JetInputConfig.buildJetTrackUsedInFitDeco |
( |
|
parentjetdef, |
|
|
|
inputspec |
|
) |
| |
Definition at line 21 of file JetInputConfig.py.
22 from InDetUsedInFitTrackDecoratorTool.UsedInVertexFitTrackDecoratorConfig
import (
23 getUsedInVertexFitTrackDecoratorAlg)
24 trkProperties = parentjetdef._contextDic
27 vtxCont= trkProperties[
"Vertices"])
◆ buildLabelledTruth()
def python.JetInputConfig.buildLabelledTruth |
( |
|
parentjetdef, |
|
|
|
truthmod |
|
) |
| |
Definition at line 62 of file JetInputConfig.py.
63 from ParticleJetTools.ParticleJetToolsConfig
import getCopyTruthLabelParticles
◆ buildPFlowSel()
def python.JetInputConfig.buildPFlowSel |
( |
|
parentjetdef, |
|
|
|
spec |
|
) |
| |
Definition at line 86 of file JetInputConfig.py.
87 return CompFactory.JetPFlowSelectionAlg(
"pflowselalg",
88 electronID =
"LHMedium",
89 ChargedPFlowInputContainer =
"JetETMissChargedParticleFlowObjects",
90 NeutralPFlowInputContainer =
"JetETMissNeutralParticleFlowObjects",
91 ChargedPFlowOutputContainer =
"GlobalChargedParticleFlowObjects",
92 NeutralPFlowOutputContainer =
"GlobalNeutralParticleFlowObjects"
◆ buildPFlowSel_noElectrons()
def python.JetInputConfig.buildPFlowSel_noElectrons |
( |
|
parentjetdef, |
|
|
|
spec |
|
) |
| |
Definition at line 95 of file JetInputConfig.py.
96 return CompFactory.JetPFlowSelectionAlg(
"pflowselalg_noElectrons",
97 electronID =
"LHMedium",
98 ElectronInputContainer=
"Electrons",
99 removeNeutralElectronFE=
True,
100 ChargedPFlowInputContainer =
"JetETMissChargedParticleFlowObjects",
101 NeutralPFlowInputContainer =
"JetETMissNeutralParticleFlowObjects",
102 ChargedPFlowOutputContainer =
"GlobalChargedParticleFlowObjects_noElectrons",
103 NeutralPFlowOutputContainer =
"GlobalNeutralParticleFlowObjects_noElectrons"
◆ buildPFlowSel_noLeptons()
def python.JetInputConfig.buildPFlowSel_noLeptons |
( |
|
parentjetdef, |
|
|
|
spec |
|
) |
| |
Definition at line 117 of file JetInputConfig.py.
118 return CompFactory.JetPFlowSelectionAlg(
"pflowselalg_noLeptons",
119 electronID =
"LHMedium",
120 ElectronInputContainer=
"Electrons",
121 removeNeutralElectronFE=
True,
123 removeNeutralMuonFE=
True,
124 ChargedPFlowInputContainer =
"JetETMissChargedParticleFlowObjects",
125 NeutralPFlowInputContainer =
"JetETMissNeutralParticleFlowObjects",
126 ChargedPFlowOutputContainer =
"GlobalChargedParticleFlowObjects_noLeptons",
127 NeutralPFlowOutputContainer =
"GlobalNeutralParticleFlowObjects_noLeptons"
◆ buildPFlowSel_noMuons()
def python.JetInputConfig.buildPFlowSel_noMuons |
( |
|
parentjetdef, |
|
|
|
spec |
|
) |
| |
Definition at line 106 of file JetInputConfig.py.
107 return CompFactory.JetPFlowSelectionAlg(
"pflowselalg_noMuons",
108 electronID =
"LHMedium",
110 removeNeutralMuonFE=
True,
111 ChargedPFlowInputContainer =
"JetETMissChargedParticleFlowObjects",
112 NeutralPFlowInputContainer =
"JetETMissNeutralParticleFlowObjects",
113 ChargedPFlowOutputContainer =
"GlobalChargedParticleFlowObjects_noMuons",
114 NeutralPFlowOutputContainer =
"GlobalNeutralParticleFlowObjects_noMuons"
◆ buildPV0TrackSel()
def python.JetInputConfig.buildPV0TrackSel |
( |
|
parentjetdef, |
|
|
|
spec |
|
) |
| |
Definition at line 69 of file JetInputConfig.py.
70 from TrackVertexAssociationTool.TrackVertexAssociationToolConfig
import getTTVAToolForReco
71 trkOptions = parentjetdef._contextDic
73 HardScatterLinkDeco =
"",
74 WorkingPoint =
"Nonprompt_All_MaxWeight",
75 TrackContName = trkOptions[
'JetTracksQualityCuts']
77 alg = CompFactory.PV0TrackSelectionAlg(
"pv0tracksel_trackjet",
78 InputTrackContainer = trkOptions[
'JetTracksQualityCuts'],
79 VertexContainer = trkOptions[
'Vertices'],
80 OutputTrackContainer =
"PV0"+trkOptions[
'JetTracks'],
def configEventDensityTool(name, jetOrConstitdef, radius=0.4, **options)
def getEventShapeName(defOrLabel, nameprefix="", suffix=None, radius=0.4)
def getUsedInVertexFitTrackDecoratorAlg(trackCont="InDetTrackParticles", vtxCont="PrimaryVertices", vertexDeco="TTVA_AMVFVertices_forReco", weightDeco="TTVA_AMVFWeights_forReco")
def getPJContName(jetOrConstitdef, suffix=None, parent_jetdef=None)
def getCopyTruthLabelParticles(truthtype)
def getCopyTruthJetParticles(modspec, cflags)