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
Hlt tau validation update cmssw91 x april2017 #18172
Hlt tau validation update cmssw91 x april2017 #18172
Conversation
A new Pull Request was created by @slehti for master. It involves the following packages: DQMOffline/Trigger @cmsbuild, @dmitrijus, @vanbesien, @davidlange6 can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
const boost::regex probepath(tpset.getUntrackedParameter<std::string>("probe")); | ||
std::string xvariable = tpset.getUntrackedParameter<std::string>("xvariable"); | ||
|
||
std::string pathNameNum = ""; |
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.
would it be possible to make use of the TriggerGenericEventFlag
[1] ?
(as it is done by DQMOffline/Trigger/plugins/METMonitor.cc)
thanks
[1]
CommonTools/TriggerUtils/interface/GenericTriggerEventFlag.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.
it allows, not only to apply HLT selection, but in case of need L1 as well
in addition, it allows to select events based on the DCS status bit, which is very important to clean your analysis from events where part of the detectors are not operating
thanks @slehti ! |
+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. @Muzaffar, @davidlange6, @smuzaffar |
Comparison job queued. |
@@ -55,6 +58,10 @@ class HLTTauDQMOfflineSource : public DQMEDAnalyzer { | |||
edm::EDGetTokenT<LVColl> token; | |||
}; | |||
std::vector<RefObject> refObjects_; | |||
std::vector<edm::ParameterSet> tagAndProbePaths; |
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.
Hi @slehti - it doesn't look like this object needs to be member data of the class - it could instead be a local variable?
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 size of tagAndProbePaths is used in HLTTauDQMOfflineSource::dqmBeginRun to check if the original dqm should be done or not. So a member is needed, but it can be boolean. Do you prefer boolean, or shall I leave the code as is?
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.
hi @slehti - sorry for my slow answer - seems I missed your response
It looks like you can use
num_genTriggerEventFlag_.size()!=0
instead. if not, indeed, a simple bool is preferred.
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.
in general it is preferable to use not collection.empty()
instead of collection.size() != 0
@@ -55,6 +58,10 @@ class HLTTauDQMOfflineSource : public DQMEDAnalyzer { | |||
edm::EDGetTokenT<LVColl> token; | |||
}; | |||
std::vector<RefObject> refObjects_; | |||
std::vector<edm::ParameterSet> tagAndProbePaths; | |||
|
|||
GenericTriggerEventFlag* num_genTriggerEventFlag_; |
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 use unique_ptrs here
Pull request #18172 was updated. @cmsbuild, @dmitrijus, @vanbesien, @davidlange6 can you please check and sign again. |
Changed tagAndProbePaths to be local variable, and added global bool. |
please test |
The tests are being triggered in jenkins. |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
@dmitrijus, @vanbesien, @davidlange6 |
@@ -58,7 +58,7 @@ class HLTTauDQMOfflineSource : public DQMEDAnalyzer { | |||
edm::EDGetTokenT<LVColl> token; | |||
}; | |||
std::vector<RefObject> refObjects_; | |||
std::vector<edm::ParameterSet> tagAndProbePaths; | |||
bool tagAndProbe; |
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.
hi @slehti - in a follow up PR, please change this to tagAndProbe_. Thanks
tracked by #19142 |
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
New PR to master instead of 91X.