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
Adding revised module for lepton(s) + HT trigger DQM #19577
Conversation
A new Pull Request was created by @heller3 for master. It involves the following packages: DQMOffline/Trigger @vazzolini, @kmaeshima, @dmitrijus, @cmsbuild, @vanbesien, @davidlange6 can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
+1 |
The tests are being triggered in jenkins. |
This pull request is fully signed and it will be integrated in one of the next master IBs after it passes the integration tests. This pull request requires discussion in the ORP meeting before it's merged. @davidlange6, @smuzaffar |
-1 Tested at: e53ce31 The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic: You can see the results of the tests here: I found follow errors while testing this PR Failed tests: Build
I found an error when building: gmake[1]: Target 'PostBuild' not remade because of errors. gmake[1]: Leaving directory '/build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_3_X_2017-07-05-2300' config/SCRAM/GMake/Makefile.rules:2058: recipe for target 'src' failed gmake: *** [src] Error 2 gmake: Target 'all' not remade because of errors. gmake: *** [There are compilation/build errors. Please see the detail log above.] Error 2 The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic: |
Comparison not run due to Build errors (RelVals and Igprof tests were also skipped) |
@davidlange6 this PR is signed by DQM, and I think all comments have been addressed. Do you have any objections if I include it in a second "merged" PR to fix the various conflicts ? |
+1 The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic: |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
|
||
if(!pass_id) return false; | ||
|
||
}catch(...){ |
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.
please avoid try catch. (I'm not really sure what possible issues you are looking to avoid here and above so am not sure what alternative to suggest)
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.
none of the called methods throws, as far as I can see from their code; I'll simply remove the try
and the catch blocks.
int npv=0; | ||
//Vertex | ||
edm::Handle<reco::VertexCollection> VertexCollection; | ||
if(theVertexCollectionTag_.label() != ""){ |
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.
please do these string comparisons once and store them (eg, in the constructor?)
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.
to avoid adding extra variables, I propose to use if (not theVertexCollectionTag_.label().empty())
which is just a pointer comparison, and should be as fast a checking a bool.
for(const auto &electron: *ElectronCollection){ | ||
const auto el = ElectronCollection->ptrAt(index); | ||
bool pass_id = (*ele_id_decisions)[el]; | ||
if(isGood(electron, VertexCollection->front().position(), |
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.
the indentation here is confusing - please try to use a few spaces to indent for loops/ifs (perhaps your editor can do this for you) and avoid the '}' to be at the end of a line when you have multiline loops [eg, line 406]
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.
it also doesn't help to mix tabs and spaces - they look OK on the terminal but not so much on GitHub
@@ -0,0 +1,142 @@ | |||
#ifndef LepHTMonitor_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.
please include the subsystem and package name in the include guard
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.
agreed
otherwise how many histogram bins are added? |
@davidlange6 This module adds 107 histogram bins per trigger, x3 copies for numerator, denominator, and efficiency. Is that what you mean? |
How many bins in total ? |
@fwyzard Total bins: 12 triggers x 107 bins x 3 sets of hists = 3852 bins total |
I think I have addressed all comments, as well as resolved the conflicts, in #19731 |
Please keep this PR open for the time being, without making any further changes to it. |
@fwyzard I need to change one wrong trigger path in LepHTMonitor_cff.py: HLT_DoubleMu4_Mass8_PFHT350 should be HLT_DoubleMu8_Mass8_PFHT350, on lines 151 and 152 Do you want me to do it or is it easier if you do? |
This PR includes a backport of the following PRs: - cms-sw#18172 - cms-sw#18950 - cms-sw#18959 - cms-sw#18968 - cms-sw#18971 - cms-sw#19023 - cms-sw#19046 - cms-sw#19078 - cms-sw#19119 - cms-sw#19178 - cms-sw#19290 - cms-sw#19293 - cms-sw#19294 - cms-sw#19490 - cms-sw#19499 - cms-sw#19577 - cms-sw#19585 - cms-sw#19596 - cms-sw#19599 - cms-sw#19627 - cms-sw#19689 - cms-sw#19694 - cms-sw#19703 - cms-sw#19781 - cms-sw#19794 plus the older ones, contained in DQMOffline/Trigger and HLTriggerOffline. It synchronises with CMSSW_9_3_X - DQMServices/ClientConfig - DQMOffline/Configuration - DQMOffline/Trigger - HLTriggerOffline/Btag - HLTriggerOffline/Higgs - HLTriggerOffline/SUSYBSM - HLTriggerOffline/Tau - HLTriggerOffline/Top
This PR includes a backport of the following PRs: - cms-sw#18172 - cms-sw#18950 - cms-sw#18959 - cms-sw#18968 - cms-sw#18971 - cms-sw#19023 - cms-sw#19046 - cms-sw#19078 - cms-sw#19119 - cms-sw#19178 - cms-sw#19290 - cms-sw#19293 - cms-sw#19294 - cms-sw#19490 - cms-sw#19499 - cms-sw#19577 - cms-sw#19585 - cms-sw#19596 - cms-sw#19599 - cms-sw#19627 - cms-sw#19689 - cms-sw#19694 - cms-sw#19703 - cms-sw#19781 - cms-sw#19794 plus the older ones, contained in DQMOffline/Trigger and HLTriggerOffline. It synchronises with CMSSW_9_3_X - DQMServices/ClientConfig - DQMOffline/Configuration - DQMOffline/Trigger - HLTriggerOffline/Btag - HLTriggerOffline/Higgs - HLTriggerOffline/SUSYBSM - HLTriggerOffline/Tau - HLTriggerOffline/Top
This PR includes a backport of the following PRs: - cms-sw#18172 - cms-sw#18950 - cms-sw#18959 - cms-sw#18968 - cms-sw#18971 - cms-sw#19023 - cms-sw#19046 - cms-sw#19078 - cms-sw#19119 - cms-sw#19178 - cms-sw#19290 - cms-sw#19293 - cms-sw#19294 - cms-sw#19490 - cms-sw#19499 - cms-sw#19577 - cms-sw#19585 - cms-sw#19596 - cms-sw#19599 - cms-sw#19627 - cms-sw#19689 - cms-sw#19694 - cms-sw#19703 - cms-sw#19781 - cms-sw#19794 plus the older ones, contained in DQMOffline/Trigger and HLTriggerOffline. It synchronises with CMSSW_9_3_X - DQMServices/ClientConfig - DQMOffline/Configuration - DQMOffline/Trigger - HLTriggerOffline/Btag - HLTriggerOffline/Higgs - HLTriggerOffline/SUSYBSM - HLTriggerOffline/Tau - HLTriggerOffline/Top
Adds a module that makes efficiency histograms for the following triggers:
HLT_Ele15_HT600
HLT_Mu15_HT600
HLT_Ele15_HT450
HLT_Ele50_HT450
HLT_Mu15_HT450
HLT_Mu50_HT450
HLT_DoubleEle8_CaloIdM_TrackIdM_Mass8_DZ_PFHT350
HLT_DoubleEle8_CaloIdM_TrackIdM_Mass8_PFHT350
HLT_DoubleMu4_Mass8_DZ_PFHT350
HLT_DoubleMu4_Mass8_PFHT350
HLT_Mu8_Ele8_CaloIdM_TrackIdM_Mass8_PFHT350_DZ
HLT_Mu8_Ele8_CaloIdM_TrackIdM_Mass8_PFHT350
Each one has monitoring of efficiency as a function of lepton pT, eta and phi, as well as HT and N_PV.
This PR supersedes #19305
This module was tested on the following sample:
/store/relval/CMSSW_9_2_4/RelValTTbarLepton_13/GEN-SIM-DIGI-RAW
in release CMSSW_9_2_4