Skip to content

Commit dda2d9c

Browse files
committed
Take puppi weights from VM only if puppi jet/met reclustering are done
1 parent f4adae3 commit dda2d9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PhysicsTools/NanoAOD/python/nano_cff.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def nanoAOD_customizeCommon(process):
247247
reclusterAK8=nanoAOD_rePuppi_switch.reclusterAK8.value(),
248248
)
249249

250-
if nanoAOD_rePuppi_switch.useExistingWeights == False:
250+
if not(nanoAOD_rePuppi_switch.useExistingWeights) and (nanoAOD_rePuppi_switch.reclusterAK4MET or nanoAOD_rePuppi_switch.reclusterAK8):
251251
process = UsePuppiWeightFromValueMapForPFCandTable(process)
252252

253253
# This function is defined in jetsAK4_Puppi_cff.py

0 commit comments

Comments
 (0)