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

Introduce fnmatch in a DQM script #28808

Merged
merged 2 commits into from
Jan 30, 2020
Merged

Introduce fnmatch in a DQM script #28808

merged 2 commits into from
Jan 30, 2020

Conversation

fioriNTU
Copy link
Contributor

PR description:

This PR add the possibility to use wildcards in the script which extract DQMIO data in the form of SQMLITE tables

PR validation:

This PR has been validated in a private setup successfully. The standard PR test will not run this code, which is a standalone script, so I expect no changes at all in whatever comparison due to this PR

@fioriNTU
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-28808/13511

  • This PR adds an extra 12KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 28, 2020

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-run-pr-tests/4380/console Started: 2020/01/28 12:30

@cmsbuild
Copy link
Contributor

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

It involves the following packages:

DQMServices/Components

@andrius-k, @kmaeshima, @schneiml, @cmsbuild, @jfernan2, @fioriNTU can you please review it and eventually sign? Thanks.
@barvic this is something you requested to watch as well.
@davidlange6, @silviodonato, @fabiocos you are the release manager for this.

cms-bot commands are listed here

@fioriNTU fioriNTU changed the title Sqlit edump Introduce fnmatch in a DQM script Jan 28, 2020
@cmsbuild
Copy link
Contributor

+1
Tested at: d7a5b0f
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-210f06/4380/summary.html
CMSSW: CMSSW_11_1_X_2020-01-27-2300
SCRAM_ARCH: slc7_amd64_gcc820

@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-210f06/4380/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 34
  • DQMHistoTests: Total histograms compared: 2697090
  • DQMHistoTests: Total failures: 1
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2696743
  • DQMHistoTests: Total skipped: 346
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 33 files compared)
  • Checked 147 log files, 16 edm output root files, 34 DQM output files

@fioriNTU
Copy link
Contributor Author

+1

@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. @davidlange6, @silviodonato, @fabiocos (and backports should be raised in the release meeting by the corresponding L2)

