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
VBF filters for QCD sample requested by VBF InvHiggs group #12657
Conversation
A new Pull Request was created by @chayanit (Chayanit Asawatangtrakuldee) for CMSSW_7_1_X. It involves the following packages: GeneratorInterface/GenFilters @vciulli, @covarell, @thuer, @cmsbuild, @bendavid, @davidlange6, @govoni can you please review it and eventually sign? Thanks. Following commands in first line of a comment are recognized
|
+1 |
The tests are being triggered in jenkins. |
This pull request is fully signed and it will be integrated in one of the next CMSSW_7_1_X IBs after it passes the integration tests. This pull request requires discussion in the ORP meeting before it's merged. @slava77, @davidlange6, @Degano, @smuzaffar |
|
||
// ROOT includes | ||
#include "TMath.h" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chayanit - why is this include needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a usage of "sqrt" before but not anymore. This include can be removed. @davidlange6
Hi @davidlange6 could you move this request forward? I think they are all fine right? thanks. |
@davidlange6 |
@chayanit @srimanob - sorry for the delay, I think the ~minimal change that would make me happier is below. Much better would be to simply remove filterGenJets in favor of adding a few lines to the double loop over jets. [dlange@lxplus0096 GenFilters]$ git diff
//************************** #include <HepMC/GenVertex.h> -// ROOT includes -#include "TMath.h"// C++ includes @@ -35,13 +32,13 @@ VBFGenJetFilter::~VBFGenJetFilter(){ } -vector<const reco::GenJet*> VBFGenJetFilter::filterGenJets(const vectorreco::GenJet* jets){ vector<const reco::GenJet*> out;
if(j->p4().pt() >ptMin && j->p4().eta()>etaMin && j->p4().eta()<etaMax) Handle< vectorreco::GenJet > handleGenJets;
// Getting filtered generator jets
- math::XYZTLorentzVector diJet = pA->p4() + pB->p4();
- if(invMass<=minInvMass || invMass>maxInvMass){continue;}
|
Hi @davidlange6, Thanks for your reply. Let me link you to @joaopela who is the owner of these codes. He has some questions about your comments. Best, |
I agree with the removing of the TMath.h and the inclusion of " a<filGenJets.size()-1". But i do not understand the rest of the requests.
=> with filterGenJets filtering operations: => without filterGenJets filtering operations (Conbinations of 2 over 20 is 190 possible pairs): Clearly, pre filtering the generator jets reduces event-per-event computation time. |
I forgot to tag @davidlange6 in the last post. |
@chayanit @joaopela - sorry for the delay - I'll clarify so that this can be iterated on in the development release while this PR is approved since I have not had time to follow up.
its not - just moved lower as its the expensive calc to make
Right,but function calls are also expensive. anyway a detail. |
VBF filters for QCD sample requested by VBF InvHiggs group
They have been merged to CMSSW_8_X_X and now I just backported them to CMSSW_7_1_X. Thanks