Skip to content

Conversation

@ianna
Copy link
Contributor

@ianna ianna commented Oct 15, 2020

PR description:

  • Allow to select correct sensitive detectors when their SpecPars defined as regular expressions

Note: needs a cms-sw/cmsdist#6315

@bsunanda - FYI

PR validation:

if this PR is a backport please specify the original PR and why you need to backport that PR:

Before submitting your pull requests, make sure you followed this checklist:

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@ianna
Copy link
Contributor Author

ianna commented Oct 15, 2020

please test with cms-sw/cmsdist#6315

@cmsbuild
Copy link
Contributor

-code-checks

ERROR: Build errors found during clang-tidy run.

SimG4Core/Geometry/src/DD4hep_DDG4Builder.cc:45:25: error: no member named 'compareEqualName' in namespace 'dd4hep::dd'; did you mean 'compareEqual'? [clang-diagnostic-error]
        if (dd4hep::dd::compareEqualName(dd4hep::dd::noNamespace(it.first.name()), dd4hep::dd::realTopName(pit))) {
                        ^~~~~~~~~~~~~~~~
                        compareEqual
--
gmake: *** [config/SCRAM/GMake/Makefile.coderules:128: code-checks] Error 2
gmake: *** [There are compilation/build errors. Please see the detail log above.] Error 2

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

-code-checks

ERROR: Build errors found during clang-tidy run.

SimG4Core/Geometry/src/DD4hep_DDG4Builder.cc:44:33: error: member reference type 'const dd4hep::SpecPar *const' is a pointer; did you mean to use '->'? [clang-diagnostic-error]
      for (auto const &pit : fit.second->paths) {
                                ^
                                ->
SimG4Core/Geometry/src/DD4hep_DDG4Builder.cc:44:34: error: no member named 'second' in 'dd4hep::SpecPar' [clang-diagnostic-error]
      for (auto const &pit : fit.second->paths) {
                                 ^
SimG4Core/Geometry/src/DD4hep_DDG4Builder.cc:45:25: error: no member named 'compareEqualName' in namespace 'dd4hep::dd'; did you mean 'compareEqual'? [clang-diagnostic-error]
        if (dd4hep::dd::compareEqualName(dd4hep::dd::noNamespace(it.first.name()), dd4hep::dd::realTopName(pit))) {
                        ^~~~~~~~~~~~~~~~
                        compareEqual
--
SimG4Core/Geometry/src/DD4hep_DDG4Builder.cc:46:52: error: member reference type 'const dd4hep::SpecPar *const' is a pointer; did you mean to use '->'? [clang-diagnostic-error]
          dd4hepVec.emplace_back(&*it.second, &*fit.second);
                                                   ^
                                                   ->
SimG4Core/Geometry/src/DD4hep_DDG4Builder.cc:46:53: error: no member named 'second' in 'dd4hep::SpecPar' [clang-diagnostic-error]
          dd4hepVec.emplace_back(&*it.second, &*fit.second);
                                                    ^
Suppressed 2251 warnings (2250 in non-user code, 1 with check filters).
--
SimG4Core/Geometry/src/DDG4ProductionCuts.cc:116:33: error: member reference type 'const dd4hep::SpecPar *const' is a pointer; did you mean to use '->'? [clang-diagnostic-error]
      for (auto const& pit : fit.second->paths) {
                                ^
                                ->
SimG4Core/Geometry/src/DDG4ProductionCuts.cc:116:34: error: no member named 'second' in 'dd4hep::SpecPar' [clang-diagnostic-error]
      for (auto const& pit : fit.second->paths) {
                                 ^
SimG4Core/Geometry/src/DDG4ProductionCuts.cc:118:110: error: member reference type 'const dd4hep::SpecPar *const' is a pointer; did you mean to use '->'? [clang-diagnostic-error]
          dd4hepVec_.emplace_back(std::make_pair<G4LogicalVolume*, const dd4hep::SpecPar*>(&*it.second, &*fit.second));
                                                                                                             ^
                                                                                                             ->
SimG4Core/Geometry/src/DDG4ProductionCuts.cc:118:111: error: no member named 'second' in 'dd4hep::SpecPar' [clang-diagnostic-error]
          dd4hepVec_.emplace_back(std::make_pair<G4LogicalVolume*, const dd4hep::SpecPar*>(&*it.second, &*fit.second));
                                                                                                              ^
Suppressed 2263 warnings (2262 in non-user code, 1 with check filters).
--
gmake: *** [config/SCRAM/GMake/Makefile.coderules:128: code-checks] Error 2
gmake: *** [There are compilation/build errors. Please see the detail log above.] Error 2

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

-code-checks

ERROR: Build errors found during clang-tidy run.

SimG4Core/Geometry/src/DD4hep_DDG4Builder.cc:44:33: error: member reference type 'const dd4hep::SpecPar *const' is a pointer; did you mean to use '->'? [clang-diagnostic-error]
      for (auto const &pit : fit.second->paths) {
                                ^
                                ->
SimG4Core/Geometry/src/DD4hep_DDG4Builder.cc:44:34: error: no member named 'second' in 'dd4hep::SpecPar' [clang-diagnostic-error]
      for (auto const &pit : fit.second->paths) {
                                 ^
SimG4Core/Geometry/src/DD4hep_DDG4Builder.cc:45:25: error: no member named 'compareEqualName' in namespace 'dd4hep::dd'; did you mean 'compareEqual'? [clang-diagnostic-error]
        if (dd4hep::dd::compareEqualName(dd4hep::dd::realTopName(pit), dd4hep::dd::noNamespace(it.first.name()))) {
                        ^~~~~~~~~~~~~~~~
                        compareEqual
--
SimG4Core/Geometry/src/DD4hep_DDG4Builder.cc:46:52: error: member reference type 'const dd4hep::SpecPar *const' is a pointer; did you mean to use '->'? [clang-diagnostic-error]
          dd4hepVec.emplace_back(&*it.second, &*fit.second);
                                                   ^
                                                   ->
SimG4Core/Geometry/src/DD4hep_DDG4Builder.cc:46:53: error: no member named 'second' in 'dd4hep::SpecPar' [clang-diagnostic-error]
          dd4hepVec.emplace_back(&*it.second, &*fit.second);
                                                    ^
Suppressed 2251 warnings (2250 in non-user code, 1 with check filters).
--
SimG4Core/Geometry/src/DDG4ProductionCuts.cc:116:33: error: member reference type 'const dd4hep::SpecPar *const' is a pointer; did you mean to use '->'? [clang-diagnostic-error]
      for (auto const& pit : fit.second->paths) {
                                ^
                                ->
SimG4Core/Geometry/src/DDG4ProductionCuts.cc:116:34: error: no member named 'second' in 'dd4hep::SpecPar' [clang-diagnostic-error]
      for (auto const& pit : fit.second->paths) {
                                 ^
SimG4Core/Geometry/src/DDG4ProductionCuts.cc:118:110: error: member reference type 'const dd4hep::SpecPar *const' is a pointer; did you mean to use '->'? [clang-diagnostic-error]
          dd4hepVec_.emplace_back(std::make_pair<G4LogicalVolume*, const dd4hep::SpecPar*>(&*it.second, &*fit.second));
                                                                                                             ^
                                                                                                             ->
SimG4Core/Geometry/src/DDG4ProductionCuts.cc:118:111: error: no member named 'second' in 'dd4hep::SpecPar' [clang-diagnostic-error]
          dd4hepVec_.emplace_back(std::make_pair<G4LogicalVolume*, const dd4hep::SpecPar*>(&*it.second, &*fit.second));
                                                                                                              ^
Suppressed 2263 warnings (2262 in non-user code, 1 with check filters).
--
gmake: *** [config/SCRAM/GMake/Makefile.coderules:128: code-checks] Error 2
gmake: *** [There are compilation/build errors. Please see the detail log above.] Error 2

@ianna
Copy link
Contributor Author

ianna commented Oct 15, 2020

@bsunanda - EB simhits are there now. I used CMSSW_11_2_X_2020-10-13-2300, so it may not have all the fixes for numbering yet.
Screenshot 2020-10-15 at 21 10 16

@bsunanda
Copy link
Contributor

bsunanda commented Oct 15, 2020 via email

@ianna
Copy link
Contributor Author

ianna commented Oct 15, 2020

Yana please try #31813 on top this. It will clear the other issues hopefully

Thanks, @bsunanda ! Yes, Ecal Barrel simhits look reasonable now:
Screenshot 2020-10-15 at 23 14 32

The Ecal endcap looks like its reflected volumes are missing or mis-placed.

@cmsbuild
Copy link
Contributor

-1

Tested at: 46f7001

CMSSW: CMSSW_11_2_X_2020-10-18-2300
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-d3ebf7/10073/summary.html

I found follow errors while testing this PR

Failed tests: Build ClangBuild

  • Build:

I found compilation error when building:

Copying tmp/slc7_amd64_gcc820/src/SimG4Core/DD4hepGeometry/test/DD4hepGeometryTestDriver/DD4hepGeometryTestDriver to productstore area:
Entering library rule at src/SimG4Core/DD4hepGeometry/test
>> Compiling edm plugin /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_2_X_2020-10-18-2300/src/SimG4Core/DD4hepGeometry/test/plugins/DD4hepTestDDDWorld.cc
>> Compiling edm plugin /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_2_X_2020-10-18-2300/src/SimG4Core/DD4hepGeometry/test/plugins/DD4hepTestG4Geometry.cc
/data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_2_X_2020-10-18-2300/src/SimG4Core/DD4hepGeometry/test/plugins/DD4hepTestDDDWorld.cc: In lambda function:
/data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_2_X_2020-10-18-2300/src/SimG4Core/DD4hepGeometry/test/plugins/DD4hepTestDDDWorld.cc:109:35: error: base operand of '->' has non-pointer type 'const std::pair, const dd4hep::SpecPar*>'
         for (auto const& sit : fit->spars) {
                                   ^~
/data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_2_X_2020-10-18-2300/src/SimG4Core/DD4hepGeometry/test/plugins/DD4hepTestDDDWorld.cc:112:35: error: base operand of '->' has non-pointer type 'const std::pair, const dd4hep::SpecPar*>'
         for (auto const& pit : fit->paths) {
                                   ^~

  • Clang:

I found compilation error while trying to compile with clang. Command used:

USER_CUDA_FLAGS='--expt-relaxed-constexpr' USER_CXXFLAGS='-Wno-register -fsyntax-only' scram build -k -j 32 COMPILER='llvm compile'

>> Compiling  /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_2_X_2020-10-18-2300/src/SimG4Core/DD4hepGeometry/src/DD4hep_DDDWorld.cc
>> Compiling  /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_2_X_2020-10-18-2300/src/SimG4Core/DD4hepGeometry/test/dummyMain.cpp
Entering library rule at src/SimG4Core/DD4hepGeometry/test
>> Compiling edm plugin /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_2_X_2020-10-18-2300/src/SimG4Core/DD4hepGeometry/test/plugins/DD4hepTestDDDWorld.cc
>> Compiling edm plugin /data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_2_X_2020-10-18-2300/src/SimG4Core/DD4hepGeometry/test/plugins/DD4hepTestG4Geometry.cc
/data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_2_X_2020-10-18-2300/src/SimG4Core/DD4hepGeometry/test/plugins/DD4hepTestDDDWorld.cc:109:35: error: member reference type 'const std::pair, std::allocator >, const dd4hep::SpecPar *>' is not a pointer; did you mean to use '.'?
        for (auto const& sit : fit->spars) {
                               ~~~^~
                                  .
/data/cmsbld/jenkins/workspace/ib-run-pr-tests/CMSSW_11_2_X_2020-10-18-2300/src/SimG4Core/DD4hepGeometry/test/plugins/DD4hepTestDDDWorld.cc:109:37: error: no member named 'spars' in 'std::pair, std::allocator >, const dd4hep::SpecPar *>'
        for (auto const& sit : fit->spars) {


@cmsbuild
Copy link
Contributor

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

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 19, 2020

The tests are being triggered in jenkins.
Tested with other pull request(s) cms-sw/cmsdist#6315,#31770,#31821

@cmsbuild
Copy link
Contributor

-1

Tested at: 46f7001

CMSSW: CMSSW_11_2_X_2020-10-19-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-d3ebf7/10079/summary.html

I found follow errors while testing this PR

Failed tests: UnitTests

  • Unit Tests:

I found errors in the following unit tests:

---> test GeometryDTGeometryBuilderTestDriver had ERRORS
---> test GeometryTrackerGeometryBuilderTestDriver had ERRORS

@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-d3ebf7/10079/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 3 differences found in the comparisons
  • DQMHistoTests: Total files compared: 35
  • DQMHistoTests: Total histograms compared: 2543752
  • DQMHistoTests: Total failures: 7
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2543723
  • 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

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 20, 2020

The tests are being triggered in jenkins.
Tested with other pull request(s) cms-sw/cmsdist#6315,#31770,#31821

@cmsbuild
Copy link
Contributor

-1
@ianna This pull request cannot be automatically merged, could you please rebase it?

You can see the log for git cms-merge-topic here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-31810/10156/git-merge-result

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 21, 2020

The tests are being triggered in jenkins.
Tested with other pull request(s) cms-sw/cmsdist#6315,#31770,#31821

@cmsbuild
Copy link
Contributor

-1
@ianna This pull request cannot be automatically merged, could you please rebase it?

You can see the log for git cms-merge-topic here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-31810/10162/git-merge-result

@ianna
Copy link
Contributor Author

ianna commented Oct 21, 2020

merged in #31879

@ianna ianna closed this Oct 21, 2020
@ianna ianna deleted the dd4hep-sim-sens-det-regex-v1 branch June 25, 2025 18:51
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