-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Add DMQ FakeBeamMonitor plugin and clients #30690
Add DMQ FakeBeamMonitor plugin and clients #30690
Conversation
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-30690/16982
|
A new Pull Request was created by @francescobrivio for master. It involves the following packages: DQM/BeamMonitor @andrius-k, @kmaeshima, @schneiml, @cmsbuild, @jfernan2, @fioriNTU can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
please test |
The tests are being triggered in jenkins.
|
+1 |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
Hello, |
Sorry this was not supposed to be closed, I pressed the button by mistake. Should be re-opened now. |
I will open the backport. |
@francescobrivio @gennai there were changes to this PR made by @andrius-k yesterday in the test done at the MWGR, as you suggested. We should include them in this PR, right? If we are expecting to make similar test in the future or actually use the code in online you should push these changes to the PR. Andrius can provide the diff if needed. Thanks |
+1 |
Comparison job queued. |
I don't think this code is meant to be used in online (@gennai please correct me if I'm wrong), but we might want to use it again in similar tests. So if you can provide the diff I will push those changes as well. |
Hi @francescobrivio, diff --git a/CondCore/DBOutputService/src/OnlineDBOutputService.cc b/CondCore/DBOutputService/src/OnlineDBOutputService.cc
index 9f8065c5f44..c1ec99522e9 100644
--- a/CondCore/DBOutputService/src/OnlineDBOutputService.cc
+++ b/CondCore/DBOutputService/src/OnlineDBOutputService.cc
@@ -11,8 +11,9 @@ cond::service::OnlineDBOutputService::OnlineDBOutputService(const edm::Parameter
m_preLoadConnectionString(iConfig.getUntrackedParameter<std::string>("preLoadConnectionString", "")),
m_debug(iConfig.getUntrackedParameter<bool>("debugLogging", false)) {
if (!m_lastLumiUrl.empty()) {
- startTransaction();
- m_runNumber = PoolDBOutputService::session().getCurrentRun().run;
+ //startTransaction();
+ //m_runNumber = PoolDBOutputService::session().getCurrentRun().run;
+ m_runNumber = iConfig.getUntrackedParameter<unsigned long long>("runNumber",100000);
} else {
m_lastLumiFile = iConfig.getUntrackedParameter<std::string>("lastLumiFile", "");
//if( m_lastLumiFile.size() == 0 ){
diff --git a/DQM/Integration/python/clients/beamfake_dqm_sourceclient-live_cfg.py b/DQM/Integration/python/clients/beamfake_dqm_sourceclient-live_cfg.py
index 5cc6468f4a2..704ddcad8f6 100644
--- a/DQM/Integration/python/clients/beamfake_dqm_sourceclient-live_cfg.py
+++ b/DQM/Integration/python/clients/beamfake_dqm_sourceclient-live_cfg.py
@@ -34,6 +34,8 @@ noDB = True
if 'noDB=False' in sys.argv:
noDB=False
+noDB = False
+
#---------------
# Input sources
if unitTest:
@@ -363,8 +365,8 @@ process.OnlineDBOutputService = cms.Service("OnlineDBOutputService",
preLoadConnectionString = cms.untracked.string('frontier://FrontierProd/CMS_CONDITIONS'),
runNumber = cms.untracked.uint64(options.runNumber),
- lastLumiFile = cms.untracked.string('last_lumi.txt'),
- #lastLumiUrl = cms.untracked.string('http://ru-c2e14-11-01.cms:11100/urn:xdaq-application:lid=52/getLatestLumiSection'),
+ #lastLumiFile = cms.untracked.string('last_lumi.txt'),
+ lastLumiUrl = cms.untracked.string('http://ru-c2e14-11-01.cms:11100/urn:xdaq-application:lid=52/getLatestLumiSection'),
writeTransactionDelay = cms.untracked.uint32(options.transDelay),
latency = cms.untracked.uint32(2),
autoCommit = cms.untracked.bool(True), |
Comparison is ready Comparison Summary:
|
thanks @andrius-k !
|
Hi @francescobrivio |
@francescobrivio @ggovi could you clarify a but about the noDB parameter, in particular:
|
kind reminder @francescobrivio |
Hi, I can answer on the above points. noDB means that a sql file is created instead of uploading the new payload to the Prod condition DB. You are basically right. |
Sorry for the delay. Please see the inline answers.
Not sure I understand the
This is correct
Correct. The |
Thanks @francescobrivio @gennai noDB = False will only be used on very dedicated ocasions, since DQM core will have to pass it manually by command line on a very limited number of runs. We have to manually switch it off on the client running at P5, which is error prone and not desired, that's what I meant by run selectively Correct? |
yes. |
+1 |
This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @silviodonato, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
@francescobrivio we need a new PR in Master with |
PR description:
Added one new plugin under DQM/BeamMonitor:
DQM/BeamMonitor/plugins/FakeBeamMonitor.cc
Added two clients (basically a copy of the already existing beamspot clients) that run the new FakeBeamMonitor plugin:
DQM/Integration/python/clients/beamfake_dqm_sourceclient-live_cfg.py
DQM/Integration/python/clients/beamhltfake_dqm_sourceclient-live_cfg.py
PR validation:
The new plugin and clients have been tested "offline" by me, @gennai and @ggovi using and "EmpySource" and thanks to @smorovic who was running a DAQ with fake runs.
Two customizations are needed in the clients:
authenticationPath
(lines 358 ofbeamfake_dqm_sourceclient-live_cfg.py
and 160 ofbeamhltfake_dqm_sourceclient-live_cfg.py
) should contain the path to thedb.key
file, needed for the upload to CondDB. A copy of this key can be found at P5 under~govi/bs_key/.cms_cond
(@ggovi can confirm).lastLumiUrl
(lines 367 ofbeamfake_dqm_sourceclient-live_cfg.py
and 169 ofbeamhltfake_dqm_sourceclient-live_cfg.py
) was working fine at the moment of the test, but should be double checked.Backporting
A backport to CMSSW_11_1_X might be needed.