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

CMS code rules for CSC digi and trigger objects #29782

Closed
wants to merge 12 commits into from
Closed

CMS code rules for CSC digi and trigger objects #29782

wants to merge 12 commits into from

Conversation

dildick
Copy link
Contributor

@dildick dildick commented May 8, 2020

PR description:

Apply section 2.9 and 2.11 of http://cms-sw.github.io/cms_coding_rules.html onto several CSC digi and trigger objects, per Vladimir Rekovic's request (#29456 (comment)). For nearly all changes I ran a recursive search-replace.

I renamed CSCCLCTData in EventFilter/CSCRawToDigi to CSCComparatorData, because it does not actually contain the CLCTs. It only contains comparator digis. In fact, CLCTs are kept in CSCTMBHeader

I removed CSCComparatorDigiFitter in L1Trigger/CSCTriggerPrimitives. It was originally meant to be used in the CLCT processor, but it was never properly integrated, and the CCLUT algorithm will be doing that in the near future (see various PRs with tag CCLUT).

PR validation:

Code compiles. Tested with WF 26634.0.

if this PR is a backport please specify the original PR and why you need to backport that PR:

N/A

@cmsbuild
Copy link
Contributor

cmsbuild commented May 8, 2020

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

cmsbuild commented May 8, 2020

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-29782/15239

Code check has found code style and quality issues which could be resolved by applying following patch(s)

@cmsbuild
Copy link
Contributor

cmsbuild commented May 9, 2020

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

cmsbuild commented May 9, 2020

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-29782/15255

Code check has found code style and quality issues which could be resolved by applying following patch(s)

@cmsbuild
Copy link
Contributor

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-29782/15264

Code check has found code style and quality issues which could be resolved by applying following patch(s)

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-29782/15265

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @dildick (Sven Dildick) for master.

It involves the following packages:

DQM/CSCMonitorModule
DQM/L1TMonitor
DQMOffline/Muon
DataFormats/CSCDigi
DataFormats/L1CSCTrackFinder
EventFilter/CSCRawToDigi
EventFilter/CSCTFRawToDigi
EventFilter/L1TRawToDigi
L1Trigger/CSCTrackFinder
L1Trigger/CSCTriggerPrimitives
L1Trigger/DTTrackFinder
L1Trigger/HardwareValidation
L1Trigger/L1TMuon
L1Trigger/L1TMuonEndCap
L1Trigger/L1TMuonOverlap
L1Trigger/L1TNtuples
RecoLocalMuon/CSCValidation
Validation/MuonCSCDigis

@perrotta, @benkrikler, @kmaeshima, @civanch, @schneiml, @andrius-k, @mdhildreth, @cmsbuild, @rekovic, @jfernan2, @fioriNTU, @slava77 can you please review it and eventually sign? Thanks.
@Martin-Grunewald, @barvic, @kreczko, @bellan, @abbiendi, @Fedespring, @rovere, @valuev, @calderona, @HuguesBrun, @jhgoh, @thomreis, @ptcox, @cericeci, @trocino, @folguera, @rociovilar this is something you requested to watch as well.
@silviodonato, @dpiparo you are the release manager for this.

cms-bot commands are listed here

@jfernan2
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented May 11, 2020

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-run-pr-tests/6209/console Started: 2020/05/11 09:52

@cmsbuild
Copy link
Contributor

+1
Tested at: ce7fc64
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-1ae16a/6209/summary.html
CMSSW: CMSSW_11_1_X_2020-05-10-2300
SCRAM_ARCH: slc7_amd64_gcc820

@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-1ae16a/6209/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 34
  • DQMHistoTests: Total histograms compared: 2697419
  • DQMHistoTests: Total failures: 16
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2697084
  • DQMHistoTests: Total skipped: 319
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: -0.324 KiB( 33 files compared)
  • DQMHistoSizes: changed ( 1000.0,... ): -0.012 KiB CSC/CSCOfflineMonitor
  • Checked 147 log files, 16 edm output root files, 34 DQM output files

@jfernan2
Copy link
Contributor

MonitorElement *hALCTgetBX2DNumerator;
MonitorElement *hALCTbx;
MonitorElement *hALCTbxSerial;
// MonitorElement *hALCTbxChamberMeans;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These name changes will probably need a PR in
https://github.com/dmwm/deployment/blob/master/dqmgui/style/CSCRenderPlugin.cc#L2684-L2686
to mantain the same style in DQM GUI

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jfernan2 I'll undo the changes in the histogram naming. Thanks for pointing this out.

@@ -185,40 +185,40 @@ class CSCCorrelatedLCTDigi {
// more information, please check "DN-20-016".

// Run-1, Run-2 and Run-3 trknmb is either 1 or 2.
uint16_t trknmb;
uint16_t trackNumber_;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there any old data where CSCCorrelatedLCTDigi should still be readable correctly?
I do not see any ioread rules to preserve backward compatibility.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Slava, yes, I need to add the ioread rules. Thanks.

@ptcox
Copy link
Contributor

ptcox commented May 11, 2020 via email

@slava77
Copy link
Contributor

slava77 commented May 11, 2020

This looks scary. People doing Tag & Probe for CSC LCT efficiencies expect to be able to read CorrelatedLCT digis in ALL data that ever existed. Of course, perhaps these specific members aren't used, but I have no idea. Tim

Slava Krutelyov @.> May 11, 2020 at 16:09 @.* commented on this pull request. ------------------------------------------------------------------------ In DataFormats/CSCDigi/interface/CSCCorrelatedLCTDigi.h <#29782 (comment)>: > @@ -185,40 +185,40 @@ class CSCCorrelatedLCTDigi { // more information, please check "DN-20-016". // Run-1, Run-2 and Run-3 trknmb is either 1 or 2. - uint16_t trknmb; + uint16_t trackNumber_; is there any old data where CSCCorrelatedLCTDigi should still be readable correctly? I do not see any ioread rules to preserve backward compatibility. — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#29782 (review)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABGYLHSTBFAX5RTG4O6XURLRRABJ3ANCNFSM4M4JXX4Q.

is there an example workflow to check?
I suppose that the main case of concern is reading the sim digis of type CSCCorrelatedLCTDigi. The regular digis are typically repacked, where the compatibility is ensured at the FED RAW level.

@ptcox
Copy link
Contributor

ptcox commented May 11, 2020 via email

@dildick
Copy link
Contributor Author

dildick commented May 11, 2020

@ptcox I understand your concerns. The T&P studies on CSC LCTs are particularly important. I'm fine with delaying this for a few months and closing this PR for now.

@dildick dildick closed this May 12, 2020
@dildick dildick deleted the from-CMSSW_11_1_X_2020-05-08-1100-CMS-code-rules-CSC-trigger_v2 branch May 19, 2020 23:44
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.

5 participants