-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Use CSCConstants in CSC trigger, packer, unpacker and track-finders #33429
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
Use CSCConstants in CSC trigger, packer, unpacker and track-finders #33429
Conversation
|
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-33429/22093
|
|
A new Pull Request was created by @dildick (Sven Dildick) for master. It involves the following packages: DataFormats/L1TMuon @perrotta, @andrius-k, @kmaeshima, @ErnestaP, @ahmad3213, @cmsbuild, @rekovic, @jfernan2, @slava77, @jpata, @cecilecaillol, @rvenditti can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
|
@cmsbuild please test |
|
-1 Failed Tests: Build BuildI found compilation error when building: >> Compiling /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_3_X_2021-04-13-2300/src/L1Trigger/CSCTrackFinder/src/CSCTFDTReceiver.cc
>> Compiling /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_3_X_2021-04-13-2300/src/L1Trigger/CSCTrackFinder/src/CSCTFDTReceiverLUT.cc
>> Compiling /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_3_X_2021-04-13-2300/src/L1Trigger/CSCTrackFinder/src/CSCTFMuonSorter.cc
>> Compiling /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_3_X_2021-04-13-2300/src/L1Trigger/CSCTrackFinder/src/CSCTFPtLUT.cc
/data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_3_X_2021-04-13-2300/src/L1Trigger/CSCTrackFinder/src/CSCSectorReceiverMiniLUT.cc: In static member function 'static global_eta_data CSCSectorReceiverMiniLUT::calcGlobalEtaMEMini(short unsigned int, short unsigned int, short unsigned int, short unsigned int, unsigned int, bool)':
/data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_3_X_2021-04-13-2300/src/L1Trigger/CSCTrackFinder/src/CSCSectorReceiverMiniLUT.cc:75:61: error: 'MAX_NUM_WIRES' is not a member of 'CSCConstants'
75 | if ((tcscid > 0) && (tcscid <= 12) && (WG < CSCConstants::MAX_NUM_WIRES)) {
| ^~~~~~~~~~~~~
/data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_3_X_2021-04-13-2300/src/L1Trigger/CSCTrackFinder/src/CSCSectorReceiverMiniLUT.cc:116:89: error: 'MAX_NUM_WIRES' is not a member of 'CSCConstants'
116 | << " Value of wire group, " << WG << ", exceeds max allowed, " << CSCConstants::MAX_NUM_WIRES << " +++\n";
| ^~~~~~~~~~~~~
|
|
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-33429/22098
|
|
Pull request #33429 was updated. @perrotta, @andrius-k, @kmaeshima, @ErnestaP, @ahmad3213, @cmsbuild, @rekovic, @jfernan2, @slava77, @jpata, @cecilecaillol, @rvenditti can you please check and sign again. |
|
@cmsbuild please test |
|
Pull request #33429 was updated. @perrotta, @civanch, @kmaeshima, @andrius-k, @mdhildreth, @ErnestaP, @cmsbuild, @rekovic, @jfernan2, @ahmad3213, @slava77, @jpata, @cecilecaillol, @rvenditti can you please check and sign again. |
|
please test |
|
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-ed5012/14332/summary.html CMS Clang-Tidy warnings: There are Clang-Tidy warnings. See https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-ed5012/14332/llvm-analysis/cmsclangtidy.txt for details. Comparison SummarySummary:
|
|
+l1 |
|
+1 |
|
+1
|
|
cc @cms-sw/muon-dpg-l2 |
|
+1 |
|
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. @silviodonato, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2) |
|
+1 |
PR description:
The CSC trigger, packer, unpacker and track-finders are loaded with magic numbers. This PR redefines (some of) them in
CSCConstants.h. In particular, the following substitutions were made (where applicable):CSCDetId::minLayerId()orCSCConstants::NUM_CFEBS_ME1A_GANGEDCSCConstants::NUM_CFEBS_ME1A_UNGANGEDCSCConstants::NUM_CFEBS_ME1BCSCConstants::MAX_CFEBSorCSCConstants::NUM_DDUSCSCDetId::maxLayerId()CSCConstants::MAX_CFEBS_RUN2CSCConstants::NUM_DISTRIPS_PER_CFEBCSCConstants::NUM_STRIPS_PER_CFEBorCSCConstants::NUM_STRIPS_ME1A_GANGEDCSCConstants::NUM_HALF_STRIPS_PER_CFEBCSCConstants::NUM_STRIPS_ME1A_UNGANGEDCSCConstants::NUM_STRIPS_ME1BCSCConstants::NUM_HALF_STRIPS_ME1A_UNGANGEDCSCConstants::NUM_HALF_STRIPS_ME1BMAX_NUM_WIRES- >MAX_NUM_WIREGROUPSbecause the unit of "theta" in the muon endcap trigger is wiregroup, not wire.The following statements in CSCComparatorData.cc were encapsulated in class functions:
(strip - 1) * 2 + digi.getComparator()->CSCComparatorDigi::getHalfStrip()((strip_ - 1) % 16) / 2;->CSCComparatorDigi::getDiStrip()(strip_ - 1) / 16;->CSCComparatorDigi::getCFEB()orCSCStripDigi::getCFEB()A few constants related to the (maximum) number of half-strips were clarified, introduced or reconfigured in the CSCConstants file.
MAX_NUM_STRIPS_RUN1MAX_NUM_STRIPS_RUN2MAX_NUM_HALF_STRIPS_RUN1MAX_NUM_HALF_STRIPS_RUN2MAX_NUM_HALF_STRIPS_RUN1_TRIGGERMAX_NUM_HALF_STRIPS_RUN2_TRIGGERSeveral assert statements were tightened in the packer as well.
The file
CSCConstants.hwas moved fromDataFormats/L1TMuontoDataFormats/CSCDigito minimize dependencies with the L1TMuon system.This PR is done in preparation of re-enabling the CFEB packing based on CLCT pre-trigger digis for Run-3 Monte Carlo.
PR validation:
Tested with WF 11634.0. There should be 0 changes with respect to the baseline anywhere.
if this PR is a backport please specify the original PR and why you need to backport that PR:
N/A
Before submitting your pull requests, make sure you followed this checklist:
@ptcox @barvic