cms-nanoAOD / cmssw

CMS NanoAOD software integration repository
http://cms-sw.github.io/
Apache License 2.0
3 stars 10 forks source link

photon trigger infos inadeguate for trig eff measuremen #592

Closed mariadalfonso closed 1 year ago

mariadalfonso commented 2 years ago

https://hypernews.cern.ch/HyperNews/CMS/get/physTools/3823.html

discussed more on mattermost https://mattermost.web.cern.ch/cmseg/pl/tk1or3scotynbn1yf3so4mmtya

bartokm commented 2 years ago

Main issue is, that starting from nanoAODv7 the photon trigger objects were never saved. But even before that the photon trigger object was ill-defined.

Details: https://github.com/cms-sw/cmssw/blob/master/PhysicsTools/NanoAOD/python/triggerObjects_cff.py#L51-L59 Photon trigger objects don't have any filters. Since a "skim" was added in v7 (skipObjectsNotPassingQualityBits) only trigger objects with passed filters were saved, hence: no photon trigger objects were saved. But in general, the photon trigger object definition is incorrect. As I was told by egamma experts, the pixelseed veto (!filter('*PixelMatchFilter')) should be removed, since in HLT for most photon paths pixel veto is not required.

Fixing the issue: 1) Remove !filter('*PixelMatchFilter') in definition 2) Add filters for photon trigger objects

mariadalfonso commented 1 year ago

done in cms-sw 39043