86 """Returns the exact constituent container name used to build jetdef"""
87 constitdef = jetdef.inputdef
88 containername = constitdef.containername(jetdef).
split(
':')[-1]
if callable(constitdef.containername)
else constitdef.containername
94 from JetMomentTools
import JetMomentToolsConfig
95 stdJetModifiers.update(
98 ClusterMoments = JetModifier(
"JetClusterMomentsTool",
"clsmoms", JetContainer = _jetname),
99 ECPSFrac = JetModifier(
"JetECPSFractionTool",
"ecpsfrac", JetContainer = _jetname),
100 Width = JetModifier(
"JetWidthTool",
"width", JetContainer = _jetname),
103 CaloEnergies = JetModifier(
"JetCaloEnergies",
"jetens",
104 prereqs=[
"mod:EMScaleMom"],
105 Calculations=[
"EMFrac",
"HECFrac",
"PSFrac",
"FracSamplingMax"], JetContainer = _jetname,
108 CaloEnergiesLargeR = JetModifier(
"JetCaloEnergies",
"jetenslargeR",
109 prereqs=[
"mod:EMScaleMom"],
110 Calculations=[
"EMFrac",
"HECFrac",
"PSFrac",
"EM3Frac",
"Tile0Frac",
"EffNClusts"], JetContainer = _jetname,
111 calcClusterBasedVars =
True,
115 CaloEnergiesClus = JetModifier(
"JetCaloEnergies",
"jetensclus",
116 prereqs=[
"mod:EMScaleMom"],
117 Calculations=[
"EMFrac",
"HECFrac",
"PSFrac",
"FracSamplingMax"], JetContainer = _jetname,
118 calcClusterBasedVars =
True),
120 CaloQuality = JetModifier(
"JetCaloQualityTool",
"caloqual",
122 Calculations = [
"LArQuality",
"N90Constituents",
"NegativeE",
"Timing",
"HECQuality",
"Centroid",
"AverageLArQF",
"BchCorrCell"],JetContainer = _jetname),
124 CaloQualityFE = JetModifier(
"JetCaloQualityToolFE",
"caloqualFE",
126 ThresholdCuts = [90],
127 Calculations = [
"LArQuality",
"NegativeE",
"Timing",
"HECQuality",
"Centroid",
"AverageLArQF",
"BchCorrCell"],JetContainer = _jetname),
129 N90 = JetModifier(
"JetCaloQualityTool",
"n90",
130 Calculations = [
"N90Constituents"],JetContainer = _jetname),
132 ConstitFourMom = JetModifier(
"JetConstitFourMomTool",
"constitfourmom_basename",
133 createfn=JetMomentToolsConfig.getConstitFourMomTool,),
134 EMScaleMom = JetModifier(
"JetEMScaleMomTool",
"emscalemom_basename",
135 createfn=JetMomentToolsConfig.getEMScaleMomTool,
136 JetContainer = _jetname),
138 JVF = JetModifier(
"JetVertexFractionTool",
"jvf",
139 createfn=JetMomentToolsConfig.getJVFTool,
141 JetContainer = _jetname),
142 JVT = JetModifier(
"JetVertexTaggerTool",
"jvt",
143 createfn=JetMomentToolsConfig.getJVTTool,
144 prereqs = [
"mod:JVF" ],JetContainer = _jetname),
145 NNJVT = JetModifier(
"JetVertexNNTagger",
"nnjvt",
146 createfn=JetMomentToolsConfig.getNNJvtTool,
147 prereqs = [
"mod:JVF" ],JetContainer = _jetname),
148 LArHVCorr = JetModifier(
"JetLArHVTool",
"larhvcorr",
149 prereqs = [
"mod:EMScaleMom"],JetContainer = _jetname),
150 OriginSetPV = JetModifier(
"JetOriginCorrectionTool",
"origin_setpv",
151 prereqs = [
"mod:JVF" ],JetContainer = _jetname, OnlyAssignPV=
True),
152 TrackMoments = JetModifier(
"JetTrackMomentsTool",
"trkmoms",
153 createfn=JetMomentToolsConfig.getTrackMomentsTool,
156 TrackSumMoments = JetModifier(
"JetTrackSumMomentsTool",
"trksummoms",
157 createfn=JetMomentToolsConfig.getTrackSumMomentsTool,
159 Charge = JetModifier(
"JetChargeTool",
"jetcharge",
160 prereqs = [
"ghost:Track" ]),
162 QGTagging = JetModifier(
"JetQGTaggerVariableTool",
"qgtagging",
163 createfn=JetMomentToolsConfig.getQGTaggingTool,
164 prereqs =
lambda _,jetdef :
166 ([
"mod:JetPtAssociation"]
if not isMC(jetdef._cflags)
else []),
167 JetContainer = _jetname),
169 fJVT = JetModifier(
"JetForwardPFlowJvtTool",
"fJVT",
170 createfn=JetMomentToolsConfig.getPFlowfJVTTool,
172 JetContainer = _jetname),
174 bJVT = JetModifier(
"JetBalancePFlowJvtTool",
"bJVT",
175 createfn=JetMomentToolsConfig.getPFlowbJVTTool,
177 JetContainer = _jetname),
179 ConstitFrac = JetModifier(
"JetConstituentFrac",
"constitFrac",
180 JetContainer = _jetname,
183 groomMRatio = JetModifier(
"JetGroomMRatio",
"groomMRatio",
184 JetContainer = _jetname,
187 JetPtAssociation = JetModifier(
"JetPtAssociationTool",
"jetPtAssociation",
189 createfn=JetMomentToolsConfig.getJetPtAssociationTool,
190 prereqs=[
"ghost:Truth"],
191 JetContainer = _jetname
196 jetiso = JetModifier(
"JetIsolationTool",
"iso",
197 JetContainer=_jetname,
198 InputConstitContainer = _constitContainername,
199 IsolationCalculations = [
"IsoFixedCone:5:Pt",
"IsoFixedCone:5:PtPUsub",],
200 RhoKey =
lambda jetdef, specs :
"Kt4"+jetdef.inputdef.label+
"EventShape" ,
201 prereqs= [
"input:EventDensity"],
204 jetisoTruth = JetModifier(
"JetIsolationTool",
"isoTruth",
205 JetContainer=_jetname,
206 InputConstitContainer = _constitContainername,
207 IsolationCalculations = [
"IsoFixedCone:5:Pt", ],