Skip to content
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

How check TrigObj_filterBits -> 2 = 1e (WPTight) #213

Open
vardanaloyan opened this issue Nov 7, 2019 · 0 comments
Open

How check TrigObj_filterBits -> 2 = 1e (WPTight) #213

vardanaloyan opened this issue Nov 7, 2019 · 0 comments

Comments

@vardanaloyan
Copy link

vardanaloyan commented Nov 7, 2019

Hello dear Experts. In my analysis I want to take Tight Electron L3 trigger objects. I can not find useful information In nanoaod documentation.
https://cms-nanoaod-integration.web.cern.ch/integration/master-102X/mc102X_doc.html#TrigObj
As I understand if i want to take those events which trigger objects are Tight electrons, so i will check the id equals to 11, and filterbit.
Now I am checking filterBits information by this way.
tr.filterBits & (1 << 2) == 1 << 2)
But In another example (GenPart_statusFlags) I want to check 7 : isHardProcess flag. So I did this
ipart_pru.statusFlags & (1 << 7) == 1 << 7
Please explain the correct way to check these 2 flags(trigger filterBits and genParticle statusFlags)

Actually I must check by this way for trigger filterBits (WPTight):
(tr.filterBits & 2) != 0
because 2 in binary representation is "10".
But I am confusing about this statement.
Thanks and Regards!
Vardan Aloyan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant