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
Remove nearly all calls to Modifier.isChosen() from L1T configurations #25577
Conversation
…alls to isChosen()
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-25577/7815 |
A new Pull Request was created by @makortel (Matti Kortelainen) for master. It involves the following packages: Configuration/StandardSequences @cmsbuild, @nsmith-, @rekovic, @franzoni, @thomreis, @fabiocos, @davidlange6 can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
@cmsbuild, please test |
The tests are being triggered in jenkins. |
@@ -11,118 +11,118 @@ | |||
else: | |||
print("L1T INFO: L1REPACK:CalouGT (intended for 2016/2017 data), reemulates the Calo part, uses unpacked Muons, and reemulates uGT.") |
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.
Are these printouts still needed (also in other SimL1EmulatorRepack_*
files)? If no, I'd remove them, if yes, there is likely a (bit hacky) way to recast them as calls to Modifier.toModify()
.
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.
These comments are useful to remind the user of intricacies of the expert level workflow. I'd like to keep them, please.
Is this customization file cmssw/L1Trigger/Configuration/python/customise_ReEmulateL1_cff.py Lines 8 to 12 in 315e069
still needed ( git grep would indicate "no")? If not, I'd remove it, if yes, the customizations can likely be recast to calls to Modifier.toModify() .
|
from L1Trigger.L1TCalorimeter.simCaloStage2Digis_cfi import simCaloStage2Digis | ||
stage2L1Trigger.toReplaceWith(SimL1TCalorimeter, cms.Sequence( simCaloStage2Layer1Digis + simCaloStage2Digis )) | ||
|
||
def _modifyStage2L1TriggerCaloParams(process): | ||
from CondCore.CondDB.CondDB_cfi import CondDB | ||
CondDB.connect = cms.string("frontier://FrontierProd/CMS_CONDITIONS") |
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.
This line modifies the global CondCore.CondDB.CondDB_cfi.CondDB
object. It would be better to modify a local clone. I can do that either in this PR or separately.
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.
OK. Either way fine with me.
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.
@makortel so I suggest that we move forward with this PR and your suggestion is implemented in a further PR
-1 Tested at: de3f27a You can see the results of the tests here: I found follow errors while testing this PR Failed tests: AddOn
I found errors in the following addon tests: cmsDriver.py TTbar_Tauola_8TeV_TuneCUETP8M1_cfi -s GEN,SIM,DIGI,L1,DIGI2RAW --mc --scenario=pp -n 10 --conditions auto:run1_mc_Fake --relval 9000,50 --datatier "GEN-SIM-RAW" --eventcontent RAWSIM --customise=HLTrigger/Configuration/CustomConfigs.L1T --fileout file:RelVal_Raw_Fake_MC.root : FAILED - time: date Thu Jan 3 01:08:29 2019-date Thu Jan 3 00:52:40 2019 s - exit: 35584 |
Comparison job queued. |
The tests are being triggered in jenkins. |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
Ok. |
+1 |
+operations @makortel if you agree we may move forward with this PR and possible additional updates are done separately. Please let me know |
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. @davidlange6, @slava77, @smuzaffar, @fabiocos (and backports should be raised in the release meeting by the corresponding L2) |
@fabiocos Sounds good, thanks. |
+1 |
This PR includes a suggestion on how to modify bunch of L1T configuration files to remove nearly all calls to
cms.Modifier.isChosen()
. It includes also some "modernization" of the customization style on the modified parts.Tested in 10_4_0_pre4 (full matrix runs), no changes expected.