cmssw icon indicating copy to clipboard operation
cmssw copied to clipboard

The Trigger object bit information of muon in PhysicsTools/NanoAOD/python/triggerObjects_cff.py is missing

Open 9GaoHong opened this issue 1 year ago • 8 comments

I didn't see any related muon trigger object bit information for Dz and Mass3p8 here. For example, what should I do if I want to see if the HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_DZ_Mass3p8 trigger has been passed?

9GaoHong avatar Oct 07 '24 08:10 9GaoHong

cms-bot internal usage

cmsbuild avatar Oct 07 '24 08:10 cmsbuild

A new Issue was created by @9GaoHong.

@Dr15Jones, @antoniovilela, @makortel, @mandrenguyen, @rappoccio, @sextonkennedy, @smuzaffar can you please review it and eventually sign/assign? Thanks.

cms-bot commands are listed here

cmsbuild avatar Oct 07 '24 08:10 cmsbuild

assign PhysicsTools/NanoAOD

makortel avatar Oct 07 '24 13:10 makortel

New categories assigned: xpog

@ftorrresd,@hqucms you have been requested to review this Pull request/Issue and eventually sign? Thanks

cmsbuild avatar Oct 07 '24 13:10 cmsbuild

Hi @9GaoHong -- I'm sorry if I misunderstood your question, but just to check if a certain event passed a trigger path or not, you could just check the Boolean value stored in the branch related to the path (HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_DZ_Mass3p8 , in your case).

This document summarizes all branches available for NanoAODv14. Previous versions are also available.

https://cms-nanoaod-integration.web.cern.ch/autoDoc/NanoAODv14/2024Prompt/doc_EGamma1_Run2024D-PromptReco-v1.html

On the other hand, if you want to know if a muon has triggered a path, checking for hltDiMuon*Filtered* should be sufficient.

https://github.com/cms-sw/cmssw/blob/14a12c2bcc115ca89bccfeb2fc7aacde53111773/PhysicsTools/NanoAOD/python/triggerObjects_cff.py#L120C31-L120C52

image From: https://cmshltinfo.app.cern.ch/path/HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_DZ_Mass3p8_v

Hope it helps.

F.

ftorrresd avatar Oct 07 '24 15:10 ftorrresd

checking for hltDiMuon*Filtered*

Hi @ftorrresd, Thank you for your reply. My question is to know if a muon has triggered a path. I understand your answer, but if I want to know the exact muon trigger if passed, how should I determine it? As you mentioned, checking for hltDiMuon*Filtered* can check if HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_DZ_Mass3p8 has passed. However, I found that HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_DZ_Mass8 has also passed hltDiMuon*Filtered*. So, if triggerObjects_bits show that hltDiMuon*Filtered* (2mu) has passed, how do I know if this muon has passed HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_DZ_Mass8 or HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_DZ_Mass3p8?

9GaoHong avatar Oct 08 '24 08:10 9GaoHong

Hi @9GaoHong -- I'm sorry if I misunderstood your question, but just to check if a certain event passed a trigger path or not, you could just check the Boolean value stored in the branch related to the path (HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_DZ_Mass3p8 , in your case).

This document summarizes all branches available for NanoAODv14. Previous versions are also available.

https://cms-nanoaod-integration.web.cern.ch/autoDoc/NanoAODv14/2024Prompt/doc_EGamma1_Run2024D-PromptReco-v1.html

On the other hand, if you want to know if a muon has triggered a path, checking for hltDiMuon*Filtered* should be sufficient.

https://github.com/cms-sw/cmssw/blob/14a12c2bcc115ca89bccfeb2fc7aacde53111773/PhysicsTools/NanoAOD/python/triggerObjects_cff.py#L120C31-L120C52

image From: https://cmshltinfo.app.cern.ch/path/HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_DZ_Mass3p8_v

Hope it helps.

F.

Hi @ftorrresd, could you please answer the question? Thanks!

9GaoHong avatar Oct 15 '24 11:10 9GaoHong

Hi @9GaoHong, due to the limit size of the nanoAOD tier it is not possible to store all the information for every trigger object. Therefore, different combinations of triggers are stored. For the HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_DZ_Mass3p8 case, you may want to take a look here:

https://github.com/cms-sw/cmssw/blob/14a12c2bcc115ca89bccfeb2fc7aacde53111773/PhysicsTools/NanoAOD/python/triggerObjects_cff.py#L120C32-L120C51

Since the filter hltDiMuon*Filtered* includes the one you want to use: hltDiMuon178Mass3p8Filtered.

I realize this may be not helpful for you since you may want the exact hltDiMuon178Mass3p8Filtered filter. In such a case, I suggest you to either use an analyzer and get the information directly from miniAOD, or use the MUO@POG flavored nanoAOD which already stores the filter bits for that specific path:

https://github.com/cms-sw/cmssw/blob/14a12c2bcc115ca89bccfeb2fc7aacde53111773/PhysicsTools/NanoAOD/python/custom_muon_cff.py#L308

I hope this helps, Sergio Blanco

BlancoFS avatar Oct 22 '24 08:10 BlancoFS