-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
PPS lhcInfo split: per fill and per LS PopCon #40817
Conversation
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40817/34268
|
A new Pull Request was created by @JanChyczynski (jan_chyczynski) for master. It involves the following packages:
@malbouis, @cmsbuild, @saumyaphor4252, @ggovi, @francescobrivio, @tvami can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
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.
Let me send you a partial review. I also didn't comment on each places, but there are a few recurring problems, please fix them at each occurance
CondTools/RunInfo/interface/LHCInfoPerFillPopConSourceHandler.h
Outdated
Show resolved
Hide resolved
CondTools/RunInfo/interface/LHCInfoPerFillPopConSourceHandler.h
Outdated
Show resolved
Hide resolved
#include "CondCore/PopCon/interface/PopConSourceHandler.h" | ||
#include "CondFormats/RunInfo/interface/LHCInfoPerLS.h" | ||
#include "FWCore/ParameterSet/interface/ParameterSetfwd.h" | ||
#include "CondCore/CondDB/interface/Types.h" | ||
#include "CondTools/RunInfo/interface/OMSAccess.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 alpha order this
@@ -0,0 +1,535 @@ | |||
#include "FWCore/MessageLogger/interface/MessageLogger.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.
alpha order
} | ||
//L1: try with different m_dipSchema | ||
//L2: try with different m_name | ||
LHCInfoPerLSPopConSourceHandler::~LHCInfoPerLSPopConSourceHandler() {} |
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.
default as earlier
I'm a bit confused.. In the end we dont want to upload to a private PPD DB, right? We want to upload to the main CondDB, so why are PPS specific keys needed? |
@tvami : Several data are coming from PPS database -> PopCon -> LHCInfo |
ciao @vavati thanks! I'm just wondering how we could have some tests in CMSSW. The bot has some credentials but I dont know if it has the PPS keys, @smuzaffar do you recall anything connected to PPS in the bot credentials? |
bot has |
ok I think I have fixed this (i.e. given the permission to read the needed DBs to the IB key), so the next round of tests (after the comments are addressed) should work fine. |
Great! So @JanChyczynski let's add unit tests that runs
in CMSSW |
@JanChyczynski do you have any updates on this PR? |
I made all the suggested changes but I'm still working on the unit tests. |
I've just pushed a few commits with the suggested changes and the unit tests (I'll squash them after the review). |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40817/35042
|
Pull request #40817 was updated. @cmsbuild, @tvami, @saumyaphor4252, @francescobrivio can you please check and sign again. |
Nothing is missing, I addressed all the comments. I just didn't want to squash it as you might have wanted to look at the last commits in separate to see how I addressed the last issues. If you have no further comments I guess it's done and I'll go ahead and squash them |
9699633
to
6b35a12
Compare
@cmsbuild , please test |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40817/35268
|
Pull request #40817 was updated. @tvami, @saumyaphor4252, @francescobrivio can you please check and sign again. |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-1b1fdd/32132/summary.html Comparison SummarySummary:
|
+db
|
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. @perrotta, @dpiparo, @rappoccio (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
The test was introduced in cms-sw#40817 and fails for non-amd64 architectures: it connects to Oracle databases, and proprietary libraries for that are only available for amd64.
PR description:
Populator of Conditions for the new records,
LHCInfoPerLS
andLHCInfoPerFill
introduced in PR39495, to be used instead ofLHCInfo
. Manages the data sources (OMS, CTPPS OnlineDB, DIP), creates objects of the new classes and writes them to the ofline database (CondDB). Heavily based on originalLHCInfo PopCon
.The main mechanism is to take fills data from
OMS
(filtered by time and having stable beam), iterate through them and for every fill (meeting certian coditions depending on the mode and record) get data from all the sources, create payloads and write them to the offline database.There are separate programs for
...perLS
and...perFill
classess. Both of them have 2 modes:duringFill
andendFill
.The
duringFill
mode, when ran, writes data (just 1 payload of most recent data) only for ongoing fills and only during stable beam.PerFill
PopCon writes the payload only once per fill, andperLS
PopCon writes a payload every time it's run during a stable beam.The
endFill
processes a fill only once, after it's ended.PerFill
PopCon writes payloads corresponding to all the lumisections of the fill (filtered for duplicates), andperLS
PopCon writes 2 payloads: corresponding to the start, and the end of the stable beam of the fill.The worklows are ment to be run by python scripts located in
CondTools/RunInfo/python
:more info: presentation on LHCInfo update from AlCaDBmeeting
PR validation:
The python scripts running the workflow were tested on several defferent periods of time (set by the
startTime
andendTime
parameters) by analysing the logs and data in the written payloads.To run the PopCon the PPS database keys are required (located in
.cms_cond
folder in path you can specify inauthenticationPath
argument in the python script).The new PopCon was also used in further development (update of proton reconstruction, to be submitted in the next PR).