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

GEM uniform angular strip topology #31640

Merged
merged 13 commits into from Nov 16, 2020
Merged

Conversation

hyunyong
Copy link
Contributor

@hyunyong hyunyong commented Oct 1, 2020

PR description:

  • Current GEM strip topology is trapezoidal strip topology
  • It is not uniform angle distributions
  • New GEM Strip topology has been added
  • Most functions are from CSC Radial Strip Topology
  • New XML files (v13) are created but they didn't add to any cfi files yet.

PR validation:

@jshlee @watson-ij @bsunanda

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 1, 2020

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 1, 2020

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-31640/18725

  • This PR adds an extra 48KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 1, 2020

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

It involves the following packages:

Fireworks/Geometry
Geometry/CommonTopologies
Geometry/GEMGeometry
Geometry/GEMGeometryBuilder
RecoLocalMuon/GEMRecHit
SimMuon/GEMDigitizer

@perrotta, @civanch, @Dr15Jones, @makortel, @cvuosalo, @ianna, @mdhildreth, @cmsbuild, @alja, @kpedro88, @slava77, @jpata can you please review it and eventually sign? Thanks.
@alja, @makortel, @JanFSchulte, @jhgoh, @VinInn, @jshlee, @bellan, @watson-ij, @dildick, @ebrondol, @mtosi, @fabiocos, @slomeo 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

@dildick
Copy link
Contributor

dildick commented Oct 1, 2020

@hyunyong Shouldn't the radial GEMStripTopology inherit from RadialStripTopology instead of StripTopology?

@hyunyong
Copy link
Contributor Author

hyunyong commented Oct 1, 2020

@hyunyong Shouldn't the radial GEMStripTopology inherit from RadialStripTopology instead of StripTopology?

@dildick GEM strip topology was based on the trapezoidal strip topology and some functions are not comparable with the radial strip topology.
I tried the radial strip topology but changed to the strip topology.

@alja
Copy link
Contributor

alja commented Oct 1, 2020

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 1, 2020

The tests are being triggered in jenkins.

@@ -0,0 +1,73 @@
#ifndef _GEM_STRIP_TOPOLOGY_H_
Copy link
Contributor

Choose a reason for hiding this comment

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

use correct include guard format: subsystem_package_filename

float theCentreToIntersection; // distance centre of detector face to intersection of edge strips (projected)
float thePhiOfOneEdge; // local 'phi' of one edge of plane of strips (I choose it negative!)
float theYAxisOrientation; // 1 means y axis going from smaller to larger side, -1 means opposite direction
float yCentre; // Non-zero if offset in local y between midpoint of detector (strip plane) extent and local origin.
Copy link
Contributor

Choose a reason for hiding this comment

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

member variables need to have consistent naming scheme, i.e. theYCentre
(or even better, to correspond to base class, remove "the", start with lowercase, and end with underscore)

thePhiOfOneEdge = -(0.5 * theNumberOfStrips) * theAngularWidth * theYAxisOrientation;
yCentre = 0;
#ifdef VERBOSE
cout << "Constructing GEMStripTopology with"
Copy link
Contributor

Choose a reason for hiding this comment

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

cout is not allowed, use MessageLogger (everywhere)

@@ -13,14 +13,17 @@ GEMEtaPartitionSpecs::GEMEtaPartitionSpecs(SubDetector rss, const std::string& n
float r0 = h * (B + b) / (B - b);
float striplength = h * 2;
float strips = _p[3];
float pitch = (b + B) / strips;
float dphi = _p[5] * TMath::Pi() / 180.;
Copy link
Contributor

Choose a reason for hiding this comment

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

int nstrip = static_cast<int>(strips);
_top = new TrapezoidalStripTopology(nstrip, pitch, striplength, r0);
_top = new GEMStripTopology(nstrip, phiPitch, striplength, r0);
Copy link
Contributor

Choose a reason for hiding this comment

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

possibly outside the scope of this PR, but it would be better to use smart pointers

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've fixed this PR as your comments, but I can't understand how to use smart pointers for this.

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 1, 2020

-1

Tested at: 597c95a

CMSSW: CMSSW_11_2_X_2020-10-01-1100
SCRAM_ARCH: slc7_amd64_gcc820
You can see the results of the tests here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-0ed7f4/9690/summary.html

I found follow errors while testing this PR

Failed tests: RelVals

  • RelVals:

When I ran the RelVals I found an error in the following workflows:
23434.999 step3

runTheMatrix-results/23434.999_TTbar_14TeV+2026D49PU_PMXS1S2PR+TTbar_14TeV_TuneCP5_GenSimHLBeamSpot14+PREMIX_PremixHLBeamSpot14PU+DigiTriggerPU+RecoGlobalPU+HARVESTGlobalPU/step3_TTbar_14TeV+2026D49PU_PMXS1S2PR+TTbar_14TeV_TuneCP5_GenSimHLBeamSpot14+PREMIX_PremixHLBeamSpot14PU+DigiTriggerPU+RecoGlobalPU+HARVESTGlobalPU.log

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 1, 2020

Comparison not run due to runTheMatrix errors (RelVals and Igprof tests were also skipped)

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 5, 2020

Pull request #31640 was updated. @perrotta, @civanch, @Dr15Jones, @makortel, @cvuosalo, @ianna, @mdhildreth, @cmsbuild, @alja, @kpedro88, @slava77, @jpata can you please check and sign again.

@cvuosalo
Copy link
Contributor

cvuosalo commented Nov 5, 2020

@cmsbuild please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 5, 2020

The tests are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 5, 2020

+1
Tested at: 21982f5
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-0ed7f4/10539/summary.html
CMSSW: CMSSW_11_2_X_2020-11-05-1100
SCRAM_ARCH: slc7_amd64_gcc820

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 5, 2020

Comparison job queued.

@cmsbuild
Copy link
Contributor

cmsbuild commented Nov 6, 2020

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

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 198 differences found in the comparisons
  • DQMHistoTests: Total files compared: 35
  • DQMHistoTests: Total histograms compared: 2544144
  • DQMHistoTests: Total failures: 1081
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2543041
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 34 files compared)
  • Checked 149 log files, 22 edm output root files, 35 DQM output files

@cvuosalo
Copy link
Contributor

cvuosalo commented Nov 6, 2020

+1

@@ -72,8 +72,7 @@
#include <DataFormats/CSCRecHit/interface/CSCSegmentCollection.h>
#include <Geometry/CommonDetUnit/interface/GeomDet.h>
#include <Geometry/Records/interface/MuonGeometryRecord.h>
#include <Geometry/CommonTopologies/interface/RectangularStripTopology.h>
#include <Geometry/CommonTopologies/interface/TrapezoidalStripTopology.h>
#include <Geometry/CommonTopologies/interface/GEMStripTopology.h>
Copy link
Contributor

Choose a reason for hiding this comment

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

The replacement is in line with the overall migration performed in this PR,
On the other hand, this include doesn't even seem to be needed at all in this test analyzer (as they were not need also the previous two which are being replaced).
Not really an issue, anyhow...

@perrotta
Copy link
Contributor

perrotta commented Nov 7, 2020

+1

  • Changes are in the geometry part: they only propagate to reco in a test analyzer (in which the corresponding include wasn't even needed since the beginning, by the way...)

@civanch
Copy link
Contributor

civanch commented Nov 11, 2020

+1

@kpedro88
Copy link
Contributor

+upgrade

@silviodonato
Copy link
Contributor

merge

@cmsbuild cmsbuild merged commit f374bf1 into cms-sw:master Nov 16, 2020
@cmsbuild cmsbuild mentioned this pull request Nov 16, 2020
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