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

Addition of the MTD to the tracker Navigation #33272

Merged
merged 6 commits into from
Apr 12, 2021

Conversation

parbol
Copy link
Contributor

@parbol parbol commented Mar 25, 2021

This PR implements the addition of the MTD DetLayers into the GeometricSearchTracker to be used in the tracker navigation.

This PR overloads the "build" function of the GeometricSearchTrackerBuilder with another "build" function that builds the tracker and the MTD and arranges all the DetLayers properly. The PR also proposes a new TrackerMTDRecoGeometryESProducer invoking this alternative build function.

It should be noted that this producer is never used in the code so this development will not produce any change in the reconstruction, but it will help us to continue doing our developments to fully integrate the MTD in the tracking.

The code can be tested by running the TkNavigation tester:

RecoTracker/TkNavigation/test/NavigationSchoolAnalyzer.cc

by replacing the TrackerRecoGeometryESProducer by the TrackerMTDRecoGeometryESProducer in the configuration file:

RecoTracker/TkNavigation/test/NavigationSchoolAnalyzer_cfg.py

The ideas of this PR were discussed already some time ago in several meetings:

https://indico.cern.ch/event/923095/contributions/3878403/attachments/2047579/3431258/RECO-Talk-For-MTDDPGMay29.pdf

A github issue was also opened to discuss about this:

#29267

Thanks!

@cmsbuild
Copy link
Contributor

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-33272/21768

  • This PR adds an extra 40KB to repository

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-33272/21769

  • This PR adds an extra 40KB to repository

@cmsbuild
Copy link
Contributor

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

It involves the following packages:

RecoMTD/DetLayers
RecoTracker/GeometryESProducer
RecoTracker/Record
RecoTracker/TkDetLayers
RecoTracker/TkNavigation

@perrotta, @kpedro88, @cmsbuild, @srimanob, @slava77, @jpata can you please review it and eventually sign? Thanks.
@fabiocos, @makortel, @felicepantaleo, @GiacomoSguazzoni, @JanFSchulte, @rovere, @VinInn, @gpetruc, @ebrondol, @mtosi, @dgulhan this is something you requested to watch as well.
@silviodonato, @dpiparo, @qliphy you are the release manager for this.

cms-bot commands are listed here

@@ -7,7 +7,8 @@
# process.load("Configuration.StandardSequences.Geometry_cff")
#process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
#process.load('Configuration.Geometry.GeometryExtended2023D1Reco_cff')
process.load('Configuration.Geometry.GeometryExtended2023D4Reco_cff')
#process.load('Configuration.Geometry.GeometryExtended2023D4Reco_cff')
Copy link
Contributor

Choose a reason for hiding this comment

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

@parbol strictly speaking we have no more 2023 geometries, so these lines are useless (even if harmless)

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 Fabio,

I have remove the reference to the 2023 geometries in a later commit.

@fabiocos
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

-1

Failed Tests: Build
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-4c715d/13788/summary.html
COMMIT: 5003364
CMSSW: CMSSW_11_3_X_2021-03-25-2300/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/33272/13788/install.sh to create a dev area with all the needed externals and cmssw changes.

Build

I found compilation error when building:

                 from /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_3_X_2021-03-25-2300/src/RecoTracker/TkDetLayers/interface/GeometricSearchTracker.h:4,
                 from /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_3_X_2021-03-25-2300/src/TrackingTools/RecoGeometry/interface/GlobalDetLayerGeometry.h:11,
                 from /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_3_X_2021-03-25-2300/src/TrackingTools/RecoGeometry/src/GlobalDetLayerGeometry.cc:1:
/cvmfs/cms-ib.cern.ch/week1/slc7_amd64_gcc900/cms/cmssw-patch/CMSSW_11_3_X_2021-03-25-2300/src/FWCore/Utilities/interface/Exception.h: In instantiation of 'typename cms::detail::Desired::type>::value>::type& cms::operator<<(E&&, const T&) [with E = cms::Exception&; T = DetId; typename cms::detail::Desired::type>::value>::type = cms::Exception&]':
/data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_3_X_2021-03-25-2300/src/TrackingTools/RecoGeometry/src/GlobalDetLayerGeometry.cc:15:51:   required from here
/cvmfs/cms-ib.cern.ch/week1/slc7_amd64_gcc900/cms/cmssw-patch/CMSSW_11_3_X_2021-03-25-2300/src/FWCore/Utilities/interface/Exception.h:203:12: error: ambiguous overload for 'operator<<' (operand types are 'std::ostringstream' {aka 'std::__cxx11::basic_ostringstream'} and 'const DetId')
  203 |     e.ost_ << stuff;
      |     ~~~~~~~^~~~~~~~
In file included from /cvmfs/cms-ib.cern.ch/week1/slc7_amd64_gcc900/cms/cmssw-patch/CMSSW_11_3_X_2021-03-25-2300/src/DataFormats/DetId/interface/DetId.h:5,
                 from /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_3_X_2021-03-25-2300/src/TrackingTools/RecoGeometry/interface/GlobalDetLayerGeometry.h:10,
                 from /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_3_X_2021-03-25-2300/src/TrackingTools/RecoGeometry/src/GlobalDetLayerGeometry.cc:1:


@cmsbuild
Copy link
Contributor

-code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-33272/21789

  • This PR adds an extra 20KB to repository

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

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 9, 2021

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-33272/21987

  • This PR adds an extra 88KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 9, 2021

Pull request #33272 was updated. @perrotta, @kpedro88, @cmsbuild, @srimanob, @slava77, @jpata can you please check and sign again.

@fabiocos
Copy link
Contributor

fabiocos commented Apr 9, 2021

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Apr 9, 2021

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-4c715d/14137/summary.html
COMMIT: fe53a85
CMSSW: CMSSW_11_3_X_2021-04-08-2300/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/33272/14137/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 4 differences found in the comparisons
  • DQMHistoTests: Total files compared: 38
  • DQMHistoTests: Total histograms compared: 2865506
  • DQMHistoTests: Total failures: 7
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2865477
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 37 files compared)
  • Checked 160 log files, 37 edm output root files, 38 DQM output files
  • TriggerResults: no differences found

@jfernan2
Copy link
Contributor

+1

@perrotta
Copy link
Contributor

+1

  • It allows MTD DetLayers into the GeometricSearchTracker, to be used in the tracker navigation
  • Not yet enabled in production workflows, as some additional development is needed
  • The NavigationSchoolAnalyzer test runs succesfully also with MTD (it does not check the propagation up to the reconstructed objects though)
  • As it was stated at the reco meeting on Apr 9, TRK POG approves the addition
  • Jenkins tests pass with no differences, as expected

@perrotta
Copy link
Contributor

perrotta commented Apr 12, 2021

@parbol @fabiocos

While reviewing this code I noticed a few possible simplifications for RecoTracker/TkDetLayers/src/GeometricSearchTrackerBuilder.cc.

Let me list them here, in case you want to apply them in a possible follow up PR:

  • Remove unneeded includes of "Geometry/TrackerGeometryBuilder/interface/trackerHierarchy.h" and "DataFormats/Common/interface/Trie.h"
  • Range based loops for the current it1 and all it2 iterators would simplify the code and improve its readability
  • An else if can be used in all checks for positionBounds()->z(), to avoid repeating those checks when the first one is passed
  • Avoid redefining useBrothers at L172, as it was already identically defined at L46

@srimanob
Copy link
Contributor

+Upgrade

@cmsbuild
Copy link
Contributor

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)

@qliphy
Copy link
Contributor

qliphy commented Apr 12, 2021

+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.

9 participants