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

Port SiStripDetSummary from subdetector-DetId classes to TrackerTopology #20274

Merged

Conversation

pieterdavid
Copy link
Contributor

@pieterdavid pieterdavid commented Aug 25, 2017

Changed SiStripDetSummary to store a const TrackerTopology*. This class is mostly used from the printSummary and printDebug methods of CondFormats/SiStripObjects and CalibFormats/SiStripObjects classes, so I also added a const TrackerTopology* argument to those. The rest of the commits update the modules that call these methods.

CC: @OlivierBondu @alesaggio @vidalm ; tracked at #19398

Changed both printSummary and printDebug, for the classes in
CondFormats/SiStripObjects and CalibFormats/SiStripObjects.
Needed for SiStripDetSummary that is sometimes using a TrackerTopology
(all these classes need to be changed because the methods are called by
DummyCondObjPrinter, which is templated on the object type).
SiStripDetVOff : changed implementation for getLVoffCounts and
getHVoffCounts methods (SiStripDetSummary is not needed there)
…move initialization to a configure method (and get TrackerTopology from EventSetup)
…s TrackerTopology from EventSetup to printSummary
@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @pieterdavid (Pieter David) for master.

It involves the following packages:

CalibFormats/SiStripObjects
CalibTracker/SiStripDCS
CalibTracker/SiStripESProducers
CondFormats/SiStripObjects
CondTools/SiStrip
DPGAnalysis/SiStripTools
DQM/SiStripCommissioningDbClients
DQMOffline/CalibTracker
EventFilter/SiStripRawToDigi
OnlineDB/SiStripESSources
RecoLocalTracker/SiStripRecHitConverter

@perrotta, @ghellwig, @monttj, @vazzolini, @kmaeshima, @arunhep, @cerminar, @dmitrijus, @cmsbuild, @franzoni, @slava77, @ggovi, @vanbesien, @lpernie can you please review it and eventually sign? Thanks.
@ghellwig, @erikbutz, @felicepantaleo, @forthommel, @yduhm, @nickmccoll, @threus, @ebrondol, @seemasharmafnal, @venturia, @makortel, @jlagram, @OlivierBondu, @rociovilar, @GiacomoSguazzoni, @rovere, @VinInn, @tocheng, @mmusich, @Martin-Grunewald, @gbenelli, @gpetruc this is something you requested to watch as well.
@davidlange6, @slava77 you are the release manager for this.

cms-bot commands are listed here

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/PR-20274/322

@slava77
Copy link
Contributor

slava77 commented Aug 25, 2017

@cmsbuild please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 25, 2017

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/22500/console Started: 2017/08/25 18:59
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/22502/console Started: 2017/08/25 22:06

@cmsbuild
Copy link
Contributor

@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-20274/22502/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 26
  • DQMHistoTests: Total histograms compared: 2653934
  • DQMHistoTests: Total failures: 209
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2653536
  • DQMHistoTests: Total skipped: 189
  • DQMHistoTests: Total Missing objects: 0
  • Checked 107 log files, 14 edm output root files, 26 DQM output files

@slava77
Copy link
Contributor

slava77 commented Aug 30, 2017

+1

for #20274 984449b

  • technical updates to switch to using TrackerTopology; most changes are not related to reco category
  • jenkins tests pass and comparisons show no differences

@pieterdavid
Copy link
Contributor Author

This pull request has been submitted more than a week ago, with so far only feedback from reconstruction and the SiStrip commissioning team (@avartak is testing the changes in that context).
Could the other category managers whose review is needed (alca, analysis, db and dqm) also have a look? Thanks in advance

@dmitrijus
Copy link
Contributor

+1

#include "CondFormats/SiStripObjects/interface/SiStripDetSummary.h"

void SiStripDetSummary::add(const DetId & detid, const float & value)
void SiStripDetSummary::add(DetId detid, float value)
Copy link
Contributor

Choose a reason for hiding this comment

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

Hi @pieterdavid
Probably a naive question, but why are you removing the const'ness of the DetId at this stage?

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 @forthommel
I changed them from "pass by const reference" to "pass by value" because that is simpler (I was changing the implementation of this method and my eye fell on it).
Both DetId and float are small (32 bits), so there is no expensive copy to avoid with const & (a reference should be at least as big, and needs to be dereferenced, which is actually more work). See http://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rf-in for a longer explanation.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks a lot for your detailed explanation, @pieterdavid !

@ggovi
Copy link
Contributor

ggovi commented Sep 5, 2017

+1

@avartak
Copy link
Contributor

avartak commented Sep 6, 2017

everything looks fine for the part affecting the strips commissioning code

@smuzaffar smuzaffar modified the milestones: CMSSW_9_4_X, CMSSW_9_3_X Sep 6, 2017
@ghellwig
Copy link

ghellwig commented Sep 6, 2017

+1

@davidlange6
Copy link
Contributor

merge

@cmsbuild cmsbuild merged commit ee01ed6 into cms-sw:master Sep 8, 2017
@Dr15Jones
Copy link
Contributor

This pull request is breaking new pull request tests. See #20442
The error is

/build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_4_X_2017-09-08-1100/src/CondCore/SiStripPlugins/plugins/SiStripDetVOff_PayloadInspector.cc: In member function 'virtual bool {anonymous}::SiStripDetVOffTest::fill(const std::vector, std::allocator > > >&)':
/build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_4_X_2017-09-08-1100/src/CondCore/SiStripPlugins/plugins/SiStripDetVOff_PayloadInspector.cc:171:22: error: no matching function for call to 'SiStripDetSummary::SiStripDetSummary()'
    SiStripDetSummary summaryHV;
                      ^~~~~~~~~
In file included from /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_4_X_2017-09-08-1100/src/CondCore/SiStripPlugins/plugins/SiStripDetVOff_PayloadInspector.cc:6:0:
/build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_4_X_2017-09-08-1100/src/CondFormats/SiStripObjects/interface/SiStripDetSummary.h:31:12: note: candidate: SiStripDetSummary::SiStripDetSummary(const TrackerTopology*)
   explicit SiStripDetSummary(const TrackerTopology* tTopo) : computeMean_(true), trackerTopo_(tTopo)
```

@pieterdavid
Copy link
Contributor Author

pieterdavid commented Sep 8, 2017 via email

@mmusich
Copy link
Contributor

mmusich commented Sep 10, 2017

Hi @pieterdavid, I've noticed your PR might have broken the use I made in mine of SiStripDetSummary, but I hoped this was not merged until I could come back from holidays :).
Anyway the reason why I used the old constructor is that when I opened my PR (25 days ago!) your PR did not exist yet...

@pieterdavid pieterdavid deleted the removeSiStripSubDetId_SiStripDetSummary branch September 28, 2018 14:52
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