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

Improvements to the SiStripHitEfficiencyHarvester for Run 3 data-taking #38592

Merged

Conversation

mmusich
Copy link
Contributor

@mmusich mmusich commented Jul 4, 2022

PR description:

As per request of the SiStrip offline group, I apply few improvement for the harvesting step:

  • in case the harvester is NOT run at PCL (flag isAtPCL set to false) produce the final good module/ bad module TGraphError plot for the hit efficiency;
  • in case the harvester is NOT run at PCL (flag isAtPCL set to false) produce a TTree to store per-DetId information for further post-processing from experts / shifters;
  • introduced a SiStripHitEffData struct to store the per event FEDErrors and some events statistics;
  • profited of the PR to clean-up slightly also SiStripHitEffFromCalibTree: used lower case to name methods and use usesResource(TFileService::kSharedResource) for threading efficiency.

PR validation:

Run the following commands:

cmsDriver.py stepReAlCa -s ALCA:PromptCalibProdSiStripHitEff --conditions 123X_dataRun2_v2 --scenario pp --data --era Run2_2018 --datatier ALCARECO --eventcontent ALCARECO --processName=ReAlCa -n 100000 --dasquery='file dataset=/StreamExpress/Run2018D-SiStripCalMinBias-Express-v1/ALCARECO run=325172' --nThreads=4

followed by:

cmsDriver.py stepHarvest -s ALCAHARVEST:SiStripHitEff --conditions 123X_dataRun2_v2 --scenario pp --data --era Run2_2018 --filein file:PromptCalibProdSiStripHitEfficiency.root -n -1

and obtained the following plot:

image

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:

Not a backport but needs to be backported for the data-taking.

@mmusich
Copy link
Contributor Author

mmusich commented Jul 4, 2022

hold

  • still some work is needed before merge, but I am glad to start taking comments.

@cmsbuild cmsbuild added the hold label Jul 4, 2022
@cmsbuild
Copy link
Contributor

cmsbuild commented Jul 4, 2022

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-38592/30848

  • This PR adds an extra 56KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Jul 4, 2022

Pull request has been put on hold by @mmusich
They need to issue an unhold command to remove the hold state or L1 can unhold it for all

@cmsbuild
Copy link
Contributor

cmsbuild commented Jul 4, 2022

A new Pull Request was created by @mmusich (Marco Musich) for master.

It involves the following packages:

  • CalibTracker/SiStripHitEfficiency (alca)
  • CommonTools/ConditionDBWriter (db)

@malbouis, @yuanchao, @cmsbuild, @ggovi, @francescobrivio, @ChrisMisan, @tvami can you please review it and eventually sign? Thanks.
@echabert, @pieterdavid, @robervalwalsh, @gbenelli, @tocheng, @mmusich this is something you requested to watch as well.
@perrotta, @dpiparo, @qliphy you are the release manager for this.

cms-bot commands are listed here

tkMapBad.fillc(det, 255, 255, 255);
// use only the "good" modules
if (stripQuality_->getBadApvs(det) == 0) {
const auto eff = num / denom;
Copy link
Contributor

Choose a reason for hiding this comment

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

if the auto for the num and denom is an uint, will the auto for the eff somehow take care of the integer division?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The code was already like that before, and as far as I can tell does the right thing.

@mmusich
Copy link
Contributor Author

mmusich commented Jul 5, 2022

please test

@tvami
Copy link
Contributor

tvami commented Jul 5, 2022

I see this in the logs

In file included from /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_12_5_X_2022-07-04-2300/src/DQMServices/Core/interface/MonitorElement.h:9,
                 from /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_12_5_X_2022-07-04-2300/src/DQMServices/Core/interface/DQMStore.h:4,
                 from src/CalibTracker/SiStripHitEfficiency/interface/SiStripHitEffData.h:4:
/data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_12_5_X_2022-07-04-2300/src/DQMServices/Core/interface/DQMNet.h:4:10: fatal error: classlib/iobase/Socket.h: No such file or directory
    4 | #include "classlib/iobase/Socket.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

@cmsbuild
Copy link
Contributor

cmsbuild commented Jul 5, 2022

-1

Failed Tests: HeaderConsistency RelVals-INPUT
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-05d064/25977/summary.html
COMMIT: 78fdf32
CMSSW: CMSSW_12_5_X_2022-07-04-2300/el8_amd64_gcc10
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/38592/25977/install.sh to create a dev area with all the needed externals and cmssw changes.

RelVals-INPUT

The relvals timed out after 4 hours.

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 4 differences found in the comparisons
  • DQMHistoTests: Total files compared: 50
  • DQMHistoTests: Total histograms compared: 3654771
  • DQMHistoTests: Total failures: 41
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3654708
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 134.99 KiB( 49 files compared)
  • DQMHistoSizes: changed ( 1001.0 ): 134.990 KiB AlCaReco/SiStripHitEfficiency
  • Checked 208 log files, 45 edm output root files, 50 DQM output files
  • TriggerResults: no differences found

@mmusich mmusich force-pushed the sistripHitEffMiscellaneaImprovements branch from 78fdf32 to 9b82ea6 Compare July 5, 2022 13:44
@cmsbuild
Copy link
Contributor

cmsbuild commented Jul 5, 2022

Pull request #38592 was updated. @malbouis, @yuanchao, @cmsbuild, @ggovi, @francescobrivio, @ChrisMisan, @tvami can you please check and sign again.

@mmusich
Copy link
Contributor Author

mmusich commented Jul 5, 2022

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Jul 5, 2022

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-05d064/25987/summary.html
COMMIT: 9b82ea6
CMSSW: CMSSW_12_5_X_2022-07-05-1100/el8_amd64_gcc10
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/38592/25987/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: 50
  • DQMHistoTests: Total histograms compared: 3654771
  • DQMHistoTests: Total failures: 41
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3654708
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 134.99 KiB( 49 files compared)
  • DQMHistoSizes: changed ( 1001.0 ): 134.990 KiB AlCaReco/SiStripHitEfficiency
  • Checked 208 log files, 45 edm output root files, 50 DQM output files
  • TriggerResults: no differences found

@mmusich mmusich marked this pull request as ready for review July 9, 2022 14:06
@mmusich
Copy link
Contributor Author

mmusich commented Jul 9, 2022

unhold

  • some more work would still be desireable, but I can't follow-up quickly on this, while the current changes are needed for operations, so I won't hold it up further.

@cmsbuild cmsbuild removed the hold label Jul 9, 2022
@cmsbuild
Copy link
Contributor

cmsbuild commented Jul 9, 2022

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. @perrotta, @dpiparo, @qliphy, @rappoccio (and backports should be raised in the release meeting by the corresponding L2)

@tvami
Copy link
Contributor

tvami commented Jul 9, 2022

while the current changes are needed for operations, so I won't hold it up further.

Does this deserve an urgent label then @mmusich ?

@mmusich
Copy link
Contributor Author

mmusich commented Jul 9, 2022

Does this deserve an urgent label then

I wouldn't say it's urgent, as far as I know the hit efficiency measurement is still being done with calibration trees anyway, so this will become relevant once the switchover is done in the shifter tools.

@tvami
Copy link
Contributor

tvami commented Jul 9, 2022

Ok, so not necessarily needed for 12_4_3

@perrotta
Copy link
Contributor

perrotta commented Jul 9, 2022

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

None yet

4 participants