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

Modify RPC isFront function to match criteria with will be modified RPC geometries for Run, Run 3 and Run 4 #47138

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eigen1907
Copy link

@eigen1907 eigen1907 commented Jan 20, 2025

PR description:

This PR modifies the isFront function inside the RPC Endcap Geometry Builder.
It will be applied in synchronization with PR (#47134) by Sunanda Banerjee.

The isFront function classifies RPCs as front or back chambers by RPC Ids.

As the PR (#47134) modifies the z coordinates of RPCs inside RPC endcap stations (RE-4, RE-3, RE-2, RE+2, RE+3, RE+4),
The criteria for the isFront function needs to be changed as well.
Therefore, this PR modifies the criteria for the isFront function correctly as the z coordinate changes.

For history and more details, see the previous meeting materials.
(https://indico.cern.ch/event/1475698/contributions/6214667/attachments/2962024/5210467/RPCGeomReport_241106RPCDPG_JShin.pdf)

PR validation:

To avoid errors, this PR should be used with #47134 and the new scenario.
Otherwise (when applying this PR alone), the error below will be raised by the selfTest function in the Geometry Builder.

Error reproduction)

A fatal system signal has occurred: abort signal
The following is the call stack containing the origin of the signal.
...
#9  0x00007f62d8e9276c in MuRingForwardDoubleLayer::selfTest() const () from /eos/home-j/joshin/workspace-eos/rpc-geometry/update-isfront/CMSSW_15_0_0_pre1/lib/el9_amd64_gcc12/libRecoMuonDetLayers.so
#10 0x00007f62d8e9359b in MuRingForwardDoubleLayer::MuRingForwardDoubleLayer(std::vector<ForwardDetRing const*, std::allocator<ForwardDetRing const*> > const&, std::vector<ForwardDetRing const*, std::allocator<ForwardDetRing const*> > const&) () from /eos/home-j/joshin/workspace-eos/rpc-geometry/update-isfront/CMSSW_15_0_0_pre1/lib/el9_amd64_gcc12/libRecoMuonDetLayers.so
#11 0x00007f62d8e9f36f in MuonRPCDetLayerGeometryBuilder::buildLayer(int, std::vector<int, std::allocator<int> > const&, int, int, std::vector<int, std::allocator<int> >&, RPCGeometry const&) () from /eos/home-j/joshin/workspace-eos/rpc-geometry/update-isfront/CMSSW_15_0_0_pre1/lib/el9_amd64_gcc12/libRecoMuonDetLayers.so
#12 0x00007f62d8e9fea8 in MuonRPCDetLayerGeometryBuilder::buildEndcapLayers(RPCGeometry const&) () from /eos/home-j/joshin/workspace-eos/rpc-geometry/update-isfront/CMSSW_15_0_0_pre1/lib/el9_amd64_gcc12/libRecoMuonDetLayers.so
#13 0x00007f62bb85a0bf in MuonDetLayerGeometryESProducer::produce(MuonRecoGeometryRecord const&) () from /cvmfs/cms.cern.ch/el9_amd64_gcc12/cms/cmssw/CMSSW_15_0_0_pre1/lib/el9_amd64_gcc12/pluginRecoMuonDetLayersPlugins.so
...

This change will also require a new payload for RPC Geometry when working with Global Tags.

If this PR is a backport please specify the original PR and why you need to backport that PR. If this PR will be backported please specify to which release cycle the backport is meant for:

Nothing special

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 20, 2025

cms-bot internal usage

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @eigen1907 for master.

It involves the following packages:

  • RecoMuon/DetLayers (reconstruction)

@cmsbuild, @jfernan2, @mandrenguyen can you please review it and eventually sign? Thanks.
@CeliaFernandez, @Fedespring, @HuguesBrun, @abbiendi, @andrea21z, @bellan, @cericeci, @jhgoh, @missirol, @rociovilar, @trocino this is something you requested to watch as well.
@antoniovilela, @mandrenguyen, @rappoccio, @sextonkennedy you are the release manager for this.

cms-bot commands are listed here

@eigen1907 eigen1907 changed the title Modify RPC isFront function to match criteria with modified RPC geometries for Run, Run 3 and Run 4 Modify RPC isFront function to match criteria with will be modified RPC geometries for Run, Run 3 and Run 4 Jan 20, 2025
@perrotta
Copy link
Contributor

please test
(#47134 is already merged in the IBs)

@bsunanda
Copy link
Contributor

The new scenarios are in #47158 (Run2), #47159 (Run3) and #47160 (Run4).

@perrotta
Copy link
Contributor

please abort

@perrotta
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

-1

Failed Tests: UnitTests RelVals RelVals-INPUT AddOn
Size: This PR adds an extra 16KB to repository
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-09a151/43910/summary.html
COMMIT: 185af90
CMSSW: CMSSW_15_0_X_2025-01-21-2300/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/47138/43910/install.sh to create a dev area with all the needed externals and cmssw changes.

Unit Tests

I found 2 errors in the following unit tests:

---> test test_MC_22_crosscheck had ERRORS
---> test test_MC_23_crosscheck had ERRORS

RelVals

  • 135.4A fatal system signal has occurred: abort signal
  • 1306.0A fatal system signal has occurred: abort signal
  • 7.3A fatal system signal has occurred: abort signal
Expand to see more relval errors ...

RelVals-INPUT

  • 145.711145.711_RunParkingSingleMuon02024I/step2_RunParkingSingleMuon02024I.log
  • 1030.01030.0_RunHLTPhy2017B/step2_RunHLTPhy2017B.log
  • 145.7145.7_RunBTagMu2024I/step2_RunBTagMu2024I.log
Expand to see more relval errors ...

AddOn Tests

A fatal system signal has occurred: abort signal
A fatal system signal has occurred: abort signal
A fatal system signal has occurred: abort signal
Expand to see more addon errors ...

@jhgoh
Copy link
Contributor

jhgoh commented Jan 22, 2025

The errors such as the WF 140.045 are expected

cmsRun: src/RecoMuon/DetLayers/src/MuRingForwardDoubleLayer.cc:196: void MuRingForwardDoubleLayer::selfTest() const: Assertion `frontz < backz' failed.

already written in the PR description.

@jfernan2
Copy link
Contributor

@jhgoh I do not fully understand, according to your description, the error should not be present since #47134 has been already merged? Am I missing anything?

@bsunanda
Copy link
Contributor

bsunanda commented Jan 23, 2025 via email

@eigen1907 eigen1907 closed this Jan 23, 2025
@eigen1907 eigen1907 deleted the modify-rpc-isfront_from-CMSSW_15_0_0_pre1 branch January 23, 2025 07:19
@eigen1907 eigen1907 restored the modify-rpc-isfront_from-CMSSW_15_0_0_pre1 branch January 23, 2025 07:50
@eigen1907 eigen1907 reopened this Jan 23, 2025
@jfernan2
Copy link
Contributor

There are 3 more PRs that are to be merged #47158, #47159 and #47160. In fact all tests have to be used from XML files and not from DB. The DB payloads need to be recreated once this PR is merged.

But those are included in the test_parameters of this PR, I understand this is not enough either? Thanks

@eigen1907
Copy link
Author

There are 3 more PRs that are to be merged #47158, #47159 and #47160. In fact all tests have to be used from XML files and not from DB. The DB payloads need to be recreated once this PR is merged.

But those are included in the test_parameters of this PR, I understand this is not enough either? Thanks

The three PRs change the scenario for calling xml geometry.

The DB payload hasn't changed yet, so scenarios that call geometry from the DB will throw an error.

Best regards,

@jfernan2
Copy link
Contributor

Ok thanks. So, I understand this PR should be approved and merged to create the DB payloads but we cannot test it in advance. Is there any local test which can prove it works? Thanks

@perrotta
Copy link
Contributor

assign alca

@cmsbuild
Copy link
Contributor

New categories assigned: alca

@atpathak,@consuegs,@perrotta you have been requested to review this Pull request/Issue and eventually sign? Thanks

@perrotta
Copy link
Contributor

I don't think this PR cannot be approved now: we cannot modify Run2+Run3 geometries now without a thorough discussion.
Would it be limited to 2025 it would be a different story (but still the changes have to be discussed)

@perrotta
Copy link
Contributor

assign alca

(at least until a modification of the conditions is required to have it working)

@eigen1907
Copy link
Author

Ok thanks. So, I understand this PR should be approved and merged to create the DB payloads but we cannot test it in advance. Is there any local test which can prove it works? Thanks

I'm attaching a slide with more background information and a local test (backup slide) manual for this PR.
RPCGeometryChanges_250120_JShin

@eigen1907
Copy link
Author

eigen1907 commented Jan 23, 2025

I don't think this PR cannot be approved now: we cannot modify Run2+Run3 geometries now without a thorough discussion. Would it be limited to 2025 it would be a different story (but still the changes have to be discussed)

If so, it seems that these three PRs #47158, #47159 and #47160 should not be applied as well.
They only work without error when applied in conjunction with the current open #47138.

I think this PR (#47138) and the scenario update PRs (#47158, #47159 and #47160) should be on hold until there are payloads update in the database to reflect the new geometry xml files in #46670 (2025 Geometry), #47134 (Run2, Run3, Phase2 Geometries).

please confirm @bsunanda

@bsunanda
Copy link
Contributor

Before making payloads like to know which geometries are to be updated. I would like this to be discussed in PPD and/or SIM meeting

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.

6 participants