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

Add missing forward decls to SimG4Forward. #19126

Closed

Conversation

Teemperor
Copy link
Contributor

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.

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.
@Teemperor
Copy link
Contributor Author

Part of the work going on regarding issue #15248

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 7, 2017

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.
@makortel this is something you requested to watch as well.
@davidlange6 you are the release manager for this.

cms-bot commands are listed here

@civanch
Copy link
Contributor

civanch commented Jun 7, 2017

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 7, 2017

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/20389/console Started: 2017/06/07 10:27

@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 7, 2017

-1

Tested at: ee73c23

You can see the results of the tests here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-19126/20389/summary.html

I found follow errors while testing this PR

Failed tests: Build ClangBuild

  • Build:

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;

  • Clang:

I found a compilation error while trying to compile with clang:
I used this command:
scram b vclean && scram build -k -j 64 USER_CXXFLAGS='-fsyntax-only' COMPILER='llvm compile'

           ^
/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;
                                     ^


@cmsbuild
Copy link
Contributor

cmsbuild commented Jun 7, 2017

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

@civanch
Copy link
Contributor

civanch commented Jun 9, 2017

@Teemperor , please, close this PR, #19170 include these fixes

@Teemperor Teemperor deleted the FixIncludesSimG4CMSForward branch December 19, 2017 08:47
@Teemperor Teemperor restored the FixIncludesSimG4CMSForward branch December 19, 2017 10:42
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