-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added a module to do eta filtering for Egamma HLT candidates #39764
Conversation
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-39764/32627
|
A new Pull Request was created by @arsahasransu (A.R.Sahasransu) for master. It involves the following packages:
@cmsbuild, @missirol, @Martin-Grunewald can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
Why is this needed? Did you check that the producer of the collection could (not) apply the eta cut? Have you checked that existing filters can not do the task? Eg, have a look at the several HLTGeneric filters within HLTrigger/Egamma. |
@Martin-Grunewald HLTGenericFilter requires variable tags that it does the selection on. https://github.com/cms-sw/cmssw/blob/master/HLTrigger/Egamma/plugins/HLTGenericFilter.cc#L29 The same also applies for the HLTElectronGenericFilter. I also looked in the general HLT filters hoping to find an eta filter. The HLTFiltCan at https://github.com/cms-sw/cmssw/blob/master/HLTrigger/HLTfilters/plugins/HLTFiltCand.cc only provides options for pT. If there is a way to implement the eta cut without adding this class, it is the most optimal, and please help me find this. |
You could see whether to add an eta cut to an existing filter, with default eta cut values such that the eta cut is not rejecting anything (though HLTFiltCand is not a good example). Otherwise, ok, add this new class. |
Yes, I was thinking the same. Do you recommend adding the eta cut to, let's say, the Et Filter class? |
Yes, for example there. Also, consider whether to just have an upper cut on abs(eta) rather than a min and a max cut on the signed eta. |
I put a min and max Eta to allow for asymmetric cuts. At some point, these can be changed to vectors to allow for eta cut in multiple windows if someone gets interested in that. It is just allowing for flexibility without any particular trade-off. |
PR description:
PR validation:
PR backport: