-
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
Redefine the deafult behavior of the --beamspot option in cmsDriver #47182
Comments
cms-bot internal usage |
A new Issue was created by @francescobrivio. @Dr15Jones, @antoniovilela, @makortel, @mandrenguyen, @rappoccio, @sextonkennedy, @smuzaffar can you please review it and eventually sign/assign? Thanks. cms-bot commands are listed here |
assign core,pdmv |
New categories assigned: core,pdmv @AdrianoDee,@DickyChant,@Dr15Jones,@makortel,@miquork,@smuzaffar you have been requested to review this Pull request/Issue and eventually sign? Thanks |
unassign core Core does not maintain |
assign operations |
New categories assigned: operations @antoniovilela,@davidlange6,@fabiocos,@mandrenguyen,@rappoccio you have been requested to review this Pull request/Issue and eventually sign? Thanks |
Ups sorry Matti! I thought configBuilder was important enough to be under |
How often there are cases where |
I think whenever (@francescobrivio please correct me in case): a. one uses a GT not including the BS (that I think it is now limited to cases when one want's to re-run on some older samples?); Given this I would vote for:
to catch any problem already at config level rather than at runtime (e.g. when in case a. one forgets to specify |
I agree. (core generally favors reporting errors early and loudly) |
For completeness, I just want to mention that if the GlobalTag is self-consistent among the GEN and RECO beanspot records (@cms-sw/alca-l2 should guarantee that), there's no need to throw at configuration or runtime (and if it's not self-consistent the campaign would be wrong even if you pass the
I think that if you don't specify it when you would need to, it leads to crashes at runtime (see https://gitlab.cern.ch/cms-ppd/cms-ppd-matters/-/issues/52#note_8968304 ). Perhaps could crash more gracefully ;) |
I followed up at #47189. |
Issue Description
As reported to me by @missirol and @malbouis, it happened recently that in a MC campaign (Winter25, see this GEN-SIM driver for example) the
--beamspot
option was not specified in the cmsDriver.After digging a little this is what I understand the current behavior in such cases is:
VtxSmearedDefaultKey
is set:cmssw/Configuration/Applications/python/ConfigBuilder.py
Lines 1064 to 1065 in 0c082e9
cmssw/Configuration/StandardSequences/python/VtxSmeared.py
Line 79 in 75451d5
cmssw/IOMC/EventVertexGenerators/python/VtxSmearedParameters_cfi.py
Lines 504 to 524 in 0c082e9
Thus effectively invalidating the MC campaign...
Possible Solutions
In order two avoid this happening again in the future, we (discussing with @mmusich) believe there are two possible options:
VtxSmearedDefaultKey
value to beDBrealistic
, which instructs the framework to read the VtxSmearing scenario from the GT (as introduced in Read VertexSmearing from GT in Run-1/2/3 MC #43242).--beamspot
parameter has not been set in the cmsDriver.Both options are equally valid IMHO, so I'd like the opinion of @cms-sw/core-l2 @cms-sw/pdmv-l2.
FYI @cms-sw/ppd-l2 @missirol @mtosi
The text was updated successfully, but these errors were encountered: