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
Add missing forward decls to SimG4Forward. #19126
Conversation
In TotemSD.h we need a forward declaration for SimTrackManager because a we use a ptr to this class in the constructor. In CastorTestAnalysis.h we need to have a forward declaration to CaloG4HitCollection because we use a ptr to this class in the getCastorBranchData signature.
Part of the work going on regarding issue #15248 |
A new Pull Request was created by @Teemperor (Raphael Isemann) for master. It involves the following packages: SimG4CMS/Forward @cmsbuild, @civanch, @mdhildreth, @davidlange6 can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
please test |
The tests are being triggered in jenkins. |
-1 Tested at: ee73c23 You can see the results of the tests here: I found follow errors while testing this PR Failed tests: Build ClangBuild
I found an error when building: >> Compiling /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_2_X_2017-06-06-2300/src/Utilities/StaticAnalyzers/src/ThrUnsafeFCallChecker.cpp >> Compiling /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_2_X_2017-06-06-2300/src/Utilities/StaticAnalyzers/src/ClangCmsCheckerPluginRegister.cpp >> Compiling /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_2_X_2017-06-06-2300/src/Utilities/StaticAnalyzers/src/CmsSupport.cpp >> Compiling /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_2_X_2017-06-06-2300/src/Utilities/StaticAnalyzers/src/CatchAll.cpp In file included from /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_2_X_2017-06-06-2300/src/SimG4CMS/Forward/src/CastorTestAnalysis.cc:17:0: /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_2_X_2017-06-06-2300/src/SimG4CMS/Forward/interface/CastorTestAnalysis.h:64:7: error: using typedef-name 'CaloG4HitCollection' after 'class' class CaloG4HitCollection; ^ In file included from /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_2_X_2017-06-06-2300/src/SimG4CMS/Forward/src/CastorTestAnalysis.cc:13:0: /cvmfs/cms-ib.cern.ch/nweek-02475/slc6_amd64_gcc530/cms/cmssw/CMSSW_9_2_X_2017-06-06-2300/src/SimG4CMS/Calo/interface/CaloG4HitCollection.h:11:38: note: 'CaloG4HitCollection' has a previous declaration here typedef G4THitsCollection CaloG4HitCollection;
I found a compilation error while trying to compile with clang: ^ /cvmfs/cms-ib.cern.ch/nweek-02475/slc6_amd64_gcc530/external/geant4/10.02.p02-mlhled2/include/Geant4/G4ParticleDefinition.hh:109:44: note: expanded from macro 'G4MT_pmanager' #define G4MT_pmanager ((subInstanceManager.offset[g4particleDefinitionInstanceID]).theProcessManager) ^ In file included from /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_2_X_2017-06-06-2300/src/SimG4CMS/Forward/src/CastorTestAnalysis.cc:17: /build/cmsbld/jenkins-workarea/workspace/ib-any-integration/CMSSW_9_2_X_2017-06-06-2300/src/SimG4CMS/Forward/interface/CastorTestAnalysis.h:64:7: error: definition of type 'CaloG4HitCollection' conflicts with typedef of the same name class CaloG4HitCollection; ^ /cvmfs/cms-ib.cern.ch/nweek-02475/slc6_amd64_gcc530/cms/cmssw/CMSSW_9_2_X_2017-06-06-2300/src/SimG4CMS/Calo/interface/CaloG4HitCollection.h:11:38: note: 'CaloG4HitCollection' declared here typedef G4THitsCollection CaloG4HitCollection; ^ |
Comparison not run due to Build errors (RelVals and Igprof tests were also skipped) |
@Teemperor , please, close this PR, #19170 include these fixes |
In TotemSD.h we need a forward declaration for SimTrackManager
because a we use a ptr to this class in the constructor.
In CastorTestAnalysis.h we need to have a forward declaration to
CaloG4HitCollection because we use a ptr to this class in the
getCastorBranchData signature.