Comment on lines -29 to -98
interesting_mes = {
"PixelPhase1/Phase1_MechanicalView/PXBarrel/digi_occupancy_per_SignedModuleCoord_per_SignedLadderCoord_PXLayer_1",
"PixelPhase1/Phase1_MechanicalView/PXBarrel/digi_occupancy_per_SignedModuleCoord_per_SignedLadderCoord_PXLayer_2",
"PixelPhase1/Phase1_MechanicalView/PXBarrel/digi_occupancy_per_SignedModuleCoord_per_SignedLadderCoord_PXLayer_3",
"PixelPhase1/Phase1_MechanicalView/PXBarrel/digi_occupancy_per_SignedModuleCoord_per_SignedLadderCoord_PXLayer_4",
"PixelPhase1/Phase1_MechanicalView/PXForward/digi_occupancy_per_SignedDiskCoord_per_SignedBladePanelCoord_PXRing_1",
"PixelPhase1/Phase1_MechanicalView/PXForward/digi_occupancy_per_SignedDiskCoord_per_SignedBladePanelCoord_PXRing_2",
"SiStrip/MechanicalView/TEC/MINUS/wheel_1/TkHMap_NumberValidHits_TECM_W1",
"SiStrip/MechanicalView/TEC/MINUS/wheel_2/TkHMap_NumberValidHits_TECM_W2",
"SiStrip/MechanicalView/TEC/MINUS/wheel_3/TkHMap_NumberValidHits_TECM_W3",
"SiStrip/MechanicalView/TEC/MINUS/wheel_4/TkHMap_NumberValidHits_TECM_W4",
"SiStrip/MechanicalView/TEC/MINUS/wheel_5/TkHMap_NumberValidHits_TECM_W5",
"SiStrip/MechanicalView/TEC/MINUS/wheel_6/TkHMap_NumberValidHits_TECM_W6",
"SiStrip/MechanicalView/TEC/MINUS/wheel_7/TkHMap_NumberValidHits_TECM_W7",
"SiStrip/MechanicalView/TEC/MINUS/wheel_8/TkHMap_NumberValidHits_TECM_W8",
"SiStrip/MechanicalView/TEC/MINUS/wheel_9/TkHMap_NumberValidHits_TECM_W9",
"SiStrip/MechanicalView/TEC/PLUS/wheel_1/TkHMap_NumberValidHits_TECP_W1",
"SiStrip/MechanicalView/TEC/PLUS/wheel_2/TkHMap_NumberValidHits_TECP_W2",
"SiStrip/MechanicalView/TEC/PLUS/wheel_3/TkHMap_NumberValidHits_TECP_W3",
"SiStrip/MechanicalView/TEC/PLUS/wheel_4/TkHMap_NumberValidHits_TECP_W4",
"SiStrip/MechanicalView/TEC/PLUS/wheel_5/TkHMap_NumberValidHits_TECP_W5",
"SiStrip/MechanicalView/TEC/PLUS/wheel_6/TkHMap_NumberValidHits_TECP_W6",
"SiStrip/MechanicalView/TEC/PLUS/wheel_7/TkHMap_NumberValidHits_TECP_W7",
"SiStrip/MechanicalView/TEC/PLUS/wheel_8/TkHMap_NumberValidHits_TECP_W8",
"SiStrip/MechanicalView/TEC/PLUS/wheel_9/TkHMap_NumberValidHits_TECP_W9",
"SiStrip/MechanicalView/TIB/layer_1/TkHMap_NumberValidHits_TIB_L1",
"SiStrip/MechanicalView/TIB/layer_2/TkHMap_NumberValidHits_TIB_L2",
"SiStrip/MechanicalView/TIB/layer_3/TkHMap_NumberValidHits_TIB_L3",
"SiStrip/MechanicalView/TIB/layer_4/TkHMap_NumberValidHits_TIB_L4",
"SiStrip/MechanicalView/TID/MINUS/wheel_1/TkHMap_NumberValidHits_TIDM_D1",
"SiStrip/MechanicalView/TID/MINUS/wheel_2/TkHMap_NumberValidHits_TIDM_D2",
"SiStrip/MechanicalView/TID/MINUS/wheel_3/TkHMap_NumberValidHits_TIDM_D3",
"SiStrip/MechanicalView/TID/PLUS/wheel_1/TkHMap_NumberValidHits_TIDP_D1",
"SiStrip/MechanicalView/TID/PLUS/wheel_2/TkHMap_NumberValidHits_TIDP_D2",
"SiStrip/MechanicalView/TID/PLUS/wheel_3/TkHMap_NumberValidHits_TIDP_D3",
"SiStrip/MechanicalView/TOB/layer_1/TkHMap_NumberValidHits_TOB_L1",
"SiStrip/MechanicalView/TOB/layer_2/TkHMap_NumberValidHits_TOB_L2",
"SiStrip/MechanicalView/TOB/layer_3/TkHMap_NumberValidHits_TOB_L3",
"SiStrip/MechanicalView/TOB/layer_4/TkHMap_NumberValidHits_TOB_L4",
"SiStrip/MechanicalView/TOB/layer_5/TkHMap_NumberValidHits_TOB_L5",
"SiStrip/MechanicalView/TOB/layer_6/TkHMap_NumberValidHits_TOB_L6",
"EcalBarrel/EBOccupancyTask/EBOT digi occupancy",
"EcalEndcap/EEOccupancyTask/EEOT digi occupancy EE -",
"EcalEndcap/EEOccupancyTask/EEOT digi occupancy EE +",
"EcalPreshower/ESOccupancyTask/ES Energy Density Z -1 P 1",
"EcalPreshower/ESOccupancyTask/ES Energy Density Z -1 P 2",
"EcalPreshower/ESOccupancyTask/ES Energy Density Z 1 P 1",
"EcalPreshower/ESOccupancyTask/ES Energy Density Z 1 P 2",
"Hcal/DigiRunHarvesting/Occupancy/depth/depth1",
"Hcal/DigiRunHarvesting/Occupancy/depth/depth2",
"Hcal/DigiRunHarvesting/Occupancy/depth/depth3",
"Hcal/DigiRunHarvesting/Occupancy/depth/depth4",
"CSC/CSCOfflineMonitor/Occupancy/hOStripsAndWiresAndCLCT",
"RPC/AllHits/SummaryHistograms/Occupancy_for_Barrel",
"RPC/AllHits/SummaryHistograms/Occupancy_for_Endcap",
"DT/02-Segments/Wheel-1/numberOfSegments_W-1",
"DT/02-Segments/Wheel-2/numberOfSegments_W-2",
"DT/02-Segments/Wheel0/numberOfSegments_W0",
"DT/02-Segments/Wheel1/numberOfSegments_W1",
"DT/02-Segments/Wheel2/numberOfSegments_W2",

"L1T/L1TObjects/L1TEGamma/timing/egamma_eta_phi_bx_0",
"L1T/L1TObjects/L1TJet/timing/jet_eta_phi_bx_0",
"L1T/L1TObjects/L1TMuon/timing/muons_eta_phi_bx_0",
"L1T/L1TObjects/L1TTau/timing/tau_eta_phi_bx_0",
"L1T/L1TObjects/L1TEGamma/timing/denominator_egamma",
"L1T/L1TObjects/L1TJet/timing/denominator_jet",
"L1T/L1TObjects/L1TMuon/timing/denominator_muons",
"L1T/L1TObjects/L1TTau/timing/denominator_tau",
}
Copy link
Contributor

Choose a reason for hiding this comment

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

These names do not match "PixelPhase1/Phase1_MechanicalView/PXBarrel/adc_PXLayer*".
Are you removing them on purpurse? If yes, could update the PR description specifying what you are changing?

Comment on lines +161 to +174

if mename.find("AlCaReco") != -1:
continue

if mename.find("Isolated") != -1:
continue

if mename.find("HLT") != -1:
continue

if not ((mename.find("SiStrip") >= 0) or (mename.find("OfflinePV") >= 0) or (mename.find("PixelPhase1") >= 0) or (mename.find("Tracking") >= 0 )):
continue

if check_interesting(mename):
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you have any special reasons to apply a veto on "AlCaReco", "Isolated", "HLT" and requiring at least one match among "SiStrip", "OfflinePV", "PixelPhase1", "Tracking"? I expected you specify them directly with "interesting_mes"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

well, no, I couldn't do it in interesting_mes once added the fnmatch. The point is that AlCaReco, IsolatedBunches and HLT workspaces all contains a SiStrip folder, which is a copy with different selections of the original SIStrip folder in the GUI. Not adding those lines I would collect also the histograms with the same name in the other folders. This could be removed for the general case, I left these on purpose to remind people, there can be cases such this one.

@silviodonato
Copy link
Contributor

Thanks @fioriNTU. Could you also confirm that you are removing many "interesting_mes" on purpose (see the other comment above)?

@fioriNTU
Copy link
Contributor Author

@silviodonato , yes I am removing a lot of interesting_mes on purpose, the reason is that the choice of the particular histogram to be extracted will mostly depend by the specific use case.

@silviodonato
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit 23e8336 into cms-sw:master Jan 30, 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.

3 participants