Skip to content
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

Merged
merged 9 commits into from Feb 4, 2019

Conversation

makortel
Copy link
Contributor

@makortel makortel commented Jan 2, 2019

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.

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 2, 2019

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 2, 2019

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 2, 2019

A new Pull Request was created by @makortel (Matti Kortelainen) for master.

It involves the following packages:

Configuration/StandardSequences
L1Trigger/Configuration
L1Trigger/L1TCalorimeter
L1Trigger/L1TCommon
L1Trigger/L1TGlobal
L1Trigger/L1TMuon
L1Trigger/L1TNtuples

@cmsbuild, @nsmith-, @rekovic, @franzoni, @thomreis, @fabiocos, @davidlange6 can you please review it and eventually sign? Thanks.
@kreczko, @felicepantaleo, @GiacomoSguazzoni, @rovere, @VinInn, @Martin-Grunewald, @thomreis, @dgulhan this is something you requested to watch as well.
@davidlange6, @slava77, @fabiocos you are the release manager for this.

cms-bot commands are listed here

@makortel
Copy link
Contributor Author

makortel commented Jan 2, 2019

@cmsbuild, please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 2, 2019

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/32398/console Started: 2019/01/02 22:13

@@ -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.")
Copy link
Contributor Author

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().

Copy link
Contributor

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.

@makortel
Copy link
Contributor Author

makortel commented Jan 2, 2019

Is this customization file

def getSubsystemsToEmulate(subsys):
if not stage2L1Trigger.isChosen():
if 'ECAL' in subsys:
subsys.append('RCT')

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")
Copy link
Contributor Author

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.

Copy link
Contributor

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.

Copy link
Contributor

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

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 3, 2019

-1

Tested at: de3f27a

You can see the results of the tests here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-25577/32398/summary.html

I found follow errors while testing this PR

Failed tests: AddOn

  • 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
cmsRun /cvmfs/cms-ib.cern.ch/week1/slc7_amd64_gcc700/cms/cmssw-patch/CMSSW_10_5_X_2019-01-02-1100/src/HLTrigger/Configuration/test/OnLine_HLT_Fake.py realData=False globalTag=@ inputFiles=@ : FAILED - time: date Thu Jan 3 01:08:29 2019-date Thu Jan 3 00:52:40 2019 s - exit: 21504
cmsDriver.py RelVal -s HLT:Fake,RAW2DIGI,L1Reco,RECO --mc --scenario=pp -n 10 --conditions auto:run1_mc_Fake --relval 9000,50 --datatier "RAW-HLT-RECO" --eventcontent FEVTDEBUGHLT --customise=HLTrigger/Configuration/CustomConfigs.L1THLT --processName=HLTRECO --filein file:RelVal_Raw_Fake_MC.root --fileout file:RelVal_Raw_Fake_MC_HLT_RECO.root : FAILED - time: date Thu Jan 3 01:08:29 2019-date Thu Jan 3 00:52:40 2019 s - exit: 21504

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 3, 2019

Comparison job queued.

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 31, 2019

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/32934/console Started: 2019/01/31 18:03

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

Comparison job queued.

@cmsbuild
Copy link
Contributor

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-25577/32934/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 32
  • DQMHistoTests: Total histograms compared: 3097440
  • DQMHistoTests: Total failures: 148
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3097095
  • DQMHistoTests: Total skipped: 197
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 31 files compared)
  • Checked 133 log files, 14 edm output root files, 32 DQM output files

@rekovic
Copy link
Contributor

rekovic commented Feb 1, 2019

#25577 (comment)
#25577 (comment)

Addressed.
And , Yes, can remove L1Trigger/Configuration/python/customise_ReEmulateL1_cff.py in this PR. Thanks.

@rekovic
Copy link
Contributor

rekovic commented Feb 1, 2019

Ok.
No RECO differences this time.
The DQM differences are from the known instability of Tau, that need to be addressed separately.

@rekovic
Copy link
Contributor

rekovic commented Feb 1, 2019

+1

@fabiocos
Copy link
Contributor

fabiocos commented Feb 1, 2019

+operations

@makortel if you agree we may move forward with this PR and possible additional updates are done separately. Please let me know

@cmsbuild
Copy link
Contributor

cmsbuild commented Feb 1, 2019

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)

@makortel
Copy link
Contributor Author

makortel commented Feb 1, 2019

@fabiocos Sounds good, thanks.

@fabiocos
Copy link
Contributor

fabiocos commented Feb 4, 2019

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants