PU vertices within an interval of 0.2 cm (0.1 in both directions) around the reference vertex are counted, but the description of the resulting quantity pudensity implies that the resulting number corresponds to number of PU vertices / mm (off by a factor of two). If treated differently in outside nanoAOD, this may lead to incompatibilities.
https://github.com/cms-sw/cmssw/blob/master/PhysicsTools/NanoAOD/plugins/NPUTablesProducer.cc#L64-L65
PU vertices within an interval of 0.2 cm (0.1 in both directions) around the reference vertex are counted, but the description of the resulting quantity pudensity implies that the resulting number corresponds to number of PU vertices / mm (off by a factor of two). If treated differently in outside nanoAOD, this may lead to incompatibilities.