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 Dxy plots (only for electron/muon at this moment) #7908
Conversation
A new Pull Request was created by @ryonamin for CMSSW_7_5_X. Added Dxy plots (only for electron/muon at this moment) It involves the following packages: HLTriggerOffline/Exotica @cmsbuild, @danduggan, @nclopezo, @deguio can you please review it and eventually sign? Thanks. |
+1 |
This pull request is fully signed and it will be integrated in one of the next CMSSW_7_5_X IBs unless changes (tests are also fine). This pull request requires discussion in the ORP meeting before it's merged. @davidlange6, @nclopezo, @ktf, @smuzaffar |
+1 |
Added Dxy plots (only for electron/muon at this moment)
Here is the "dxy" definitions used in the code:
(I modified variable names from the actual names just for explanation.)
const math::XYZPoint & vtx = genParticle.vertex();
float phi = genParticle.momentum().phi();
float dxyGen = ( - ( vtx.x() - beamspot->x0())sin(phi) + (vtx.y() - beamspot->y0())cos(phi));
float dxyRec = (electron/muon bestTrack)->dxy(beamspot->position());
This is the same changes as the PR#7884 but based on 75X release.