diff --git a/Simulation/BeamEffects/CMakeLists.txt b/Simulation/BeamEffects/CMakeLists.txt index d6a212d812fa497c6030d0434491b3fb3436fe66..4bc0f27b9b6bceaead0e7e266b0dd4f45dd06139 100644 --- a/Simulation/BeamEffects/CMakeLists.txt +++ b/Simulation/BeamEffects/CMakeLists.txt @@ -14,13 +14,13 @@ atlas_depends_on_subdirs( PUBLIC Control/AthenaBaseComps Control/StoreGate Event/EventInfo + Generators/AtlasHepMC Generators/GeneratorObjects InnerDetector/InDetConditions/InDetBeamSpotService Simulation/Interfaces/HepMC_Interfaces ) # External dependencies: find_package( CLHEP ) -find_package( HepMC ) find_package( GTest ) find_package( Eigen REQUIRED ) #find_package( GMock ) @@ -30,8 +30,8 @@ include_directories(SYSTEM ${EIGEN_INCLUDE_DIRS}) atlas_add_test( BeamEffectsAlg_test SOURCES src/*.cxx test/BeamEffectsAlg_test.cxx - INCLUDE_DIRS ${EIGEN_INCLUDE_DIRS} ${CLHEP_INCLUDE_DIRS} ${HEPMC_INCLUDE_DIRS} ${GTEST_INCLUDE_DIRS} #${GMOCK_INCLUDE_DIRS} - LINK_LIBRARIES ${CLHEP_LIBRARIES} ${HEPMC_LIBRARIES} GaudiKernel TestTools AthenaBaseComps StoreGateLib EventInfo GeneratorObjects BeamSpotConditionsData ${GTEST_LIBRARIES} #${GMOCK_LIBRARIES} + INCLUDE_DIRS ${EIGEN_INCLUDE_DIRS} ${CLHEP_INCLUDE_DIRS} ${GTEST_INCLUDE_DIRS} #${GMOCK_INCLUDE_DIRS} + LINK_LIBRARIES ${CLHEP_LIBRARIES} AtlasHepMCLib GaudiKernel TestTools AthenaBaseComps StoreGateLib EventInfo GeneratorObjects BeamSpotConditionsData ${GTEST_LIBRARIES} #${GMOCK_LIBRARIES} ) @@ -44,8 +44,8 @@ atlas_add_test( BeamEffectsAlgConfig_test atlas_add_component( BeamEffects src/*.cxx src/components/*.cxx - INCLUDE_DIRS ${EIGEN_INCLUDE_DIRS} ${CLHEP_INCLUDE_DIRS} ${HEPMC_INCLUDE_DIRS} - LINK_LIBRARIES ${CLHEP_LIBRARIES} ${HEPMC_LIBRARIES} GaudiKernel AthenaBaseComps StoreGateLib EventInfo GeneratorObjects BeamSpotConditionsData ) + INCLUDE_DIRS ${EIGEN_INCLUDE_DIRS} ${CLHEP_INCLUDE_DIRS} + LINK_LIBRARIES ${CLHEP_LIBRARIES} AtlasHepMCLib GaudiKernel AthenaBaseComps StoreGateLib EventInfo GeneratorObjects BeamSpotConditionsData ) # Install files from the package: atlas_install_python_modules( python/*.py ) diff --git a/Simulation/BeamEffects/src/BeamEffectsAlg.h b/Simulation/BeamEffects/src/BeamEffectsAlg.h index a187db0223e8428699c61cfa5c8c2bd55a67636e..0400ccba0ea9db7dbbcb92388b0f5e8dfe9b71b6 100644 --- a/Simulation/BeamEffects/src/BeamEffectsAlg.h +++ b/Simulation/BeamEffects/src/BeamEffectsAlg.h @@ -20,9 +20,7 @@ // Forward declarations class McEventCollection; -namespace HepMC { - class GenEvent; -} +#include "AtlasHepMC/GenEvent_fwd.h" namespace SimTesting { class BeamEffectsAlg_test; } diff --git a/Simulation/BeamEffects/src/GenEventBeamEffectBooster.cxx b/Simulation/BeamEffects/src/GenEventBeamEffectBooster.cxx index fdcbecf0d14a4b1834c35843ae6a446580879b66..3bf5e81861c3e8d6f697d209371faefe8c39a7e5 100644 --- a/Simulation/BeamEffects/src/GenEventBeamEffectBooster.cxx +++ b/Simulation/BeamEffects/src/GenEventBeamEffectBooster.cxx @@ -18,8 +18,8 @@ #include "CLHEP/Units/PhysicalConstants.h" // HepMC includes -#include "HepMC/GenEvent.h" -#include "HepMC/GenParticle.h" +#include "AtlasHepMC/GenEvent.h" +#include "AtlasHepMC/GenParticle.h" namespace Simulation { diff --git a/Simulation/BeamEffects/src/GenEventBeamEffectBooster.h b/Simulation/BeamEffects/src/GenEventBeamEffectBooster.h index 9b9d92ec9c202b1fd694260ab23397c34d199cab..49060bd70c392c5e662c8c22d1a9d6c8543b3fc3 100644 --- a/Simulation/BeamEffects/src/GenEventBeamEffectBooster.h +++ b/Simulation/BeamEffects/src/GenEventBeamEffectBooster.h @@ -26,9 +26,7 @@ namespace ATHRNG { class RNGWrapper; } -namespace HepMC { - class GenParticle; -} +#include "AtlasHepMC/GenParticle_fwd.h" namespace Simulation { diff --git a/Simulation/BeamEffects/src/GenEventRotator.cxx b/Simulation/BeamEffects/src/GenEventRotator.cxx index bae7764fd9f88fad81b348d75a40f00aefae3204..2d2050e969de4b53b7a8864f3dd2a7ea9021fe1c 100644 --- a/Simulation/BeamEffects/src/GenEventRotator.cxx +++ b/Simulation/BeamEffects/src/GenEventRotator.cxx @@ -17,8 +17,8 @@ #include "CLHEP/Units/PhysicalConstants.h" // HepMC includes -#include "HepMC/GenEvent.h" -#include "HepMC/GenParticle.h" +#include "AtlasHepMC/GenEvent.h" +#include "AtlasHepMC/GenParticle.h" namespace Simulation { diff --git a/Simulation/BeamEffects/src/GenEventRotator.h b/Simulation/BeamEffects/src/GenEventRotator.h index 9850aac26512a6f7e04a04ca64dcc482dbb30e3f..a1f71c056f84b5cc29a859c784c1c12bcbcfc47b 100644 --- a/Simulation/BeamEffects/src/GenEventRotator.h +++ b/Simulation/BeamEffects/src/GenEventRotator.h @@ -20,9 +20,7 @@ #include "CLHEP/Geometry/Transform3D.h" #include "CLHEP/Vector/LorentzRotation.h" -namespace HepMC { - class GenParticle; -} +#include "AtlasHepMC/GenParticle.h" namespace Simulation { diff --git a/Simulation/BeamEffects/src/GenEventValidityChecker.cxx b/Simulation/BeamEffects/src/GenEventValidityChecker.cxx index 7c3e4725a88a4d54a4294e011b1d46ed0a06eb8e..767b2f025e82a7fdf89012f4dbc953d7bb91fa05 100644 --- a/Simulation/BeamEffects/src/GenEventValidityChecker.cxx +++ b/Simulation/BeamEffects/src/GenEventValidityChecker.cxx @@ -10,7 +10,7 @@ #include "GenEventValidityChecker.h" // HepMC includes -#include "HepMC/GenEvent.h" +#include "AtlasHepMC/GenEvent.h" // CLHEP includes #include "CLHEP/Geometry/Point3D.h" diff --git a/Simulation/BeamEffects/src/GenEventVertexPositioner.cxx b/Simulation/BeamEffects/src/GenEventVertexPositioner.cxx index 37b18fcaf59f5d74342a7437780234b529a07621..589f99cbc1930c1119e7f65b3cf4885ff04244a5 100644 --- a/Simulation/BeamEffects/src/GenEventVertexPositioner.cxx +++ b/Simulation/BeamEffects/src/GenEventVertexPositioner.cxx @@ -10,7 +10,8 @@ #include "GenEventVertexPositioner.h" // HepMC includes -#include "HepMC/GenEvent.h" +#include "AtlasHepMC/GenEvent.h" +#include "AtlasHepMC/GenVertex.h" // Framework includes #include "HepMC_Interfaces/ILorentzVectorGenerator.h" diff --git a/Simulation/BeamEffects/src/VertexPositionFromFile.cxx b/Simulation/BeamEffects/src/VertexPositionFromFile.cxx index 93644e31e35a38c90b0a4ec37417389c31674493..e9c249493f29e48ba9615c9cabc2ac556039e9b7 100644 --- a/Simulation/BeamEffects/src/VertexPositionFromFile.cxx +++ b/Simulation/BeamEffects/src/VertexPositionFromFile.cxx @@ -10,7 +10,7 @@ #include "VertexPositionFromFile.h" // HepMC includes -#include "HepMC/GenEvent.h" +#include "AtlasHepMC/GenEvent.h" // CLHEP includes #include "CLHEP/Vector/LorentzVector.h" // EventInfo diff --git a/Simulation/BeamEffects/src/ZeroLifetimePositioner.cxx b/Simulation/BeamEffects/src/ZeroLifetimePositioner.cxx index 7833a05bfffc3d95a2ac74202381100525c1c953..0b58be6c4d7ecd9fc914ee3b4a06f33d854f6ac0 100644 --- a/Simulation/BeamEffects/src/ZeroLifetimePositioner.cxx +++ b/Simulation/BeamEffects/src/ZeroLifetimePositioner.cxx @@ -6,7 +6,8 @@ #include "ZeroLifetimePositioner.h" // HepMC includes -#include "HepMC/GenEvent.h" +#include "AtlasHepMC/GenEvent.h" +#include "AtlasHepMC/GenVertex.h" // CLHEP includes #include "CLHEP/Vector/LorentzVector.h" diff --git a/Simulation/BeamEffects/test/BeamEffectsAlg_test.cxx b/Simulation/BeamEffects/test/BeamEffectsAlg_test.cxx index 83359e87137ec45ba6c55ffd6df6f1f2cf42c43d..29648675fd51f92b264da450ed1a46ed2773ea9b 100644 --- a/Simulation/BeamEffects/test/BeamEffectsAlg_test.cxx +++ b/Simulation/BeamEffects/test/BeamEffectsAlg_test.cxx @@ -21,7 +21,9 @@ // #include "gmock/gmock.h" // HepMC includes -#include "HepMC/GenEvent.h" +#include "AtlasHepMC/GenEvent.h" +#include "AtlasHepMC/GenVertex.h" +#include "AtlasHepMC/GenParticle.h" // CLHEP includes #include "CLHEP/Vector/LorentzVector.h" diff --git a/Simulation/FastShower/FastCaloSim/CMakeLists.txt b/Simulation/FastShower/FastCaloSim/CMakeLists.txt index d1ee445c139c93020c5dc9d1341d0ff1bfbfef11..916d464d5ca11f82a95c169dd9d435c1c2c65a7e 100644 --- a/Simulation/FastShower/FastCaloSim/CMakeLists.txt +++ b/Simulation/FastShower/FastCaloSim/CMakeLists.txt @@ -27,6 +27,7 @@ atlas_depends_on_subdirs( PUBLIC Generators/GeneratorObjects Simulation/FastShower/FastCaloSimAthenaPool PRIVATE + Generators/AtlasHepMC Control/AthAllocators Database/AthenaPOOL/AthenaPoolUtilities DetectorDescription/AtlasDetDescr @@ -43,7 +44,6 @@ atlas_depends_on_subdirs( PUBLIC # External dependencies: find_package( CLHEP ) find_package( Eigen ) -find_package( HepMC ) find_package( HepPDT ) find_package( ROOT COMPONENTS Gpad Cint Core Tree MathCore Hist RIO pthread MathMore Minuit Minuit2 Matrix Physics HistPainter Rint Graf Graf3d Html Postscript Gui GX11TTF GX11 ) @@ -82,12 +82,12 @@ atlas_add_library( FastCaloSimLib PRIVATE_INCLUDE_DIRS ${CLHEP_INCLUDE_DIRS} ${HEPMC_INCLUDE_DIRS} ${EIGEN_INCLUDE_DIRS} PRIVATE_DEFINITIONS ${CLHEP_DEFINITIONS} LINK_LIBRARIES ${ROOT_LIBRARIES} ${HEPPDT_LIBRARIES} CaloEvent CaloIdentifier AthenaBaseComps AthenaKernel Identifier GaudiKernel LArRecEvent TileEvent TrkEventPrimitives TrkParameters TrkExInterfaces CaloDetDescrLib StoreGateLib SGtests - PRIVATE_LINK_LIBRARIES ${CLHEP_LIBRARIES} ${HEPMC_LIBRARIES} ${EIGEN_LIBRARIES} AthAllocators AthenaPoolUtilities AtlasDetDescr GeoPrimitives EventKernel NavFourMom GeneratorObjects TruthUtils FastCaloSimAthenaPool PathResolver TrkGeometry TrkSurfaces TrkMaterialOnTrack ) + PRIVATE_LINK_LIBRARIES ${CLHEP_LIBRARIES} AtlasHepMCLib ${EIGEN_LIBRARIES} AthAllocators AthenaPoolUtilities AtlasDetDescr GeoPrimitives EventKernel NavFourMom GeneratorObjects TruthUtils FastCaloSimAthenaPool PathResolver TrkGeometry TrkSurfaces TrkMaterialOnTrack ) atlas_add_component( FastCaloSim src/components/*.cxx INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} ${HEPPDT_INCLUDE_DIRS} ${CLHEP_INCLUDE_DIRS} ${HEPMC_INCLUDE_DIRS} ${EIGEN_INCLUDE_DIRS} - LINK_LIBRARIES ${ROOT_LIBRARIES} ${HEPPDT_LIBRARIES} ${CLHEP_LIBRARIES} ${HEPMC_LIBRARIES} ${EIGEN_LIBRARIES} CaloDetDescrLib CaloEvent CaloIdentifier AthenaBaseComps AthenaKernel StoreGateLib SGtests Identifier GaudiKernel LArRecEvent TileEvent TrkEventPrimitives TrkParameters TrkExInterfaces AthAllocators AthenaPoolUtilities AtlasDetDescr GeoPrimitives EventKernel NavFourMom GeneratorObjects TruthUtils FastCaloSimAthenaPool PathResolver TrkGeometry TrkSurfaces TrkMaterialOnTrack FastCaloSimLib ) + LINK_LIBRARIES ${ROOT_LIBRARIES} ${HEPPDT_LIBRARIES} ${CLHEP_LIBRARIES} AtlasHepMCLib ${EIGEN_LIBRARIES} CaloDetDescrLib CaloEvent CaloIdentifier AthenaBaseComps AthenaKernel StoreGateLib SGtests Identifier GaudiKernel LArRecEvent TileEvent TrkEventPrimitives TrkParameters TrkExInterfaces AthAllocators AthenaPoolUtilities AtlasDetDescr GeoPrimitives EventKernel NavFourMom GeneratorObjects TruthUtils FastCaloSimAthenaPool PathResolver TrkGeometry TrkSurfaces TrkMaterialOnTrack FastCaloSimLib ) # Install files from the package: atlas_install_python_modules( python/*.py ) diff --git a/Simulation/FastShower/FastCaloSim/FastCaloSim/FastShowerCellBuilderTool.h b/Simulation/FastShower/FastCaloSim/FastCaloSim/FastShowerCellBuilderTool.h index d148ee2b61f46015b3f3645d047eaebbf0f47e99..91e0b289f4ca2ee6d2fa3688130145c4f1f29c49 100755 --- a/Simulation/FastShower/FastCaloSim/FastCaloSim/FastShowerCellBuilderTool.h +++ b/Simulation/FastShower/FastCaloSim/FastCaloSim/FastShowerCellBuilderTool.h @@ -26,10 +26,9 @@ -namespace HepMC { - class GenParticle; - class GenVertex; -} +#include "AtlasHepMC/GenParticle_fwd.h" +#include "AtlasHepMC/GenVertex_fwd.h" + namespace Trk { class TrackingVolume; diff --git a/Simulation/FastShower/FastCaloSim/src/FastShowerCellBuilderTool.cxx b/Simulation/FastShower/FastCaloSim/src/FastShowerCellBuilderTool.cxx index a0e89b3136b527153d341aca06cfe6c104d4f2bb..8f28bbda5258b3a8e0aeaadbbe6d0ebcad3652b8 100755 --- a/Simulation/FastShower/FastCaloSim/src/FastShowerCellBuilderTool.cxx +++ b/Simulation/FastShower/FastCaloSim/src/FastShowerCellBuilderTool.cxx @@ -24,8 +24,8 @@ #endif #include "CLHEP/Random/RandGaussZiggurat.h" #include "CLHEP/Random/RandFlat.h" -#include "HepMC/GenParticle.h" -#include "HepMC/GenVertex.h" +#include "AtlasHepMC/GenParticle.h" +#include "AtlasHepMC/GenVertex.h" #include "PathResolver/PathResolver.h" diff --git a/Simulation/FastSimulation/FastChainPileup/FastChainPileup/MultiParticleGunPileup.h b/Simulation/FastSimulation/FastChainPileup/FastChainPileup/MultiParticleGunPileup.h index 8ed8b97c082fe3d92585ef6cc4f0db7b816b05d0..3ddad2b3c773ca2426562a9ce74afb65ba5b0613 100644 --- a/Simulation/FastSimulation/FastChainPileup/FastChainPileup/MultiParticleGunPileup.h +++ b/Simulation/FastSimulation/FastChainPileup/FastChainPileup/MultiParticleGunPileup.h @@ -18,9 +18,7 @@ #include "GeneratorModules/GenModule.h" #include "FastChainPileup/Samplers.h" -namespace HepMC { - class GenEvent; -} +#include "AtlasHepMC/GenEvent_fwd.h" class MultiParticleGunPileup : public GenModule { diff --git a/Simulation/FastSimulation/FastChainPileup/FastChainPileup/MultiPy8Pileup.h b/Simulation/FastSimulation/FastChainPileup/FastChainPileup/MultiPy8Pileup.h index b1f674c029bc7a32d3ecd253453484f535b60749..b80f40607a1b40e3b38d4d4469cd143746d9de17 100644 --- a/Simulation/FastSimulation/FastChainPileup/FastChainPileup/MultiPy8Pileup.h +++ b/Simulation/FastSimulation/FastChainPileup/FastChainPileup/MultiPy8Pileup.h @@ -18,9 +18,7 @@ #include "Pythia8_i/Pythia8_i.h" -namespace HepMC { - class GenEvent; -} +#include "AtlasHepMC/GenEvent_fwd.h" class MultiPy8Pileup : public Pythia8_i { diff --git a/Simulation/FastSimulation/FastSimulationEvent/FastSimulationEvent/GenParticleEnergyDepositMap.h b/Simulation/FastSimulation/FastSimulationEvent/FastSimulationEvent/GenParticleEnergyDepositMap.h index 5fe3f04dbb5714ccf9a7869aa20d1589fe77ac8b..5c7e0f52bfaff24ed879a961eae1eef16eb978a2 100644 --- a/Simulation/FastSimulation/FastSimulationEvent/FastSimulationEvent/GenParticleEnergyDepositMap.h +++ b/Simulation/FastSimulation/FastSimulationEvent/FastSimulationEvent/GenParticleEnergyDepositMap.h @@ -18,9 +18,7 @@ #include <map> #include <utility> -namespace HepMC { - class GenParticle; -} +#include "AtlasHepMC/GenParticle_fwd.h" namespace FSim { diff --git a/Simulation/G4Atlas/G4AtlasAlg/CMakeLists.txt b/Simulation/G4Atlas/G4AtlasAlg/CMakeLists.txt index 54fe30ab2ce3bfb807a6fccb06dbaa2df4437ba0..3510ec858b95c29ffaa7313333fc0a502915496e 100644 --- a/Simulation/G4Atlas/G4AtlasAlg/CMakeLists.txt +++ b/Simulation/G4Atlas/G4AtlasAlg/CMakeLists.txt @@ -15,6 +15,7 @@ atlas_depends_on_subdirs( PUBLIC Control/StoreGate DetectorDescription/GeoModel/GeoModelInterfaces Event/EventInfo + Generators/AtlasHepMC Generators/GeneratorObjects Simulation/G4Atlas/G4AtlasInterfaces Simulation/G4Sim/MCTruthBase @@ -24,7 +25,6 @@ atlas_depends_on_subdirs( PUBLIC # External dependencies: find_package( CLHEP ) find_package( Geant4 ) -find_package( HepMC ) find_package( XercesC ) find_package( Eigen ) @@ -35,14 +35,14 @@ atlas_add_library( G4AtlasAlgLib PUBLIC_HEADERS G4AtlasAlg INCLUDE_DIRS ${GEANT4_INCLUDE_DIRS} ${EIGEN_INCLUDE_DIRS} ${XERCESC_INCLUDE_DIRS} ${CLHEP_INCLUDE_DIRS} ${HEPMC_INCLUDE_DIRS} - LINK_LIBRARIES ${GEANT4_LIBRARIES} ${EIGEN_LIBRARIES} ${XERCESC_LIBRARIES} ${CLHEP_LIBRARIES} ${HEPMC_LIBRARIES} AthenaBaseComps AthenaKernel GaudiKernel G4AtlasInterfaces SGTools StoreGateLib SGtests EventInfo GeneratorObjects MCTruthBaseLib ) + LINK_LIBRARIES ${GEANT4_LIBRARIES} ${EIGEN_LIBRARIES} ${XERCESC_LIBRARIES} ${CLHEP_LIBRARIES} AtlasHepMCLib AthenaBaseComps AthenaKernel GaudiKernel G4AtlasInterfaces SGTools StoreGateLib SGtests EventInfo GeneratorObjects MCTruthBaseLib ) # Component(s) in the package: atlas_add_component( G4AtlasAlg src/components/*.cxx PUBLIC_HEADERS G4AtlasAlg INCLUDE_DIRS ${GEANT4_INCLUDE_DIRS} ${EIGEN_INCLUDE_DIRS} ${XERCESC_INCLUDE_DIRS} ${CLHEP_INCLUDE_DIRS} ${HEPMC_INCLUDE_DIRS} - LINK_LIBRARIES ${GEANT4_LIBRARIES} ${EIGEN_LIBRARIES} ${XERCESC_LIBRARIES} ${CLHEP_LIBRARIES} ${HEPMC_LIBRARIES} AthenaBaseComps AthenaKernel GaudiKernel G4AtlasInterfaces G4AtlasAlgLib SGTools StoreGateLib SGtests EventInfo GeneratorObjects MCTruthBaseLib ) + LINK_LIBRARIES ${GEANT4_LIBRARIES} ${EIGEN_LIBRARIES} ${XERCESC_LIBRARIES} ${CLHEP_LIBRARIES} AtlasHepMCLib AthenaBaseComps AthenaKernel GaudiKernel G4AtlasInterfaces G4AtlasAlgLib SGTools StoreGateLib SGtests EventInfo GeneratorObjects MCTruthBaseLib ) #Test G4AtlasAlg #atlas_add_test( G4AtlasAlgConfigNew_Test diff --git a/Simulation/G4Atlas/G4AtlasTests/CMakeLists.txt b/Simulation/G4Atlas/G4AtlasTests/CMakeLists.txt index e49db9253e1ce4eca1e0e05a84f8cbeb58a963b6..70bbbadc14f248d3a96526bf92fbcb3d020b3dde 100644 --- a/Simulation/G4Atlas/G4AtlasTests/CMakeLists.txt +++ b/Simulation/G4Atlas/G4AtlasTests/CMakeLists.txt @@ -22,6 +22,7 @@ atlas_depends_on_subdirs( PUBLIC ForwardDetectors/ALFA/ALFA_SimEv ForwardDetectors/LUCID/LUCID_SimUtils/LUCID_SimEvent ForwardDetectors/ZDC/ZDC_SimEvent + Generators/AtlasHepMC Generators/GeneratorObjects InnerDetector/InDetSimEvent LArCalorimeter/LArSimEvent @@ -42,7 +43,6 @@ atlas_depends_on_subdirs( PUBLIC find_package( CLHEP ) find_package( Eigen ) find_package( Geant4 ) -find_package( HepMC ) find_package( ROOT COMPONENTS Core Tree MathCore Hist RIO pthread ) find_package( XercesC ) @@ -50,7 +50,7 @@ find_package( XercesC ) atlas_add_component( G4AtlasTests src/*.cxx INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} ${XERCESC_INCLUDE_DIRS} ${CLHEP_INCLUDE_DIRS} ${HEPMC_INCLUDE_DIRS} ${GEANT4_INCLUDE_DIRS} ${EIGEN_INCLUDE_DIRS} - LINK_LIBRARIES ${ROOT_LIBRARIES} ${XERCESC_LIBRARIES} ${CLHEP_LIBRARIES} ${HEPMC_LIBRARIES} ${GEANT4_LIBRARIES} ${EIGEN_LIBRARIES} AthenaBaseComps GaudiKernel CaloDetDescrLib CaloIdentifier CaloSimEvent AthenaKernel StoreGateLib SGtests GeoAdaptors GeoPrimitives Identifier EventInfo ALFA_SimEv LUCID_SimEvent ZDC_SimEvent GeneratorObjects InDetSimEvent LArSimEvent MuonReadoutGeometry MuonIdHelpersLib MuonSimEvent McParticleEvent G4AtlasToolsLib MCTruth HitManagement TileDetDescr TileIdentifier TileSimEvent ) + LINK_LIBRARIES ${ROOT_LIBRARIES} ${XERCESC_LIBRARIES} ${CLHEP_LIBRARIES} AtlasHepMCLib ${GEANT4_LIBRARIES} ${EIGEN_LIBRARIES} AthenaBaseComps GaudiKernel CaloDetDescrLib CaloIdentifier CaloSimEvent AthenaKernel StoreGateLib SGtests GeoAdaptors GeoPrimitives Identifier EventInfo ALFA_SimEv LUCID_SimEvent ZDC_SimEvent GeneratorObjects InDetSimEvent LArSimEvent MuonReadoutGeometry MuonIdHelpersLib MuonSimEvent McParticleEvent G4AtlasToolsLib MCTruth HitManagement TileDetDescr TileIdentifier TileSimEvent ) # Install files from the package: atlas_install_headers( G4AtlasTests ) diff --git a/Simulation/G4Atlas/G4AtlasTests/src/LArHitsTestTool.cxx b/Simulation/G4Atlas/G4AtlasTests/src/LArHitsTestTool.cxx index 324be62034a95c79ec3f01667082de0069ae3c97..4ae39cccf85a9a23097a0f7afed97942ba1a395d 100644 --- a/Simulation/G4Atlas/G4AtlasTests/src/LArHitsTestTool.cxx +++ b/Simulation/G4Atlas/G4AtlasTests/src/LArHitsTestTool.cxx @@ -8,7 +8,7 @@ #include "LArSimEvent/LArHit.h" #include "LArSimEvent/LArHitContainer.h" #include "CaloDetDescr/CaloDetDescrElement.h" -#include "HepMC/GenParticle.h" +#include "AtlasHepMC/GenParticle.h" #include <TH2D.h> #include <TH1.h> diff --git a/Simulation/G4Atlas/G4AtlasTests/src/LucidHitsTestTool.cxx b/Simulation/G4Atlas/G4AtlasTests/src/LucidHitsTestTool.cxx index 196b08aad98c7af2ee791d8ced26c99924a36371..cc8887f549ef5c392e819799df0ed135652ea395 100644 --- a/Simulation/G4Atlas/G4AtlasTests/src/LucidHitsTestTool.cxx +++ b/Simulation/G4Atlas/G4AtlasTests/src/LucidHitsTestTool.cxx @@ -6,7 +6,7 @@ #include "LUCID_SimEvent/LUCID_SimHitCollection.h" //#include "LUCID_SimEvent/LUCID_SimHit.h" -#include "HepMC/GenParticle.h" +#include "AtlasHepMC/GenParticle.h" #include <string> #include <cmath> diff --git a/Simulation/G4Atlas/G4AtlasTests/src/SiHitsTestTool.cxx b/Simulation/G4Atlas/G4AtlasTests/src/SiHitsTestTool.cxx index 153f0c27d9e15d914250176f439f4be056dc203b..d0d491c0aebd38ae1598c6cc66ef0acc75274253 100644 --- a/Simulation/G4Atlas/G4AtlasTests/src/SiHitsTestTool.cxx +++ b/Simulation/G4Atlas/G4AtlasTests/src/SiHitsTestTool.cxx @@ -8,7 +8,7 @@ #include "GeoAdaptors/GeoSiHit.h" #include "InDetSimEvent/SiHitCollection.h" -#include "HepMC/GenParticle.h" +#include "AtlasHepMC/GenParticle.h" #include <TH2D.h> #include <TProfile.h> diff --git a/Simulation/G4Atlas/G4AtlasTests/src/SimTestToolBase.cxx b/Simulation/G4Atlas/G4AtlasTests/src/SimTestToolBase.cxx index 1ae66bd5450d517bb0f46c031ee1496e7788dd27..a52f988aa5aa5c25594b83e759d5eb5ac31128fe 100644 --- a/Simulation/G4Atlas/G4AtlasTests/src/SimTestToolBase.cxx +++ b/Simulation/G4Atlas/G4AtlasTests/src/SimTestToolBase.cxx @@ -4,7 +4,7 @@ #include "SimTestToolBase.h" -#include "HepMC/GenEvent.h" +#include "AtlasHepMC/GenEvent.h" #include "GeneratorObjects/McEventCollection.h" SimTestToolBase::SimTestToolBase(const std::string& type, diff --git a/Simulation/G4Atlas/G4AtlasTests/src/SimTestToolBase.h b/Simulation/G4Atlas/G4AtlasTests/src/SimTestToolBase.h index b90a86e4c6412f23b08a572fed92aacfe485b5e4..5f8122d261ad073c2740584c2f2cbfd54613e1ff 100644 --- a/Simulation/G4Atlas/G4AtlasTests/src/SimTestToolBase.h +++ b/Simulation/G4Atlas/G4AtlasTests/src/SimTestToolBase.h @@ -16,9 +16,8 @@ #include "AthenaKernel/errorcheck.h" #include "GaudiKernel/ITHistSvc.h" -namespace HepMC { - class GenParticle; -} + +#include "AtlasHepMC/GenParticle_fwd.h" class TProfile; class TH1; diff --git a/Simulation/G4Atlas/G4AtlasTests/src/TruthTestTool.cxx b/Simulation/G4Atlas/G4AtlasTests/src/TruthTestTool.cxx index 72952dd7370c74e8fa960846fcd687e7afdf5e82..a14822d2e86332b9d69da03be1af964b320b547a 100644 --- a/Simulation/G4Atlas/G4AtlasTests/src/TruthTestTool.cxx +++ b/Simulation/G4Atlas/G4AtlasTests/src/TruthTestTool.cxx @@ -4,7 +4,7 @@ #include "TruthTestTool.h" -#include "HepMC/GenEvent.h" +#include "AtlasHepMC/GenEvent.h" #include "EventInfo/EventInfo.h" #include "EventInfo/EventID.h" diff --git a/Simulation/G4Extensions/G4ExternalDecay/CMakeLists.txt b/Simulation/G4Extensions/G4ExternalDecay/CMakeLists.txt index 772d4500d8d86d63033629db830cda7656e8abee..ccba67748899ab42c45a680ae40fd8e5eaaf4e0b 100644 --- a/Simulation/G4Extensions/G4ExternalDecay/CMakeLists.txt +++ b/Simulation/G4Extensions/G4ExternalDecay/CMakeLists.txt @@ -12,7 +12,6 @@ atlas_depends_on_subdirs( PRIVATE # External dependencies: find_package( CLHEP ) find_package( Geant4 ) -find_package( HepMC ) find_package( Lhapdf ) find_package( Pythia8 ) find_package( XercesC ) @@ -31,7 +30,7 @@ if( MCUTILS_FOUND ) endif() if( HEPMC_FOUND ) list( APPEND extra_includes ${HEPMC_INCLUDE_DIRS} ) - list( APPEND extra_libs ${HEPMC_LIBRARIES} ) + list( APPEND extra_libs AtlasHepMCLib ) endif() @@ -43,5 +42,5 @@ atlas_add_library( G4ExternalDecay PRIVATE_INCLUDE_DIRS ${HEPMC_INCLUDE_DIRS} DEFINITIONS ${CLHEP_DEFINITIONS} LINK_LIBRARIES ${XERCESC_LIBRARIES} ${CLHEP_LIBRARIES} ${PYTHIA8_LIBRARIES} ${LHAPDF_LIBRARIES} ${GEANT4_LIBRARIES} Pythia8_iLib ${extra_libs} - PRIVATE_LINK_LIBRARIES ${HEPMC_LIBRARIES} ) + PRIVATE_LINK_LIBRARIES AtlasHepMCLib ) diff --git a/Simulation/G4Extensions/G4ExternalDecay/src/Pythia8ForDecays.cxx b/Simulation/G4Extensions/G4ExternalDecay/src/Pythia8ForDecays.cxx index 1bac7b120da58af04555c09423ef28db74079127..d30a0e9e8c83bd2e490890964f2796f66eac39d7 100644 --- a/Simulation/G4Extensions/G4ExternalDecay/src/Pythia8ForDecays.cxx +++ b/Simulation/G4Extensions/G4ExternalDecay/src/Pythia8ForDecays.cxx @@ -14,9 +14,8 @@ #include "Pythia8/RHadrons.h" // HepMC for translation into format Pythia likes -#include "HepMC/IO_HEPEVT.h" -#include "HepMC/GenEvent.h" -#include "HepMC/GenParticle.h" +#include "AtlasHepMC/GenEvent.h" +#include "AtlasHepMC/GenParticle.h" // G4 classes for translation into G4 format #include "G4ParticleDefinition.hh" diff --git a/Simulation/G4Sim/MCTruth/CMakeLists.txt b/Simulation/G4Sim/MCTruth/CMakeLists.txt index b7f9bf9d80884bea410b4b36d527083594ac594b..4dc85f6995a60d4788d9e882a99a3174adf3cc63 100644 --- a/Simulation/G4Sim/MCTruth/CMakeLists.txt +++ b/Simulation/G4Sim/MCTruth/CMakeLists.txt @@ -8,6 +8,7 @@ atlas_subdir( MCTruth ) # Declare the package's dependencies: atlas_depends_on_subdirs( PUBLIC Control/AthenaKernel + Generators/AtlasHepMC Generators/GeneratorObjects PRIVATE Simulation/ISF/ISF_Core/ISF_Event @@ -16,7 +17,6 @@ atlas_depends_on_subdirs( PUBLIC # External dependencies: find_package( CLHEP ) find_package( Geant4 ) -find_package( HepMC ) find_package( XercesC ) # Component(s) in the package: @@ -25,5 +25,5 @@ atlas_add_library( MCTruth PUBLIC_HEADERS MCTruth INCLUDE_DIRS ${GEANT4_INCLUDE_DIRS} ${XERCESC_INCLUDE_DIRS} ${CLHEP_INCLUDE_DIRS} ${HEPMC_INCLUDE_DIRS} DEFINITIONS ${CLHEP_DEFINITIONS} - LINK_LIBRARIES ${GEANT4_LIBRARIES} ${XERCESC_LIBRARIES} ${CLHEP_LIBRARIES} ${HEPMC_LIBRARIES} AthenaKernel GeneratorObjects + LINK_LIBRARIES ${GEANT4_LIBRARIES} ${XERCESC_LIBRARIES} ${CLHEP_LIBRARIES} AtlasHepMCLib AthenaKernel GeneratorObjects PRIVATE_LINK_LIBRARIES ISF_Event SimHelpers ) diff --git a/Simulation/G4Sim/MCTruth/MCTruth/EventInformation.h b/Simulation/G4Sim/MCTruth/MCTruth/EventInformation.h index 8e1766937dcacc9b66eaf115043c4d4f6a5ca6ad..9ea3748848afc5f06d278154f0b3e925bdf8eb77 100644 --- a/Simulation/G4Sim/MCTruth/MCTruth/EventInformation.h +++ b/Simulation/G4Sim/MCTruth/MCTruth/EventInformation.h @@ -5,7 +5,8 @@ #ifndef EventInformation_H #define EventInformation_H -#include "HepMC/GenEvent.h" +#include "AtlasHepMC/GenEvent.h" +#include "AtlasHepMC/GenParticle.h" #include "G4ThreeVector.hh" #include "G4VUserEventInformation.hh" diff --git a/Simulation/G4Sim/MCTruth/MCTruth/PrimaryParticleInformation.h b/Simulation/G4Sim/MCTruth/MCTruth/PrimaryParticleInformation.h index d620c1534772483bc5b84115c37e848bfd99e6fd..13eb66a066fe22909825620092b3a68a7f26da3b 100644 --- a/Simulation/G4Sim/MCTruth/MCTruth/PrimaryParticleInformation.h +++ b/Simulation/G4Sim/MCTruth/MCTruth/PrimaryParticleInformation.h @@ -6,7 +6,8 @@ #define PrimaryParticleInformation_H #include "G4VUserPrimaryParticleInformation.hh" -#include "HepMC/GenEvent.h" +#include "AtlasHepMC/GenEvent.h" +#include "AtlasHepMC/GenParticle.h" namespace ISF { class ISFParticle; diff --git a/Simulation/G4Sim/MCTruth/MCTruth/TruthEvent.h b/Simulation/G4Sim/MCTruth/MCTruth/TruthEvent.h index 30142b631753fcd6420c70d92ba0c15b0263b2bc..d86c5e533d441aba23bb5a097e6913f5b2c99160 100644 --- a/Simulation/G4Sim/MCTruth/MCTruth/TruthEvent.h +++ b/Simulation/G4Sim/MCTruth/MCTruth/TruthEvent.h @@ -5,7 +5,7 @@ #ifndef TruthEvent_H #define TruthEvent_H -#include "HepMC/GenEvent.h" +#include "AtlasHepMC/GenEvent.h" #include "AthenaKernel/CLASS_DEF.h" typedef HepMC::GenEvent TruthEvent; diff --git a/Simulation/G4Sim/MCTruth/MCTruth/VTrackInformation.h b/Simulation/G4Sim/MCTruth/MCTruth/VTrackInformation.h index 188ac20eaf72763c9b6aa9a4cba8e28f784007f1..335ccf9f45d392946dc54565aeb9d67a8ccd90e7 100644 --- a/Simulation/G4Sim/MCTruth/MCTruth/VTrackInformation.h +++ b/Simulation/G4Sim/MCTruth/MCTruth/VTrackInformation.h @@ -9,9 +9,7 @@ enum TrackClassification { Primary, RegeneratedPrimary, RegisteredSecondary, Secondary, BarcodeOnly } ; -namespace HepMC { - class GenParticle; -} +#include "AtlasHepMC/GenParticle_fwd.h" namespace ISF { class ISFParticle; diff --git a/Simulation/G4Sim/MCTruth/src/TrackInformation.cxx b/Simulation/G4Sim/MCTruth/src/TrackInformation.cxx index f60e23aae2f658f530e5d31a13f8a9d8d4aa0870..62470bdc8b9f1b98a78a1c6d2082918eadb97b32 100644 --- a/Simulation/G4Sim/MCTruth/src/TrackInformation.cxx +++ b/Simulation/G4Sim/MCTruth/src/TrackInformation.cxx @@ -3,7 +3,7 @@ */ #include "MCTruth/TrackInformation.h" -#include "HepMC/GenEvent.h" +#include "AtlasHepMC/GenEvent.h" TrackInformation::TrackInformation():m_regenerationNr(0),m_theParticle(0),m_theBaseISFParticle(0),m_returnedToISF(false) { diff --git a/Simulation/G4Sim/MCTruthBase/CMakeLists.txt b/Simulation/G4Sim/MCTruthBase/CMakeLists.txt index 91b2c0650decc88d0c1f90187ecf922324345f99..7400360b76ed4de6815fd1d478dc1af7ee476c27 100644 --- a/Simulation/G4Sim/MCTruthBase/CMakeLists.txt +++ b/Simulation/G4Sim/MCTruthBase/CMakeLists.txt @@ -12,6 +12,7 @@ atlas_depends_on_subdirs( PUBLIC Simulation/G4Sim/SimHelpers Simulation/ISF/ISF_Core/ISF_Interfaces PRIVATE + Generators/AtlasHepMC Control/AthenaBaseComps Control/StoreGate Simulation/G4Atlas/G4AtlasInterfaces @@ -24,7 +25,6 @@ atlas_depends_on_subdirs( PUBLIC # External dependencies: find_package( CLHEP ) find_package( Geant4 ) -find_package( HepMC ) find_package( XercesC ) # Component(s) in the package: @@ -33,7 +33,7 @@ atlas_add_library( MCTruthBaseLib PUBLIC_HEADERS MCTruthBase INCLUDE_DIRS ${GEANT4_INCLUDE_DIRS} ${XERCESC_INCLUDE_DIRS} ${CLHEP_INCLUDE_DIRS} ${HEPMC_INCLUDE_DIRS} DEFINITIONS ${CLHEP_DEFINITIONS} - LINK_LIBRARIES ${GEANT4_LIBRARIES} ${XERCESC_LIBRARIES} ${CLHEP_LIBRARIES} ${HEPMC_LIBRARIES} AthenaKernel GaudiKernel StoreGateLib SGtests G4AtlasToolsLib + LINK_LIBRARIES ${GEANT4_LIBRARIES} ${XERCESC_LIBRARIES} ${CLHEP_LIBRARIES} AtlasHepMCLib AthenaKernel GaudiKernel StoreGateLib SGtests G4AtlasToolsLib PRIVATE_LINK_LIBRARIES AthenaBaseComps G4AtlasInterfaces MCTruth SimHelpers ISF_Interfaces AtlasDetDescr ISF_Geant4Event @@ -44,7 +44,7 @@ atlas_add_component( MCTruthBase INCLUDE_DIRS ${GEANT4_INCLUDE_DIRS} ${XERCESC_INCLUDE_DIRS} ${CLHEP_INCLUDE_DIRS} ${HEPMC_INCLUDE_DIRS} LINK_LIBRARIES ${GEANT4_LIBRARIES} ${XERCESC_LIBRARIES} ${CLHEP_LIBRARIES} - ${HEPMC_LIBRARIES} AthenaKernel GaudiKernel + AtlasHepMCLib AthenaKernel GaudiKernel AthenaBaseComps StoreGateLib SGtests G4AtlasInterfaces G4AtlasToolsLib MCTruth SimHelpers ISF_Interfaces diff --git a/Simulation/G4Utilities/MCTruthSimAlgs/src/MergeMcEventCollTool.h b/Simulation/G4Utilities/MCTruthSimAlgs/src/MergeMcEventCollTool.h index bc2a7cb24d0f1c33eb34fd65cf56e6fe1cc5f652..e556c97518a47f7146e952eb190db0bc65518676 100755 --- a/Simulation/G4Utilities/MCTruthSimAlgs/src/MergeMcEventCollTool.h +++ b/Simulation/G4Utilities/MCTruthSimAlgs/src/MergeMcEventCollTool.h @@ -15,10 +15,8 @@ class McEventCollection; -namespace HepMC { - class GenParticle; - class GenVertex; -} +#include "AtlasHepMC/GenParticle_fwd.h" +#include "AtlasHepMC/GenVertex_fwd.h" /** @class MergeMcEventCollTool * @brief a PileUpTool to merge MC truth collection in the overlay store * diff --git a/Simulation/G4Utilities/MCTruthSimAlgs/src/SimpleMergeMcEventCollTool.h b/Simulation/G4Utilities/MCTruthSimAlgs/src/SimpleMergeMcEventCollTool.h index e9b5745e5aa6d2d477fd1e055852600aa478b733..15e3259f717936d8fd67445a68f6181d49536d87 100644 --- a/Simulation/G4Utilities/MCTruthSimAlgs/src/SimpleMergeMcEventCollTool.h +++ b/Simulation/G4Utilities/MCTruthSimAlgs/src/SimpleMergeMcEventCollTool.h @@ -14,10 +14,8 @@ class McEventCollection; -namespace HepMC { - class GenParticle; - class GenVertex; -} +#include "AtlasHepMC/GenParticle_fwd.h" +#include "AtlasHepMC/GenVertex_fwd.h" /** @class SimpleMergeMcEventCollTool * @brief a PileUpTool to merge MC truth collection in the overlay store * diff --git a/Simulation/ISF/ISF_Core/ISF_Algorithms/CMakeLists.txt b/Simulation/ISF/ISF_Core/ISF_Algorithms/CMakeLists.txt index ee174effb781a12617e6afc61fc2c87264e3f2b2..3cbe4f087562bc6966e4ed064e79177854b6c6a2 100644 --- a/Simulation/ISF/ISF_Core/ISF_Algorithms/CMakeLists.txt +++ b/Simulation/ISF/ISF_Core/ISF_Algorithms/CMakeLists.txt @@ -17,6 +17,7 @@ atlas_depends_on_subdirs( LArCalorimeter/LArSimEvent TileCalorimeter/TileSimEvent MuonSpectrometer/MuonSimEvent + Generators/AtlasHepMC Generators/GeneratorObjects Simulation/Interfaces/HepMC_Interfaces Simulation/ISF/ISF_Core/ISF_Event diff --git a/Simulation/ISF/ISF_Core/ISF_Algorithms/src/SimHitTreeCreator.cxx b/Simulation/ISF/ISF_Core/ISF_Algorithms/src/SimHitTreeCreator.cxx index 92228d987218585e7ad034fbf9ea3c45a2dea5c1..5ecfb37021a044d45d641e23c00dcc1e2a474c93 100644 --- a/Simulation/ISF/ISF_Core/ISF_Algorithms/src/SimHitTreeCreator.cxx +++ b/Simulation/ISF/ISF_Core/ISF_Algorithms/src/SimHitTreeCreator.cxx @@ -10,7 +10,7 @@ #include "GeneratorObjects/HepMcParticleLink.h" // HepMC includes -#include "HepMC/GenParticle.h" +#include "AtlasHepMC/GenParticle.h" // ROOT includes #include "TTree.h" diff --git a/Simulation/ISF/ISF_Core/ISF_Event/CMakeLists.txt b/Simulation/ISF/ISF_Core/ISF_Event/CMakeLists.txt index 6319de575682ca253d24edee4ffd117a04a03bdb..57c9aeb9d1887d27191b94baba0cc3a653d4fd71 100644 --- a/Simulation/ISF/ISF_Core/ISF_Event/CMakeLists.txt +++ b/Simulation/ISF/ISF_Core/ISF_Event/CMakeLists.txt @@ -11,6 +11,7 @@ atlas_depends_on_subdirs( PUBLIC Control/AthenaBaseComps DetectorDescription/AtlasDetDescr DetectorDescription/GeoPrimitives + Generators/AtlasHepMC Generators/GeneratorObjects GaudiKernel Simulation/Barcode/BarcodeEvent ) @@ -18,7 +19,6 @@ atlas_depends_on_subdirs( PUBLIC # External dependencies: find_package( CLHEP ) find_package( Eigen ) -find_package( HepMC ) # Component(s) in the package: atlas_add_library( ISF_Event @@ -26,10 +26,10 @@ atlas_add_library( ISF_Event PUBLIC_HEADERS ISF_Event INCLUDE_DIRS ${CLHEP_INCLUDE_DIRS} ${HEPMC_INCLUDE_DIRS} ${EIGEN_INCLUDE_DIRS} DEFINITIONS ${CLHEP_DEFINITIONS} - LINK_LIBRARIES ${CLHEP_LIBRARIES} ${HEPMC_LIBRARIES} ${EIGEN_LIBRARIES} TestTools AthenaBaseComps AtlasDetDescr GeoPrimitives GeneratorObjects GaudiKernel ) + LINK_LIBRARIES ${CLHEP_LIBRARIES} AtlasHepMCLib ${EIGEN_LIBRARIES} TestTools AthenaBaseComps AtlasDetDescr GeoPrimitives GeneratorObjects GaudiKernel ) atlas_add_test( ISFParticle_test SOURCES test/ISFParticle_test.cxx INCLUDE_DIRS ${CLHEP_INCLUDE_DIRS} ${HEPMC_INCLUDE_DIRS} ${EIGEN_INCLUDE_DIRS} - LINK_LIBRARIES ${CLHEP_LIBRARIES} ${HEPMC_LIBRARIES} ${EIGEN_LIBRARIES} TestTools AthenaBaseComps AtlasDetDescr GeoPrimitives GeneratorObjects GaudiKernel ISF_Event ) + LINK_LIBRARIES ${CLHEP_LIBRARIES} AtlasHepMCLib ${EIGEN_LIBRARIES} TestTools AthenaBaseComps AtlasDetDescr GeoPrimitives GeneratorObjects GaudiKernel ISF_Event ) diff --git a/Simulation/ISF/ISF_Core/ISF_Event/ISF_Event/HepMCHelper.h b/Simulation/ISF/ISF_Core/ISF_Event/ISF_Event/HepMCHelper.h index bde94521e487442a11d2db13b65fb71c37ba6632..ca3491cdbf5b1218e29e310ae2d85b3abe9e400b 100644 --- a/Simulation/ISF/ISF_Core/ISF_Event/ISF_Event/HepMCHelper.h +++ b/Simulation/ISF/ISF_Core/ISF_Event/ISF_Event/HepMCHelper.h @@ -16,13 +16,11 @@ #include "ISF_Event/ISFParticle.h" // HepMC includes -#include "HepMC/GenRanges.h" -#include "HepMC/GenVertex.h" +#include "AtlasHepMC/GenRanges.h" +#include "AtlasHepMC/GenVertex.h" // forward declarations -namespace HepMC { - class GenParticle; -} +#include "AtlasHepMC/GenParticle_fwd.h" namespace ISF { diff --git a/Simulation/ISF/ISF_Core/ISF_Event/ISF_Event/ITruthIncident.h b/Simulation/ISF/ISF_Core/ISF_Event/ISF_Event/ITruthIncident.h index 840d890fce5b9b0ccfda323458ad3c006c4d3155..3882f1d43ccb3c0b49bb46e2583fae5b95e6cb86 100644 --- a/Simulation/ISF/ISF_Core/ISF_Event/ISF_Event/ITruthIncident.h +++ b/Simulation/ISF/ISF_Core/ISF_Event/ISF_Event/ITruthIncident.h @@ -16,10 +16,8 @@ #include "BarcodeEvent/PhysicsProcessCode.h" // forward declarations -namespace HepMC { - class FourVector; - class GenParticle; -} +#include "AtlasHepMC/GenParticle_fwd.h" +#include "AtlasHepMC/SimpleVector_fwd.h" namespace ISF { diff --git a/Simulation/ISF/ISF_Core/ISF_Event/ISF_Event/ParticleHelper.h b/Simulation/ISF/ISF_Core/ISF_Event/ISF_Event/ParticleHelper.h index 358c89a6f1a9b76a2b2b8441cc1e3adf607a1448..48072b67b79d792570480aadc66e2642e383e49f 100644 --- a/Simulation/ISF/ISF_Core/ISF_Event/ISF_Event/ParticleHelper.h +++ b/Simulation/ISF/ISF_Core/ISF_Event/ISF_Event/ParticleHelper.h @@ -10,9 +10,7 @@ #define ISF_EVENT_PARTICLEHELPER_H 1 // forward declarations -namespace HepMC { - class GenParticle; -} +#include "AtlasHepMC/GenParticle_fwd.h" namespace ISF { diff --git a/Simulation/ISF/ISF_Core/ISF_Event/ISF_Event/TruthBinding.h b/Simulation/ISF/ISF_Core/ISF_Event/ISF_Event/TruthBinding.h index c430edc63066757ed60c2c0e7ef05c394e669c8f..599779d35715c687a3c5b200ef46f0ec13fcd63c 100644 --- a/Simulation/ISF/ISF_Core/ISF_Event/ISF_Event/TruthBinding.h +++ b/Simulation/ISF/ISF_Core/ISF_Event/ISF_Event/TruthBinding.h @@ -10,7 +10,7 @@ #define ISF_EVENT_TRUTHBINDING_H // HepMC -#include "HepMC/GenParticle.h" +#include "AtlasHepMC/GenParticle.h" namespace ISF { diff --git a/Simulation/ISF/ISF_Core/ISF_Event/src/ISFTruthIncident.cxx b/Simulation/ISF/ISF_Core/ISF_Event/src/ISFTruthIncident.cxx index 484384db43bcbd4c2f15f40b8eee373d27312667..e91de330fe4098272dcbe9da5662f79dfec942ec 100644 --- a/Simulation/ISF/ISF_Core/ISF_Event/src/ISFTruthIncident.cxx +++ b/Simulation/ISF/ISF_Core/ISF_Event/src/ISFTruthIncident.cxx @@ -14,8 +14,8 @@ #include "ISF_Event/ParticleHelper.h" // HepMC includes -#include "HepMC/SimpleVector.h" -#include "HepMC/GenParticle.h" +#include "AtlasHepMC/SimpleVector.h" +#include "AtlasHepMC/GenParticle.h" ISF::ISFTruthIncident::ISFTruthIncident( ISF::ISFParticle &parent, const ISFParticleVector& children, diff --git a/Simulation/ISF/ISF_Core/ISF_Event/src/ParticleHelper.cxx b/Simulation/ISF/ISF_Core/ISF_Event/src/ParticleHelper.cxx index 8f90542a259dce49397790287ed511bcf4a24acb..c8de9a6e0bdbea210008591e1e166283ee4c0d9e 100644 --- a/Simulation/ISF/ISF_Core/ISF_Event/src/ParticleHelper.cxx +++ b/Simulation/ISF/ISF_Core/ISF_Event/src/ParticleHelper.cxx @@ -10,9 +10,9 @@ #include "ISF_Event/ParticleHelper.h" // HepMC includes -#include "HepMC/GenParticle.h" -#include "HepMC/Flow.h" -#include "HepMC/SimpleVector.h" // HepMC::FourVector +#include "AtlasHepMC/GenParticle.h" +#include "AtlasHepMC/Flow.h" +#include "AtlasHepMC/SimpleVector.h" // HepMC::FourVector // ISF includes #include "ISF_Event/ISFParticle.h" diff --git a/Simulation/ISF/ISF_Core/ISF_Interfaces/ISF_Interfaces/IInputConverter.h b/Simulation/ISF/ISF_Core/ISF_Interfaces/ISF_Interfaces/IInputConverter.h index 13b2bc773567f8692365e8df191c37f39ed7599f..6c51d93c65fcd10eca5e96c336ec2b13c258a8b9 100644 --- a/Simulation/ISF/ISF_Core/ISF_Interfaces/ISF_Interfaces/IInputConverter.h +++ b/Simulation/ISF/ISF_Core/ISF_Interfaces/ISF_Interfaces/IInputConverter.h @@ -25,9 +25,7 @@ // forward declarations class McEventCollection; class G4Event; -namespace HepMC { - class GenEvent; -} +#include "AtlasHepMC/GenEvent_fwd.h" namespace ISF { diff --git a/Simulation/ISF/ISF_Core/ISF_Services/CMakeLists.txt b/Simulation/ISF/ISF_Core/ISF_Services/CMakeLists.txt index 5ca1e587b7124384cb8476812b1381337eafc2a7..8dc7cb1a101258b7236b9ff98634a32e2f22f0b2 100644 --- a/Simulation/ISF/ISF_Core/ISF_Services/CMakeLists.txt +++ b/Simulation/ISF/ISF_Core/ISF_Services/CMakeLists.txt @@ -15,6 +15,7 @@ atlas_depends_on_subdirs( PUBLIC Control/AthenaBaseComps Control/StoreGate DetectorDescription/AtlasDetDescr + Generators/AtlasHepMC Generators/GeneratorObjects Generators/TruthUtils InnerDetector/InDetSimEvent @@ -35,7 +36,6 @@ atlas_depends_on_subdirs( PUBLIC find_package( CLHEP ) find_package( Eigen ) find_package( Geant4 ) -find_package( HepMC ) find_package( HepPDT ) find_package( GTest ) find_package( GMock ) @@ -48,7 +48,7 @@ atlas_add_component( ISF_Services src/*.cxx src/components/*.cxx INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} ${GEANT4_INCLUDE_DIRS} ${HEPMC_INCLUDE_DIRS} ${CLHEP_INCLUDE_DIRS} ${HEPPDT_INCLUDE_DIRS} - LINK_LIBRARIES ${ROOT_LIBRARIES} ${GEANT4_LIBRARIES} ${HEPMC_LIBRARIES} ${CLHEP_LIBRARIES} ${HEPPDT_LIBRARIES} GaudiKernel CaloIdentifier CaloSimEvent AthenaBaseComps StoreGateLib SGtests AtlasDetDescr GeneratorObjects InDetSimEvent MuonSimEvent G4AtlasInterfaces MCTruth SimHelpers ISF_Event ISF_Interfaces TileSimEvent PmbCxxUtils TruthUtils ) + LINK_LIBRARIES ${ROOT_LIBRARIES} ${GEANT4_LIBRARIES} AtlasHepMCLib ${CLHEP_LIBRARIES} ${HEPPDT_LIBRARIES} GaudiKernel CaloIdentifier CaloSimEvent AthenaBaseComps StoreGateLib SGtests AtlasDetDescr GeneratorObjects InDetSimEvent MuonSimEvent G4AtlasInterfaces MCTruth SimHelpers ISF_Event ISF_Interfaces TileSimEvent PmbCxxUtils TruthUtils ) # Tests in the package: atlas_add_test( InputConverter_test diff --git a/Simulation/ISF/ISF_Core/ISF_Services/src/InputConverter.cxx b/Simulation/ISF/ISF_Core/ISF_Services/src/InputConverter.cxx index 9005d9b755b76ab13fe00fda4976ffb470b87227..8217d0932ed3d16e543a6ef71bb16e9193ab142a 100644 --- a/Simulation/ISF/ISF_Core/ISF_Services/src/InputConverter.cxx +++ b/Simulation/ISF/ISF_Core/ISF_Services/src/InputConverter.cxx @@ -40,8 +40,9 @@ #include "G4LorentzVector.hh" #include "G4TransportationManager.hh" // HepMC includes -#include "HepMC/GenParticle.h" -#include "HepMC/GenEvent.h" +#include "AtlasHepMC/GenParticle.h" +#include "AtlasHepMC/GenEvent.h" +#include "AtlasHepMC/GenVertex.h" // CLHEP includes #include "CLHEP/Geometry/Point3D.h" #include "CLHEP/Geometry/Vector3D.h" diff --git a/Simulation/ISF/ISF_Core/ISF_Services/src/InputConverter.h b/Simulation/ISF/ISF_Core/ISF_Services/src/InputConverter.h index 5f57a516d138d60e4339e6a4876183a992eaca32..707ad17f0a4b48ae711d6b3f083165cf8ce79d02 100644 --- a/Simulation/ISF/ISF_Core/ISF_Services/src/InputConverter.h +++ b/Simulation/ISF/ISF_Core/ISF_Services/src/InputConverter.h @@ -27,10 +27,9 @@ namespace Barcode { namespace HepPDT { class ParticleDataTable; } -namespace HepMC { - class GenParticle; - class GenEvent; -} +#include "AtlasHepMC/GenEvent_fwd.h" +#include "AtlasHepMC/GenParticle_fwd.h" + class IPartPropSvc; class McEventCollection; namespace ISFTesting { diff --git a/Simulation/ISF/ISF_Core/ISF_Services/src/TruthSvc.cxx b/Simulation/ISF/ISF_Core/ISF_Services/src/TruthSvc.cxx index 13c532fcd0f60614a4fa7d1f015c9345a85ccadf..4814b4633525a4a87ccc2454f22a5a6aeb1122c9 100644 --- a/Simulation/ISF/ISF_Core/ISF_Services/src/TruthSvc.cxx +++ b/Simulation/ISF/ISF_Core/ISF_Services/src/TruthSvc.cxx @@ -21,10 +21,10 @@ // #include "TruthUtils/HepMCHelpers.h" // for MC::findChildren(...) // HepMC includes -#include "HepMC/SimpleVector.h" -#include "HepMC/GenParticle.h" -#include "HepMC/GenEvent.h" -#include "HepMC/GenVertex.h" +#include "AtlasHepMC/SimpleVector.h" +#include "AtlasHepMC/GenParticle.h" +#include "AtlasHepMC/GenEvent.h" +#include "AtlasHepMC/GenVertex.h" // CLHEP includes #include "CLHEP/Geometry/Point3D.h" diff --git a/Simulation/ISF/ISF_Core/ISF_Services/src/TruthSvc.h b/Simulation/ISF/ISF_Core/ISF_Services/src/TruthSvc.h index e02cd816cd1a515b3f629af2c9d27cb8ce04c1fe..601b9a85adfc1c75131b3f912948413fc58f391f 100644 --- a/Simulation/ISF/ISF_Core/ISF_Services/src/TruthSvc.h +++ b/Simulation/ISF/ISF_Core/ISF_Services/src/TruthSvc.h @@ -36,9 +36,8 @@ namespace Barcode { class IBarcodeSvc; } -namespace HepMC { - class GenEvent; -} +#include "AtlasHepMC/GenEvent_fwd.h" +#include "AtlasHepMC/GenVertex.h" namespace ISFTesting { class TruthSvc_test; diff --git a/Simulation/ISF/ISF_Core/ISF_Services/test/InputConverter_test.cxx b/Simulation/ISF/ISF_Core/ISF_Services/test/InputConverter_test.cxx index 8c6da50b4e8233bb56f7dd2a6965eaee84c52e1d..b65683411bbb6823f1572d769f294f3a022b2e44 100644 --- a/Simulation/ISF/ISF_Core/ISF_Services/test/InputConverter_test.cxx +++ b/Simulation/ISF/ISF_Core/ISF_Services/test/InputConverter_test.cxx @@ -37,8 +37,8 @@ #include "GeoPrimitives/GeoPrimitives.h" // HepMC -#include "HepMC/GenParticle.h" -#include "HepMC/GenVertex.h" +#include "AtlasHepMC/GenParticle.h" +#include "AtlasHepMC/GenVertex.h" #include "GeneratorObjects/HepMcParticleLink.h" #include "GeneratorObjects/McEventCollection.h" diff --git a/Simulation/ISF/ISF_Core/ISF_Services/test/TruthSvc_test.cxx b/Simulation/ISF/ISF_Core/ISF_Services/test/TruthSvc_test.cxx index c83c6fcff88424978ab93ac5915816a832000479..86c7c58867d3df80a6916cbe915b49b3056e5214 100644 --- a/Simulation/ISF/ISF_Core/ISF_Services/test/TruthSvc_test.cxx +++ b/Simulation/ISF/ISF_Core/ISF_Services/test/TruthSvc_test.cxx @@ -41,9 +41,9 @@ #include "CLHEP/Units/SystemOfUnits.h" // HepMC -#include "HepMC/GenParticle.h" -#include "HepMC/GenVertex.h" -#include "HepMC/GenEvent.h" +#include "AtlasHepMC/GenParticle.h" +#include "AtlasHepMC/GenVertex.h" +#include "AtlasHepMC/GenEvent.h" // STL includes #include <cstdlib> // quick_exit diff --git a/Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimParametrization/CMakeLists.txt b/Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimParametrization/CMakeLists.txt index 565408ea49b225f79df04ff0c8f2b8f17d1be3cc..39a45f51d69a7fb7872e59520e3dc0083c846d05 100644 --- a/Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimParametrization/CMakeLists.txt +++ b/Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimParametrization/CMakeLists.txt @@ -32,6 +32,7 @@ atlas_depends_on_subdirs( PUBLIC DetectorDescription/GeoModel/GeoModelInterfaces Event/EventInfo Event/NavFourMom + Generators/AtlasHepMC Generators/GeneratorObjects LArCalorimeter/LArSimEvent Simulation/ISF/ISF_Core/ISF_Event @@ -46,7 +47,6 @@ atlas_depends_on_subdirs( PUBLIC # External dependencies: find_package( CLHEP ) find_package( Geant4 ) -find_package( HepMC ) find_package( HepPDT ) find_package( ROOT COMPONENTS TreePlayer Cint Core Tree MathCore Hist RIO pthread MathMore Minuit Minuit2 Matrix Physics HistPainter Rint TMVA Graf Graf3d Gpad Html Postscript Gui GX11TTF GX11 ) find_package( XercesC ) @@ -72,14 +72,14 @@ atlas_add_library( ISF_FastCaloSimParametrizationLib INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} ${HEPPDT_INCLUDE_DIRS} ${HEPMC_INCLUDE_DIRS} PRIVATE_INCLUDE_DIRS ${XERCESC_INCLUDE_DIRS} ${CLHEP_INCLUDE_DIRS} ${GEANT4_INCLUDE_DIRS} PRIVATE_DEFINITIONS ${CLHEP_DEFINITIONS} - LINK_LIBRARIES ${ROOT_LIBRARIES} ${HEPPDT_LIBRARIES} ${HEPMC_LIBRARIES} CaloGeoHelpers AthenaBaseComps AthenaKernel Identifier GaudiKernel ISF_Interfaces TrkEventPrimitives TrkParameters TrkExInterfaces CaloDetDescrLib StoreGateLib SGtests TileConditionsLib + LINK_LIBRARIES ${ROOT_LIBRARIES} ${HEPPDT_LIBRARIES} AtlasHepMCLib CaloGeoHelpers AthenaBaseComps AthenaKernel Identifier GaudiKernel ISF_Interfaces TrkEventPrimitives TrkParameters TrkExInterfaces CaloDetDescrLib StoreGateLib SGtests TileConditionsLib PRIVATE_LINK_LIBRARIES ${XERCESC_LIBRARIES} ${CLHEP_LIBRARIES} ${GEANT4_LIBRARIES} CaloEvent CaloIdentifier AthenaPoolUtilities GeoAdaptors EventInfo NavFourMom GeneratorObjects LArSimEvent ISF_Event ISF_FastCaloSimEvent ISF_FastCaloSimInterfaces TileDetDescr TileSimEvent TrkGeometry TrkSurfaces TrkMaterialOnTrack ) atlas_add_component( ISF_FastCaloSimParametrization src/*.cxx src/components/*.cxx INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} ${HEPPDT_INCLUDE_DIRS} ${XERCESC_INCLUDE_DIRS} ${CLHEP_INCLUDE_DIRS} ${HEPMC_INCLUDE_DIRS} ${GEANT4_INCLUDE_DIRS} - LINK_LIBRARIES ${ROOT_LIBRARIES} ${HEPPDT_LIBRARIES} ${XERCESC_LIBRARIES} ${CLHEP_LIBRARIES} ${HEPMC_LIBRARIES} ${GEANT4_LIBRARIES} CaloDetDescrLib CaloGeoHelpers AthenaBaseComps AthenaKernel StoreGateLib SGtests Identifier GaudiKernel ISF_Interfaces TrkEventPrimitives TrkParameters TrkExInterfaces CaloEvent CaloIdentifier AthenaPoolUtilities GeoAdaptors EventInfo NavFourMom GeneratorObjects LArSimEvent ISF_Event ISF_FastCaloSimEvent ISF_FastCaloSimInterfaces TileConditionsLib TileDetDescr TileSimEvent TrkGeometry TrkSurfaces TrkMaterialOnTrack ISF_FastCaloSimParametrizationLib ) + LINK_LIBRARIES ${ROOT_LIBRARIES} ${HEPPDT_LIBRARIES} ${XERCESC_LIBRARIES} ${CLHEP_LIBRARIES} AtlasHepMCLib ${GEANT4_LIBRARIES} CaloDetDescrLib CaloGeoHelpers AthenaBaseComps AthenaKernel StoreGateLib SGtests Identifier GaudiKernel ISF_Interfaces TrkEventPrimitives TrkParameters TrkExInterfaces CaloEvent CaloIdentifier AthenaPoolUtilities GeoAdaptors EventInfo NavFourMom GeneratorObjects LArSimEvent ISF_Event ISF_FastCaloSimEvent ISF_FastCaloSimInterfaces TileConditionsLib TileDetDescr TileSimEvent TrkGeometry TrkSurfaces TrkMaterialOnTrack ISF_FastCaloSimParametrizationLib ) # Install files from the package: atlas_install_python_modules( python/*.py ) diff --git a/Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimParametrization/ISF_FastCaloSimParametrization/FastCaloSimParamAlg.h b/Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimParametrization/ISF_FastCaloSimParametrization/FastCaloSimParamAlg.h index d2f40379c4400aa91ceaa0ac88037ec400bdedf1..e18e9784e2fc76b6746b254100f1883a2ed31ef9 100755 --- a/Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimParametrization/ISF_FastCaloSimParametrization/FastCaloSimParamAlg.h +++ b/Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimParametrization/ISF_FastCaloSimParametrization/FastCaloSimParamAlg.h @@ -29,9 +29,7 @@ namespace ISF_FCS_Parametrization { class FCS_StepInfo; typedef std::list<FCS_StepInfo*> FCS_StepInfoList; } -namespace HepMC { - class GenParticle; -} +#include "AtlasHepMC/GenParticle_fwd.h" /** * diff --git a/Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimParametrization/ISF_FastCaloSimParametrization/ISF_HitAnalysis.h b/Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimParametrization/ISF_FastCaloSimParametrization/ISF_HitAnalysis.h index cf4b5cc5812d3dd04646f867761099fe2654c248..0a385f0be1114ece9e06fe106dc59e5307dcfaab 100755 --- a/Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimParametrization/ISF_FastCaloSimParametrization/ISF_HitAnalysis.h +++ b/Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimParametrization/ISF_FastCaloSimParametrization/ISF_HitAnalysis.h @@ -19,7 +19,7 @@ //##################################### #include "CaloDetDescr/ICaloCoordinateTool.h" #include "ISF_FastCaloSimParametrization/FSmap.h" -#include "HepMC/GenParticle.h" +#include "AtlasHepMC/GenParticle.h" #include "HepPDT/ParticleData.hh" #include "GaudiKernel/IPartPropSvc.h" #include "TrkParameters/TrackParameters.h" diff --git a/Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimParametrization/ISF_FastCaloSimParametrization/NativeFastCaloSimSvc.h b/Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimParametrization/ISF_FastCaloSimParametrization/NativeFastCaloSimSvc.h index 814030cbda7a6d76738cfa5c8fbafcd70acdef26..c13b34d385a61ead67005ddcc5d5900fc27dfa4b 100644 --- a/Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimParametrization/ISF_FastCaloSimParametrization/NativeFastCaloSimSvc.h +++ b/Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimParametrization/ISF_FastCaloSimParametrization/NativeFastCaloSimSvc.h @@ -30,9 +30,7 @@ class ITrackingGeometrySvc; class CaloCellContainer; -namespace HepMC { - class GenEvent; -} +#include "AtlasHepMC/GenEvent_fwd.h" namespace Trk { class TrackingVolume; diff --git a/Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimServices/CMakeLists.txt b/Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimServices/CMakeLists.txt index bb92012a76cd45658fb32c4e1e15a94c485ff143..901fe1c71889201fba6ae56fb88a96eaf255db42 100644 --- a/Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimServices/CMakeLists.txt +++ b/Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimServices/CMakeLists.txt @@ -21,6 +21,7 @@ atlas_depends_on_subdirs( PUBLIC Calorimeter/CaloDetDescr Control/StoreGate Event/NavFourMom + Generators/AtlasHepMC Generators/GeneratorObjects Simulation/FastShower/FastCaloSim Simulation/ISF/ISF_Core/ISF_Event @@ -33,7 +34,6 @@ atlas_depends_on_subdirs( PUBLIC # External dependencies: find_package( CLHEP ) -find_package( HepMC ) find_package(lwtnn) # Component(s) in the package: @@ -41,7 +41,7 @@ atlas_add_component( ISF_FastCaloSimServices src/*.cxx src/components/*.cxx INCLUDE_DIRS ${CLHEP_INCLUDE_DIRS} ${HEPMC_INCLUDE_DIRS} ${LWTNN_INCLUDE_DIRS} - LINK_LIBRARIES ${CLHEP_LIBRARIES} ${HEPMC_LIBRARIES} ${LWTNN_LIBRARIES} AthenaBaseComps AthenaKernel GaudiKernel IdDictParser ISF_Interfaces TrkEventPrimitives TrkExInterfaces CaloEvent StoreGateLib SGtests NavFourMom GeneratorObjects FastCaloSimLib ISF_Event ISF_FastCaloSimEvent ISF_FastCaloSimInterfaces ISF_FastCaloSimParametrizationLib PathResolver) + LINK_LIBRARIES ${CLHEP_LIBRARIES} AtlasHepMCLib ${LWTNN_LIBRARIES} AthenaBaseComps AthenaKernel GaudiKernel IdDictParser ISF_Interfaces TrkEventPrimitives TrkExInterfaces CaloEvent StoreGateLib SGtests NavFourMom GeneratorObjects FastCaloSimLib ISF_Event ISF_FastCaloSimEvent ISF_FastCaloSimInterfaces ISF_FastCaloSimParametrizationLib PathResolver) # Install files from the package: atlas_install_python_modules( python/*.py ) diff --git a/Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimServices/src/FastCaloSimSvcPU.cxx b/Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimServices/src/FastCaloSimSvcPU.cxx index 30f7301c78f1b87305ce383971efa4bfc3c203a9..0b74cb04c5a9b171caa7f91466f1f1252ceeff12 100644 --- a/Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimServices/src/FastCaloSimSvcPU.cxx +++ b/Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimServices/src/FastCaloSimSvcPU.cxx @@ -14,9 +14,9 @@ #include "ISF_Event/ISFParticleContainer.h" // HepMC include needed for FastCaloSim -#include "HepMC/GenParticle.h" -#include "HepMC/GenVertex.h" -#include "HepMC/SimpleVector.h" +#include "AtlasHepMC/GenParticle.h" +#include "AtlasHepMC/GenVertex.h" +#include "AtlasHepMC/SimpleVector.h" #include "CLHEP/Units/SystemOfUnits.h" diff --git a/Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimServices/src/FastCaloSimSvcPU.h b/Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimServices/src/FastCaloSimSvcPU.h index 4daad381356331bb39163e622295e34bb6651511..105652ed6a25c012a440b8b28cf236d9f711c14a 100644 --- a/Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimServices/src/FastCaloSimSvcPU.h +++ b/Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimServices/src/FastCaloSimSvcPU.h @@ -32,10 +32,7 @@ class ITrackingGeometrySvc; class CaloCellContainer; -namespace HepMC -{ - class GenEvent; -} +#include "AtlasHepMC/GenEvent_fwd.h" namespace Trk { diff --git a/Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimServices/src/FastCaloTool.cxx b/Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimServices/src/FastCaloTool.cxx index cf5cb2f0513b35c3c2971f0dfda1c69320fb96a8..5dbcfedbc5d8576ea9f5483e258d9a62991f4e71 100644 --- a/Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimServices/src/FastCaloTool.cxx +++ b/Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimServices/src/FastCaloTool.cxx @@ -7,9 +7,9 @@ #include "FastCaloTool.h" // HepMC include needed for FastCaloSim -#include "HepMC/GenParticle.h" -#include "HepMC/GenVertex.h" -#include "HepMC/SimpleVector.h" +#include "AtlasHepMC/GenParticle.h" +#include "AtlasHepMC/GenVertex.h" +#include "AtlasHepMC/SimpleVector.h" #include "CLHEP/Units/SystemOfUnits.h" // ISF includes diff --git a/Simulation/ISF/ISF_FastCaloSim/ISF_PunchThroughTools/CMakeLists.txt b/Simulation/ISF/ISF_FastCaloSim/ISF_PunchThroughTools/CMakeLists.txt index c0945dcdcdd53790114fc6d8f1f816cc4d250e77..0686e08b1af3c5c576f72e0b05eff513c78606a5 100644 --- a/Simulation/ISF/ISF_FastCaloSim/ISF_PunchThroughTools/CMakeLists.txt +++ b/Simulation/ISF/ISF_FastCaloSim/ISF_PunchThroughTools/CMakeLists.txt @@ -17,6 +17,7 @@ atlas_depends_on_subdirs( PUBLIC AtlasGeometryCommon/SubDetectorEnvelopes Control/AthContainers GaudiKernel + Generators/AtlasHepMC Simulation/ISF/ISF_Core/ISF_Event Simulation/ISF/ISF_Core/ISF_Interfaces Tools/PathResolver ) @@ -24,7 +25,6 @@ atlas_depends_on_subdirs( PUBLIC # External dependencies: find_package( CLHEP ) find_package( Eigen ) -find_package( HepMC ) find_package( HepPDT ) find_package( ROOT COMPONENTS Core Tree MathCore Hist RIO pthread ) @@ -33,7 +33,7 @@ atlas_add_component( ISF_PunchThroughTools src/*.cxx src/components/*.cxx INCLUDE_DIRS ${HEPPDT_INCLUDE_DIRS} ${ROOT_INCLUDE_DIRS} ${CLHEP_INCLUDE_DIRS} ${HEPMC_INCLUDE_DIRS} ${EIGEN_INCLUDE_DIRS} - LINK_LIBRARIES ${HEPPDT_LIBRARIES} ${ROOT_LIBRARIES} ${CLHEP_LIBRARIES} ${HEPMC_LIBRARIES} ${EIGEN_LIBRARIES} AthenaBaseComps AthenaKernel GeoPrimitives ISF_FastCaloSimInterfaces AthContainers GaudiKernel ISF_Event ISF_Interfaces PathResolver ) + LINK_LIBRARIES ${HEPPDT_LIBRARIES} ${ROOT_LIBRARIES} ${CLHEP_LIBRARIES} AtlasHepMCLib ${EIGEN_LIBRARIES} AthenaBaseComps AthenaKernel GeoPrimitives ISF_FastCaloSimInterfaces AthContainers GaudiKernel ISF_Event ISF_Interfaces PathResolver ) # Install files from the package: atlas_install_runtime( Data/*.root ) diff --git a/Simulation/ISF/ISF_FastCaloSim/ISF_PunchThroughTools/src/PunchThroughTool.cxx b/Simulation/ISF/ISF_FastCaloSim/ISF_PunchThroughTools/src/PunchThroughTool.cxx index 0d27eba27f926e4b1ea8b2efd9e7a571e5df5586..36bf78563c3fc063f1e2bab8a483715e84524d33 100644 --- a/Simulation/ISF/ISF_FastCaloSim/ISF_PunchThroughTools/src/PunchThroughTool.cxx +++ b/Simulation/ISF/ISF_FastCaloSim/ISF_PunchThroughTools/src/PunchThroughTool.cxx @@ -26,10 +26,10 @@ #include "GaudiKernel/IPartPropSvc.h" // HepMC -#include "HepMC/SimpleVector.h" -#include "HepMC/GenVertex.h" -#include "HepMC/GenParticle.h" -#include "HepMC/GenEvent.h" +#include "AtlasHepMC/SimpleVector.h" +#include "AtlasHepMC/GenVertex.h" +#include "AtlasHepMC/GenParticle.h" +#include "AtlasHepMC/GenEvent.h" #include "HepPDT/ParticleDataTable.hh" // CLHEP diff --git a/Simulation/ISF/ISF_FastCaloSim/ISF_PunchThroughTools/src/PunchThroughTool.h b/Simulation/ISF/ISF_FastCaloSim/ISF_PunchThroughTools/src/PunchThroughTool.h index 588bd44ffac9a7bd2b995dc6e68ec2f83828bd0b..c11fdc538c756538741b9b07309ea447a759a5fc 100644 --- a/Simulation/ISF/ISF_FastCaloSim/ISF_PunchThroughTools/src/PunchThroughTool.h +++ b/Simulation/ISF/ISF_FastCaloSim/ISF_PunchThroughTools/src/PunchThroughTool.h @@ -32,9 +32,7 @@ namespace HepPDT { class ParticleDataTable; } -namespace HepMC { - class GenEvent; -} +#include "AtlasHepMC/GenEvent_fwd.h" namespace Barcode { class IBarcodeSvc; diff --git a/Simulation/ISF/ISF_Fatras/ISF_FatrasRecoTools/CMakeLists.txt b/Simulation/ISF/ISF_Fatras/ISF_FatrasRecoTools/CMakeLists.txt index d5a46436499d69f9c2f85be2755a09aae6ff1fe0..f054c56b0602b74dea658781750c5e3004e64b5f 100644 --- a/Simulation/ISF/ISF_Fatras/ISF_FatrasRecoTools/CMakeLists.txt +++ b/Simulation/ISF/ISF_Fatras/ISF_FatrasRecoTools/CMakeLists.txt @@ -20,6 +20,7 @@ atlas_depends_on_subdirs( PUBLIC PRIVATE DetectorDescription/AtlasDetDescr Event/EventPrimitives + Generators/AtlasHepMC GaudiKernel InnerDetector/InDetDetDescr/InDetIdentifier InnerDetector/InDetRecEvent/InDetPrepRawData @@ -35,7 +36,6 @@ atlas_depends_on_subdirs( PUBLIC # External dependencies: find_package( Eigen ) -find_package( HepMC ) find_package( ROOT COMPONENTS Core Tree MathCore Hist RIO pthread ) # Component(s) in the package: @@ -43,7 +43,7 @@ atlas_add_component( ISF_FatrasRecoTools src/*.cxx src/components/*.cxx INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} ${EIGEN_INCLUDE_DIRS} ${HEPMC_INCLUDE_DIRS} - LINK_LIBRARIES ${ROOT_LIBRARIES} ${EIGEN_LIBRARIES} ${HEPMC_LIBRARIES} AthenaBaseComps GeoPrimitives Identifier ISF_FatrasEvent TrkEventPrimitives TrkParameters TrkSpacePoint TrkTrackSummary TrkToolInterfaces AtlasDetDescr EventPrimitives GaudiKernel InDetIdentifier InDetPrepRawData SiSpacePoint ISF_FatrasDetDescrModel TrkDetElementBase TrkCompetingRIOsOnTrack TrkEventUtils TrkPrepRawData TrkRIO_OnTrack TrkTrack TrkTruthData ) + LINK_LIBRARIES ${ROOT_LIBRARIES} ${EIGEN_LIBRARIES} AtlasHepMCLib AthenaBaseComps GeoPrimitives Identifier ISF_FatrasEvent TrkEventPrimitives TrkParameters TrkSpacePoint TrkTrackSummary TrkToolInterfaces AtlasDetDescr EventPrimitives GaudiKernel InDetIdentifier InDetPrepRawData SiSpacePoint ISF_FatrasDetDescrModel TrkDetElementBase TrkCompetingRIOsOnTrack TrkEventUtils TrkPrepRawData TrkRIO_OnTrack TrkTrack TrkTruthData ) # Install files from the package: atlas_install_headers( ISF_FatrasRecoTools ) diff --git a/Simulation/ISF/ISF_Fatras/ISF_FatrasRecoTools/ISF_FatrasRecoTools/PRD_PlanarTruthTrajectoryBuilder.h b/Simulation/ISF/ISF_Fatras/ISF_FatrasRecoTools/ISF_FatrasRecoTools/PRD_PlanarTruthTrajectoryBuilder.h index e8446ed274db22945a1eedec452861e89202d0a4..274be6f77222800a8ac8a27289213f62ff896b8a 100644 --- a/Simulation/ISF/ISF_Fatras/ISF_FatrasRecoTools/ISF_FatrasRecoTools/PRD_PlanarTruthTrajectoryBuilder.h +++ b/Simulation/ISF/ISF_Fatras/ISF_FatrasRecoTools/ISF_FatrasRecoTools/PRD_PlanarTruthTrajectoryBuilder.h @@ -19,9 +19,7 @@ class AtlasDetectorID; class PRD_MultiTruthCollection; -namespace HepMC { - class GenParticle; -} +#include "AtlasHepMC/GenParticle_fwd.h" namespace Trk { class IPRD_Provider; diff --git a/Simulation/ISF/ISF_Fatras/ISF_FatrasRecoTools/src/PRD_PlanarTruthTrajectoryBuilder.cxx b/Simulation/ISF/ISF_Fatras/ISF_FatrasRecoTools/src/PRD_PlanarTruthTrajectoryBuilder.cxx index 3357a158a01d6a399eff7c744054dd4a9be5ca00..0e31e6c0261fcda6ed5b53c0f54c6b1e80cf691d 100644 --- a/Simulation/ISF/ISF_Fatras/ISF_FatrasRecoTools/src/PRD_PlanarTruthTrajectoryBuilder.cxx +++ b/Simulation/ISF/ISF_Fatras/ISF_FatrasRecoTools/src/PRD_PlanarTruthTrajectoryBuilder.cxx @@ -19,8 +19,8 @@ #include "AtlasDetDescr/AtlasDetectorID.h" // HepMC -#include "HepMC/GenParticle.h" -#include "HepMC/GenVertex.h" +#include "AtlasHepMC/GenParticle.h" +#include "AtlasHepMC/GenVertex.h" /** Constructor **/ iFatras::PRD_PlanarTruthTrajectoryBuilder::PRD_PlanarTruthTrajectoryBuilder(const std::string& t, const std::string& n, const IInterface* p) : diff --git a/Simulation/ISF/ISF_Fatras/ISF_FatrasToolsG4/CMakeLists.txt b/Simulation/ISF/ISF_Fatras/ISF_FatrasToolsG4/CMakeLists.txt index 2dfae7ef630ba21394dccb20982c8a2f5b56a22e..88917c813ef851485b3e34325537bd1903963a12 100644 --- a/Simulation/ISF/ISF_Fatras/ISF_FatrasToolsG4/CMakeLists.txt +++ b/Simulation/ISF/ISF_Fatras/ISF_FatrasToolsG4/CMakeLists.txt @@ -14,6 +14,7 @@ atlas_depends_on_subdirs( PUBLIC Simulation/ISF/ISF_Fatras/ISF_FatrasInterfaces Tracking/TrkEvent/TrkEventPrimitives PRIVATE + Generators/AtlasHepMC Control/StoreGate Simulation/Barcode/BarcodeEvent Simulation/G4Atlas/G4AtlasAlg @@ -25,7 +26,6 @@ atlas_depends_on_subdirs( PUBLIC find_package( Boost COMPONENTS filesystem thread system ) find_package( CLHEP ) find_package( Geant4 ) -find_package( HepMC ) find_package( ROOT COMPONENTS Core Tree MathCore Hist RIO pthread ) find_package( XercesC ) @@ -34,7 +34,7 @@ atlas_add_component( ISF_FatrasToolsG4 src/*.cxx src/components/*.cxx INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS} ${XERCESC_INCLUDE_DIRS} ${CLHEP_INCLUDE_DIRS} ${HEPMC_INCLUDE_DIRS} ${GEANT4_INCLUDE_DIRS} - LINK_LIBRARIES ${ROOT_LIBRARIES} ${Boost_LIBRARIES} ${XERCESC_LIBRARIES} ${CLHEP_LIBRARIES} ${HEPMC_LIBRARIES} ${GEANT4_LIBRARIES} AthenaBaseComps AthenaKernel GaudiKernel ISF_Event ISF_FatrasInterfaces TrkEventPrimitives StoreGateLib SGtests ISF_Interfaces TrkGeometry ) + LINK_LIBRARIES ${ROOT_LIBRARIES} ${Boost_LIBRARIES} ${XERCESC_LIBRARIES} ${CLHEP_LIBRARIES} AtlasHepMCLib ${GEANT4_LIBRARIES} AthenaBaseComps AthenaKernel GaudiKernel ISF_Event ISF_FatrasInterfaces TrkEventPrimitives StoreGateLib SGtests ISF_Interfaces TrkGeometry ) # Install files from the package: atlas_install_headers( ISF_FatrasToolsG4 ) diff --git a/Simulation/ISF/ISF_Fatras/ISF_FatrasToolsG4/src/G4HadIntProcessor.cxx b/Simulation/ISF/ISF_Fatras/ISF_FatrasToolsG4/src/G4HadIntProcessor.cxx index ab7c634f6c84a2d44b3d856253211f90517815fb..e09915300336d36009fe4280847ac394a0784792 100644 --- a/Simulation/ISF/ISF_Fatras/ISF_FatrasToolsG4/src/G4HadIntProcessor.cxx +++ b/Simulation/ISF/ISF_Fatras/ISF_FatrasToolsG4/src/G4HadIntProcessor.cxx @@ -58,8 +58,8 @@ // CLHEP #include "CLHEP/Units/SystemOfUnits.h" -#include "HepMC/GenParticle.h" -#include "HepMC/GenVertex.h" +#include "AtlasHepMC/GenParticle.h" +#include "AtlasHepMC/GenVertex.h" #include "CLHEP/Random/RandExponential.h" #include "CLHEP/Random/RandFlat.h" diff --git a/Simulation/ISF/ISF_Fatras/ISF_FatrasToolsG4/src/G4ParticleDecayHelper.cxx b/Simulation/ISF/ISF_Fatras/ISF_FatrasToolsG4/src/G4ParticleDecayHelper.cxx index 7dfd4f8a9abb165939b8d9643fdd26116c4a138c..8630851e1a0df18f516c30e72f5b916ef95f243d 100644 --- a/Simulation/ISF/ISF_Fatras/ISF_FatrasToolsG4/src/G4ParticleDecayHelper.cxx +++ b/Simulation/ISF/ISF_Fatras/ISF_FatrasToolsG4/src/G4ParticleDecayHelper.cxx @@ -24,7 +24,7 @@ // CLHEP #include "CLHEP/Units/SystemOfUnits.h" #include "CLHEP/Units/PhysicalConstants.h" -#include "HepMC/GenParticle.h" +#include "AtlasHepMC/GenParticle.h" #include "CLHEP/Vector/LorentzVector.h" #include "CLHEP/Random/RandFlat.h" // G4 diff --git a/Simulation/ISF/ISF_Geant4/ISF_Geant4Event/CMakeLists.txt b/Simulation/ISF/ISF_Geant4/ISF_Geant4Event/CMakeLists.txt index 076dc0200259590d96ca84ad19ddc0bb07c4a0dc..2d4f2045e7dac26ae457cb3f788d6ad33e69e7a0 100644 --- a/Simulation/ISF/ISF_Geant4/ISF_Geant4Event/CMakeLists.txt +++ b/Simulation/ISF/ISF_Geant4/ISF_Geant4Event/CMakeLists.txt @@ -13,6 +13,7 @@ atlas_depends_on_subdirs( PUBLIC Simulation/Barcode/BarcodeEvent Simulation/G4Sim/MCTruth PRIVATE + Generators/AtlasHepMC DetectorDescription/GeoPrimitives ) @@ -21,7 +22,6 @@ atlas_depends_on_subdirs( PUBLIC find_package( CLHEP ) find_package( Eigen ) find_package( Geant4 ) -find_package( HepMC ) find_package( ROOT COMPONENTS Core Tree MathCore Hist RIO pthread ) find_package( XercesC ) @@ -34,7 +34,7 @@ atlas_add_library( ISF_Geant4Event ${HEPMC_INCLUDE_DIRS} ${GEANT4_INCLUDE_DIRS} ${EIGEN_INCLUDE_DIRS} LINK_LIBRARIES ${ROOT_LIBRARIES} - ${XERCESC_LIBRARIES} ${CLHEP_LIBRARIES} ${HEPMC_LIBRARIES} + ${XERCESC_LIBRARIES} ${CLHEP_LIBRARIES} AtlasHepMCLib ${GEANT4_LIBRARIES} ${EIGEN_LIBRARIES} ISF_Event SimHelpers GeoPrimitives MCTruth) @@ -42,6 +42,6 @@ atlas_add_library( ISF_Geant4Event # INCLUDE_DIRS ${CLHEP_INCLUDE_DIRS} # ${HEPMC_INCLUDE_DIRS} ${EIGEN_INCLUDE_DIRS} # LINK_LIBRARIES -# ${CLHEP_LIBRARIES} ${HEPMC_LIBRARIES} +# ${CLHEP_LIBRARIES} AtlasHepMCLib # ${EIGEN_LIBRARIES} ISF_Event SimHelpers GeoPrimitives # BarcodeEvent MCTruth) diff --git a/Simulation/ISF/ISF_Geant4/ISF_Geant4Event/ISF_Geant4Event/Geant4TruthIncident.h b/Simulation/ISF/ISF_Geant4/ISF_Geant4Event/ISF_Geant4Event/Geant4TruthIncident.h index c055429bad87e51df4f056614f0a1a4386d1e85d..27693a6dfd2d714a8d5db07aef7ef3986198f906 100644 --- a/Simulation/ISF/ISF_Geant4/ISF_Geant4Event/ISF_Geant4Event/Geant4TruthIncident.h +++ b/Simulation/ISF/ISF_Geant4/ISF_Geant4Event/ISF_Geant4Event/Geant4TruthIncident.h @@ -12,7 +12,7 @@ #include "ISF_Event/ITruthIncident.h" // HepMC includes -#include "HepMC/SimpleVector.h" +#include "AtlasHepMC/SimpleVector.h" //Geant4 includes #include "G4ThreeVector.hh" diff --git a/Simulation/ISF/ISF_Geant4/ISF_Geant4Event/ISF_Geant4Event/ISFG4Helper.h b/Simulation/ISF/ISF_Geant4/ISF_Geant4Event/ISF_Geant4Event/ISFG4Helper.h index 1e83d369f91d9cfcdad70a5cf734a0065acb00f3..443734dee6a7c654edccd458c00b9affce5ec549 100644 --- a/Simulation/ISF/ISF_Geant4/ISF_Geant4Event/ISF_Geant4Event/ISFG4Helper.h +++ b/Simulation/ISF/ISF_Geant4/ISF_Geant4Event/ISF_Geant4Event/ISFG4Helper.h @@ -15,9 +15,7 @@ #include "MCTruth/VTrackInformation.h" // forward declarations -namespace HepMC { - class GenParticle; -} +#include "AtlasHepMC/GenParticle_fwd.h" namespace ISF { class TruthBinding; } diff --git a/Simulation/ISF/ISF_Geant4/ISF_Geant4Event/src/Geant4TruthIncident.cxx b/Simulation/ISF/ISF_Geant4/ISF_Geant4Event/src/Geant4TruthIncident.cxx index 1a28406ecf44eb53cac80f7c1343040ba35fb204..4e47e2f8ed461df92f7926c3a557c9d25ad14bb4 100644 --- a/Simulation/ISF/ISF_Geant4/ISF_Geant4Event/src/Geant4TruthIncident.cxx +++ b/Simulation/ISF/ISF_Geant4/ISF_Geant4Event/src/Geant4TruthIncident.cxx @@ -19,7 +19,7 @@ #include "GaudiKernel/PhysicalConstants.h" // HepMC includes -#include "HepMC/GenParticle.h" +#include "AtlasHepMC/GenParticle.h" // Geant4 includes #include "G4Step.hh" diff --git a/Simulation/ISF/ISF_Geant4/ISF_Geant4Tools/CMakeLists.txt b/Simulation/ISF/ISF_Geant4/ISF_Geant4Tools/CMakeLists.txt index baaa3a641811d346bf9b4fa6eda0988ecd56e87c..37851eb4673e905f428e77b851a110b105476378 100644 --- a/Simulation/ISF/ISF_Geant4/ISF_Geant4Tools/CMakeLists.txt +++ b/Simulation/ISF/ISF_Geant4/ISF_Geant4Tools/CMakeLists.txt @@ -14,6 +14,7 @@ atlas_depends_on_subdirs( PUBLIC Control/AthenaBaseComps Control/StoreGate DetectorDescription/AtlasDetDescr + Generators/AtlasHepMC Generators/GeneratorObjects Simulation/G4Atlas/G4AtlasTools Simulation/G4Atlas/G4AtlasAlg @@ -27,7 +28,6 @@ atlas_depends_on_subdirs( PUBLIC find_package( CLHEP ) find_package( Eigen ) find_package( Geant4 ) -find_package( HepMC ) find_package( ROOT COMPONENTS Core Tree MathCore Hist RIO pthread ) find_package( XercesC ) @@ -36,7 +36,7 @@ atlas_add_component( ISF_Geant4Tools src/*.cxx src/components/*.cxx INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} ${XERCESC_INCLUDE_DIRS} ${CLHEP_INCLUDE_DIRS} ${HEPMC_INCLUDE_DIRS} ${GEANT4_INCLUDE_DIRS} ${EIGEN_INCLUDE_DIRS} - LINK_LIBRARIES ${ROOT_LIBRARIES} ${XERCESC_LIBRARIES} ${CLHEP_LIBRARIES} ${HEPMC_LIBRARIES} ${GEANT4_LIBRARIES} ${EIGEN_LIBRARIES} AthenaKernel GaudiKernel G4AtlasInterfaces AthenaBaseComps StoreGateLib SGtests AtlasDetDescr GeneratorObjects G4AtlasToolsLib G4AtlasAlgLib MCTruth SimHelpers ISF_Event ISF_Interfaces ISF_Geant4Event ) + LINK_LIBRARIES ${ROOT_LIBRARIES} ${XERCESC_LIBRARIES} ${CLHEP_LIBRARIES} AtlasHepMCLib ${GEANT4_LIBRARIES} ${EIGEN_LIBRARIES} AthenaKernel GaudiKernel G4AtlasInterfaces AthenaBaseComps StoreGateLib SGtests AtlasDetDescr GeneratorObjects G4AtlasToolsLib G4AtlasAlgLib MCTruth SimHelpers ISF_Event ISF_Interfaces ISF_Geant4Event ) # Install files from the package: atlas_install_headers( ISF_Geant4Tools ) diff --git a/Simulation/ISF/ISF_Geant4/ISF_Geant4Tools/src/G4LegacyTransportTool.cxx b/Simulation/ISF/ISF_Geant4/ISF_Geant4Tools/src/G4LegacyTransportTool.cxx index e7d8dfea5391c4bcb5999efd572233f78f842aa1..115c294a99af60a475c2aa2d83148441cd2358d9 100644 --- a/Simulation/ISF/ISF_Geant4/ISF_Geant4Tools/src/G4LegacyTransportTool.cxx +++ b/Simulation/ISF/ISF_Geant4/ISF_Geant4Tools/src/G4LegacyTransportTool.cxx @@ -22,7 +22,7 @@ #include "MCTruth/EventInformation.h" // HepMC classes -#include "HepMC/GenParticle.h" +#include "AtlasHepMC/GenParticle.h" // Geant4 classes #include "G4LorentzVector.hh" diff --git a/Simulation/ISF/ISF_Geant4/ISF_Geant4Tools/src/G4LegacyTransportTool.h b/Simulation/ISF/ISF_Geant4/ISF_Geant4Tools/src/G4LegacyTransportTool.h index be97cb77cd7770b446c3cfdb6d0fd147091e16e4..bcd3769187bf53a477a92a6e9b156b895f01c859 100644 --- a/Simulation/ISF/ISF_Geant4/ISF_Geant4Tools/src/G4LegacyTransportTool.h +++ b/Simulation/ISF/ISF_Geant4/ISF_Geant4Tools/src/G4LegacyTransportTool.h @@ -41,9 +41,7 @@ namespace ISF { class ISFParticle; } -namespace HepMC { - class GenEvent; -} +#include "AtlasHepMC/GenEvent_fwd.h" namespace iGeant4 { diff --git a/Simulation/ISF/ISF_Geant4/ISF_Geant4Tools/src/ISFTrajectory.cxx b/Simulation/ISF/ISF_Geant4/ISF_Geant4Tools/src/ISFTrajectory.cxx index b1b0a9274765ae59e344093f91ddf84cbc1e6ecb..d54e83a981255ca9b33778acef77111e3c652b61 100644 --- a/Simulation/ISF/ISF_Geant4/ISF_Geant4Tools/src/ISFTrajectory.cxx +++ b/Simulation/ISF/ISF_Geant4/ISF_Geant4Tools/src/ISFTrajectory.cxx @@ -27,7 +27,7 @@ #include "MCTruth/TrackHelper.h" //HepMC includes -#include "HepMC/GenParticle.h" +#include "AtlasHepMC/GenParticle.h" #undef _ISFTRAJECTORY_DEBUG_ diff --git a/Simulation/ISF/ISF_Geant4/ISF_Geant4Tools/src/PhysicsValidationUserAction.cxx b/Simulation/ISF/ISF_Geant4/ISF_Geant4Tools/src/PhysicsValidationUserAction.cxx index bb533142dd3e1fa1927e9858a83e6c86c8b48ef1..76e11714b46fd92fe784d1a3df7a99b96b7ff2b6 100644 --- a/Simulation/ISF/ISF_Geant4/ISF_Geant4Tools/src/PhysicsValidationUserAction.cxx +++ b/Simulation/ISF/ISF_Geant4/ISF_Geant4Tools/src/PhysicsValidationUserAction.cxx @@ -35,7 +35,7 @@ #include "G4TransportationManager.hh" //External includes -#include "HepMC/GenVertex.h" +#include "AtlasHepMC/GenVertex.h" // ROOT includes #include "TTree.h" // STL includes diff --git a/Simulation/ISF/ISF_Geant4/ISF_Geant4Tools/src/TrackProcessorUserActionBase.h b/Simulation/ISF/ISF_Geant4/ISF_Geant4Tools/src/TrackProcessorUserActionBase.h index 0cebc55bfa637909495fcb3e0ae031329c9cf96c..c863ecf52383208cfa89c90ed48cc9645811129f 100644 --- a/Simulation/ISF/ISF_Geant4/ISF_Geant4Tools/src/TrackProcessorUserActionBase.h +++ b/Simulation/ISF/ISF_Geant4/ISF_Geant4Tools/src/TrackProcessorUserActionBase.h @@ -18,9 +18,7 @@ // forward declarations class EventInformation; -namespace HepMC { - class GenParticle; -} +#include "AtlasHepMC/GenParticle_fwd.h" namespace ISF { class ISFParticle; diff --git a/Simulation/ISF/ISF_Geant4/ISF_Geant4Tools/src/TrackProcessorUserActionPassBack.h b/Simulation/ISF/ISF_Geant4/ISF_Geant4Tools/src/TrackProcessorUserActionPassBack.h index df373ab813b3e5acf171e1d85b0f713dab894ba7..b54d7df05f46d60309fb3dd37e9653cb145aa947 100644 --- a/Simulation/ISF/ISF_Geant4/ISF_Geant4Tools/src/TrackProcessorUserActionPassBack.h +++ b/Simulation/ISF/ISF_Geant4/ISF_Geant4Tools/src/TrackProcessorUserActionPassBack.h @@ -25,9 +25,7 @@ namespace ISF { class ITruthBinding; } -namespace HepMC { - class GenParticle; -} +#include "AtlasHepMC/GenParticle_fwd.h" namespace G4UA{ diff --git a/Simulation/ISF/ISF_Geant4/ISF_Geant4Tools/src/TransportTool.cxx b/Simulation/ISF/ISF_Geant4/ISF_Geant4Tools/src/TransportTool.cxx index d359e2f624925f1c1169e58459bb184c55d49e75..2b490c979487677f864487cec3722dea6dca9924 100644 --- a/Simulation/ISF/ISF_Geant4/ISF_Geant4Tools/src/TransportTool.cxx +++ b/Simulation/ISF/ISF_Geant4/ISF_Geant4Tools/src/TransportTool.cxx @@ -26,7 +26,7 @@ #include "MCTruth/EventInformation.h" // HepMC classes -#include "HepMC/GenParticle.h" +#include "AtlasHepMC/GenParticle.h" // Geant4 classes #include "G4LorentzVector.hh" diff --git a/Simulation/ISF/ISF_Geant4/ISF_Geant4Tools/src/TransportTool.h b/Simulation/ISF/ISF_Geant4/ISF_Geant4Tools/src/TransportTool.h index 1f540153fa60c3448cf1b2f475c272158cd4b75e..2b07f93465dd4b69ff52e4ff8e9196e3cc3efd36 100644 --- a/Simulation/ISF/ISF_Geant4/ISF_Geant4Tools/src/TransportTool.h +++ b/Simulation/ISF/ISF_Geant4/ISF_Geant4Tools/src/TransportTool.h @@ -43,9 +43,7 @@ namespace ISF { class ISFParticle; } -namespace HepMC { - class GenEvent; -} +#include "AtlasHepMC/GenEvent_fwd.h" namespace iGeant4 { diff --git a/Simulation/ISF/ISF_Geant4/ISF_Geant4UserActions/src/FastCaloSimParamAction.h b/Simulation/ISF/ISF_Geant4/ISF_Geant4UserActions/src/FastCaloSimParamAction.h index 8a830b32a40dd293b10b288dcee0690d1a173ce0..99a867487294e510470b575de88d53b7ba769e38 100644 --- a/Simulation/ISF/ISF_Geant4/ISF_Geant4UserActions/src/FastCaloSimParamAction.h +++ b/Simulation/ISF/ISF_Geant4/ISF_Geant4UserActions/src/FastCaloSimParamAction.h @@ -26,9 +26,7 @@ namespace ISF_FCS_Parametrization { class FCS_StepInfoCollection; class FCS_StepInfo; } -namespace HepMC { - class GenParticle; -} +#include "AtlasHepMC/GenParticle_fwd.h" // forward declarations in global namespace class G4VSolid; class G4AffineTransform; diff --git a/Simulation/ISF/ISF_HepMC/ISF_HepMC_Interfaces/CMakeLists.txt b/Simulation/ISF/ISF_HepMC/ISF_HepMC_Interfaces/CMakeLists.txt index 135fc6731bb82fbeeaccd20e7081d39e5330f077..b0845f3d26a0ad9a8055fbf24a7af39f2398e002 100644 --- a/Simulation/ISF/ISF_HepMC/ISF_HepMC_Interfaces/CMakeLists.txt +++ b/Simulation/ISF/ISF_HepMC/ISF_HepMC_Interfaces/CMakeLists.txt @@ -8,6 +8,7 @@ atlas_subdir( ISF_HepMC_Interfaces ) # Declare the package's dependencies: atlas_depends_on_subdirs( PUBLIC GaudiKernel + Generators/AtlasHepMC Simulation/ISF/ISF_Core/ISF_Event ) # Install files from the package: diff --git a/Simulation/ISF/ISF_HepMC/ISF_HepMC_Interfaces/ISF_HepMC_Interfaces/IGenParticleFilter.h b/Simulation/ISF/ISF_HepMC/ISF_HepMC_Interfaces/ISF_HepMC_Interfaces/IGenParticleFilter.h index b03ac283f2737d40223224889fa9bcd0d9a81511..a982785281580ae4db0a0837817e3c4ffcc9cae6 100644 --- a/Simulation/ISF/ISF_HepMC/ISF_HepMC_Interfaces/ISF_HepMC_Interfaces/IGenParticleFilter.h +++ b/Simulation/ISF/ISF_HepMC/ISF_HepMC_Interfaces/ISF_HepMC_Interfaces/IGenParticleFilter.h @@ -15,9 +15,7 @@ // Simulation includes #include "ISF_Event/SimSvcID.h" -namespace HepMC { - class GenParticle; -} +#include "AtlasHepMC/GenParticle_fwd.h" namespace ISF { diff --git a/Simulation/ISF/ISF_HepMC/ISF_HepMC_Interfaces/ISF_HepMC_Interfaces/ITruthStrategy.h b/Simulation/ISF/ISF_HepMC/ISF_HepMC_Interfaces/ISF_HepMC_Interfaces/ITruthStrategy.h index 700f5331f494d8678dc67ca2b41d4b1d5cafb3fc..a6cee819f4bd0aba8a247ce66dfd3c2c6fd9876b 100644 --- a/Simulation/ISF/ISF_HepMC/ISF_HepMC_Interfaces/ISF_HepMC_Interfaces/ITruthStrategy.h +++ b/Simulation/ISF/ISF_HepMC/ISF_HepMC_Interfaces/ISF_HepMC_Interfaces/ITruthStrategy.h @@ -13,9 +13,8 @@ #include "GaudiKernel/IAlgTool.h" // forward declarations -namespace HepMC { - class GenVertex; -} +#include "AtlasHepMC/GenVertex_fwd.h" + namespace ISF { class ITruthIncident; diff --git a/Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/CMakeLists.txt b/Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/CMakeLists.txt index b367ecf2c952a0f0481f759732da9cc60163b530..00d1f4ed4525de69cd2c26fa7a7aedf01b86e236 100644 --- a/Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/CMakeLists.txt +++ b/Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/CMakeLists.txt @@ -12,13 +12,13 @@ atlas_depends_on_subdirs( PUBLIC Control/AthenaBaseComps DetectorDescription/AtlasDetDescr Generators/TruthUtils + Generators/AtlasHepMC Simulation/ISF/ISF_Core/ISF_Event Simulation/ISF/ISF_Core/ISF_Interfaces Simulation/ISF/ISF_HepMC/ISF_HepMC_Interfaces Tools/PathResolver ) # External dependencies: -find_package( HepMC ) find_package( ROOT COMPONENTS Core Tree MathCore Hist RIO pthread ) find_package( GTest ) find_package( GMock ) @@ -30,25 +30,25 @@ atlas_add_component( ISF_HepMC_Tools src/*.cxx src/components/*.cxx INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} ${HEPMC_INCLUDE_DIRS} - LINK_LIBRARIES ${ROOT_LIBRARIES} ${HEPMC_LIBRARIES} GaudiKernel AtlasDetDescr AthenaBaseComps TruthUtils ISF_Event ISF_Interfaces PathResolver ) + LINK_LIBRARIES ${ROOT_LIBRARIES} AtlasHepMCLib GaudiKernel AtlasDetDescr AthenaBaseComps TruthUtils ISF_Event ISF_Interfaces PathResolver ) # Tests -atlas_add_test( GenParticleGenericFilter_test +#atlas_add_test( GenParticleGenericFilter_test SOURCES test/GenParticleGenericFilter_test.cxx src/GenParticleGenericFilter.cxx INCLUDE_DIRS ${GTEST_INCLUDE_DIRS} ${GMOCK_INCLUDE_DIRS} ${HEPMC_INCLUDE_DIRS} - LINK_LIBRARIES ${GTEST_LIBRARIES} ${GMOCK_LIBRARIES} ${HEPMC_LIBRARIES} AthenaBaseComps ) + LINK_LIBRARIES ${GTEST_LIBRARIES} ${GMOCK_LIBRARIES} AtlasHepMCLib AthenaBaseComps ) # Tests atlas_add_test( GenParticleInteractingFilter_test SOURCES test/GenParticleInteractingFilter_test.cxx src/GenParticleInteractingFilter.cxx INCLUDE_DIRS ${GTEST_INCLUDE_DIRS} ${GMOCK_INCLUDE_DIRS} ${HEPMC_INCLUDE_DIRS} - LINK_LIBRARIES ${GTEST_LIBRARIES} ${GMOCK_LIBRARIES} ${HEPMC_LIBRARIES} AthenaBaseComps TruthUtils ) + LINK_LIBRARIES ${GTEST_LIBRARIES} ${GMOCK_LIBRARIES} AtlasHepMCLib AthenaBaseComps TruthUtils ) # Tests atlas_add_test( GenParticleLifetimeFilter_test SOURCES test/GenParticleLifetimeFilter_test.cxx src/GenParticleLifetimeFilter.cxx INCLUDE_DIRS ${GTEST_INCLUDE_DIRS} ${GMOCK_INCLUDE_DIRS} ${HEPMC_INCLUDE_DIRS} - LINK_LIBRARIES ${GTEST_LIBRARIES} ${GMOCK_LIBRARIES} ${HEPMC_LIBRARIES} AthenaBaseComps TruthUtils ) + LINK_LIBRARIES ${GTEST_LIBRARIES} ${GMOCK_LIBRARIES} AtlasHepMCLib AthenaBaseComps TruthUtils ) # Install files from the package: atlas_install_python_modules( python/*.py ) diff --git a/Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/src/CylinderVolumeTruthStrategy.cxx b/Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/src/CylinderVolumeTruthStrategy.cxx index 279bfe9e5fbe8de551a28e2b78e9e659b1932f9e..846a7cd4e812c781e28f6df05d133c23b54ac53a 100644 --- a/Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/src/CylinderVolumeTruthStrategy.cxx +++ b/Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/src/CylinderVolumeTruthStrategy.cxx @@ -13,7 +13,7 @@ #include "ISF_Event/ITruthIncident.h" // HepMC includes -#include "HepMC/SimpleVector.h" +#include "AtlasHepMC/SimpleVector.h" /** Constructor **/ ISF::CylinderVolumeTruthStrategy::CylinderVolumeTruthStrategy(const std::string& t, const std::string& n, const IInterface* p) : diff --git a/Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/src/GenParticleFinalStateFilter.cxx b/Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/src/GenParticleFinalStateFilter.cxx index 926d8731474dfc766e0259db16cef6f2072db3d3..7ce0aa81d86ca7ba0ba4b21994e8bc12cc0f5334 100644 --- a/Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/src/GenParticleFinalStateFilter.cxx +++ b/Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/src/GenParticleFinalStateFilter.cxx @@ -13,7 +13,7 @@ #include "TruthUtils/HepMCHelpers.h" // HepMC includes -#include "HepMC/GenParticle.h" +#include "AtlasHepMC/GenParticle.h" /** Constructor **/ diff --git a/Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/src/GenParticleGenericFilter.cxx b/Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/src/GenParticleGenericFilter.cxx index 8fc0a2319e64fc5c0d29f9afe39700b9ccb0aeeb..007e192d62d9a212b2d92b25f56be27cb9ba69a5 100644 --- a/Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/src/GenParticleGenericFilter.cxx +++ b/Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/src/GenParticleGenericFilter.cxx @@ -13,8 +13,8 @@ #include "GenParticleGenericFilter.h" // HepMC includes -#include "HepMC/GenParticle.h" -#include "HepMC/GenVertex.h" +#include "AtlasHepMC/GenParticle.h" +#include "AtlasHepMC/GenVertex.h" // STL includes #include <limits> diff --git a/Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/src/GenParticleInteractingFilter.cxx b/Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/src/GenParticleInteractingFilter.cxx index 7eee7c20747b3defa5caacc2c13f876bf2d1baf4..dbf3eff7450518947215361baa8f25e2e23b0dd5 100644 --- a/Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/src/GenParticleInteractingFilter.cxx +++ b/Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/src/GenParticleInteractingFilter.cxx @@ -10,7 +10,7 @@ #include "GenParticleInteractingFilter.h" // HepMC includes -#include "HepMC/GenParticle.h" +#include "AtlasHepMC/GenParticle.h" // Helper function #include "TruthUtils/HepMCHelpers.h" diff --git a/Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/src/GenParticleLifetimeFilter.cxx b/Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/src/GenParticleLifetimeFilter.cxx index ec7c85aae12df2fe5262c040a0e97408281aae45..ddeeaa836f6d32790dcff7b7dab945d6e20337e8 100644 --- a/Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/src/GenParticleLifetimeFilter.cxx +++ b/Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/src/GenParticleLifetimeFilter.cxx @@ -10,8 +10,8 @@ #include "GenParticleLifetimeFilter.h" // HepMC includes -#include "HepMC/GenParticle.h" -#include "HepMC/GenVertex.h" +#include "AtlasHepMC/GenParticle.h" +#include "AtlasHepMC/GenVertex.h" // CLHEP includes #include "CLHEP/Vector/LorentzVector.h" diff --git a/Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/src/GenParticlePositionFilter.cxx b/Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/src/GenParticlePositionFilter.cxx index 334d8371e12b6f2edbad6b8d2b6f7361af1951e3..2dbbb15df18a9f255b05f3e956eeff71cc0d4008 100644 --- a/Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/src/GenParticlePositionFilter.cxx +++ b/Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/src/GenParticlePositionFilter.cxx @@ -10,8 +10,8 @@ #include "GenParticlePositionFilter.h" // HepMC includes -#include "HepMC/GenParticle.h" -#include "HepMC/GenVertex.h" +#include "AtlasHepMC/GenParticle.h" +#include "AtlasHepMC/GenVertex.h" /** Constructor **/ ISF::GenParticlePositionFilter::GenParticlePositionFilter( const std::string& t, diff --git a/Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/src/GenParticleSimWhiteList.cxx b/Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/src/GenParticleSimWhiteList.cxx index b512b718a12877d5f473dd929f0dbc541b444a61..c4fefcb3daf6369f5a2641e073cd7c9a61cdc0e0 100644 --- a/Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/src/GenParticleSimWhiteList.cxx +++ b/Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/src/GenParticleSimWhiteList.cxx @@ -10,8 +10,8 @@ #include "GenParticleSimWhiteList.h" // HepMC includes -#include "HepMC/GenParticle.h" -#include "HepMC/GenVertex.h" +#include "AtlasHepMC/GenParticle.h" +#include "AtlasHepMC/GenVertex.h" // Helper function #include "TruthUtils/PIDHelpers.h" diff --git a/Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/test/GenParticleGenericFilter_test.cxx b/Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/test/GenParticleGenericFilter_test.cxx index db70ef12e8ec91272091f1e2767e6f1dce29f395..052a95f5baecaaad66e39e6ab325dbd7029ffb89 100644 --- a/Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/test/GenParticleGenericFilter_test.cxx +++ b/Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/test/GenParticleGenericFilter_test.cxx @@ -25,8 +25,8 @@ #include "../src/GenParticleGenericFilter.h" // Truth related includes -#include "HepMC/GenParticle.h" -#include "HepMC/GenVertex.h" +#include "AtlasHepMC/GenParticle.h" +#include "AtlasHepMC/GenVertex.h" namespace ISFTesting { diff --git a/Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/test/GenParticleInteractingFilter_test.cxx b/Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/test/GenParticleInteractingFilter_test.cxx index a0b60126bcaaade968b95d485d8dba476ae7267c..8bd2fec655ccc9287d77f364ea7cd69ac30cc922 100644 --- a/Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/test/GenParticleInteractingFilter_test.cxx +++ b/Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/test/GenParticleInteractingFilter_test.cxx @@ -25,8 +25,8 @@ #include "../src/GenParticleInteractingFilter.h" // Truth related includes -#include "HepMC/GenParticle.h" -#include "HepMC/GenVertex.h" +#include "AtlasHepMC/GenParticle.h" +#include "AtlasHepMC/GenVertex.h" namespace ISFTesting { diff --git a/Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/test/GenParticleLifetimeFilter_test.cxx b/Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/test/GenParticleLifetimeFilter_test.cxx index 069ab06b66c24ac628f15770117886164dd1367b..d3443338c1eda75c871ad09204b645c3adcaae11 100644 --- a/Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/test/GenParticleLifetimeFilter_test.cxx +++ b/Simulation/ISF/ISF_HepMC/ISF_HepMC_Tools/test/GenParticleLifetimeFilter_test.cxx @@ -23,8 +23,8 @@ #include "../src/GenParticleLifetimeFilter.h" // Truth related includes -#include "HepMC/GenParticle.h" -#include "HepMC/GenVertex.h" +#include "AtlasHepMC/GenParticle.h" +#include "AtlasHepMC/GenVertex.h" namespace ISFTesting { diff --git a/Simulation/ISF/ISF_SimulationSelectors/CMakeLists.txt b/Simulation/ISF/ISF_SimulationSelectors/CMakeLists.txt index e3f3fc0197b5e06d0d8d1eec6b1e870fff3ebd44..96ddeaf336b8c5051baa12b81b93ca2d0cb8374d 100644 --- a/Simulation/ISF/ISF_SimulationSelectors/CMakeLists.txt +++ b/Simulation/ISF/ISF_SimulationSelectors/CMakeLists.txt @@ -9,13 +9,13 @@ atlas_subdir( ISF_SimulationSelectors ) atlas_depends_on_subdirs( PUBLIC GaudiKernel PRIVATE + Generators/AtlasHepMC Simulation/Barcode/BarcodeServices Simulation/ISF/ISF_Core/ISF_Event Simulation/ISF/ISF_Core/ISF_Interfaces Simulation/ISF/ISF_Tracking/ISF_TrackingInterfaces ) # External dependencies: -find_package( HepMC ) find_package( ROOT COMPONENTS Core Tree MathCore Hist RIO pthread ) # Component(s) in the package: @@ -23,7 +23,7 @@ atlas_add_component( ISF_SimulationSelectors src/*.cxx src/components/*.cxx INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} ${HEPMC_INCLUDE_DIRS} - LINK_LIBRARIES ${ROOT_LIBRARIES} ${HEPMC_LIBRARIES} GaudiKernel BarcodeServicesLib ISF_Event ISF_Interfaces ) + LINK_LIBRARIES ${ROOT_LIBRARIES} AtlasHepMCLib GaudiKernel BarcodeServicesLib ISF_Event ISF_Interfaces ) # Install files from the package: atlas_install_python_modules( python/*.py ) diff --git a/Simulation/ISF/ISF_SimulationSelectors/src/TruthAssocSimSelector.h b/Simulation/ISF/ISF_SimulationSelectors/src/TruthAssocSimSelector.h index 17b6f9d4d1e3c30afabf887d3ac3495582187432..0f7b332b4b10d093304b9a956deb4a93b70a45d4 100644 --- a/Simulation/ISF/ISF_SimulationSelectors/src/TruthAssocSimSelector.h +++ b/Simulation/ISF/ISF_SimulationSelectors/src/TruthAssocSimSelector.h @@ -17,7 +17,7 @@ #include "BaseSimulationSelector.h" // HepMC includes -#include "HepMC/IteratorRange.h" +#include "AtlasHepMC/IteratorRange.h" namespace ISF { diff --git a/Simulation/Interfaces/HepMC_Interfaces/HepMC_Interfaces/IGenEventManipulator.h b/Simulation/Interfaces/HepMC_Interfaces/HepMC_Interfaces/IGenEventManipulator.h index 26d3b6fad823c4c86e1f9df826ea3a2251c8aa96..80a377d31fb1bf981c34e20f6d14476758d8e3ca 100644 --- a/Simulation/Interfaces/HepMC_Interfaces/HepMC_Interfaces/IGenEventManipulator.h +++ b/Simulation/Interfaces/HepMC_Interfaces/HepMC_Interfaces/IGenEventManipulator.h @@ -12,9 +12,7 @@ // Gaudi #include "GaudiKernel/IAlgTool.h" -namespace HepMC { - class GenEvent; -} +#include "AtlasHepMC/GenEvent_fwd.h" namespace Simulation { diff --git a/Simulation/Interfaces/HepMC_Interfaces/HepMC_Interfaces/IZeroLifetimePatcher.h b/Simulation/Interfaces/HepMC_Interfaces/HepMC_Interfaces/IZeroLifetimePatcher.h index 85d8416be6c6f250cf69522eab05cecf80ff8ac8..4f576a4fa5064bf20821723c0d9b7a1a86b81d63 100644 --- a/Simulation/Interfaces/HepMC_Interfaces/HepMC_Interfaces/IZeroLifetimePatcher.h +++ b/Simulation/Interfaces/HepMC_Interfaces/HepMC_Interfaces/IZeroLifetimePatcher.h @@ -10,10 +10,7 @@ #include "GaudiKernel/IInterface.h" #include "GaudiKernel/StatusCode.h" -namespace HepMC { - class GenEvent; -} - +#include "AtlasHepMC/GenEvent_fwd.h" namespace Simulation { /** diff --git a/Simulation/Tools/CaloSamplingFractionAnalysis/CMakeLists.txt b/Simulation/Tools/CaloSamplingFractionAnalysis/CMakeLists.txt index 75c3a65b080eb422ebc8ccdcc82aa93d76f21a42..27aabee14e3ec6afe578704e62571a834e1072c7 100644 --- a/Simulation/Tools/CaloSamplingFractionAnalysis/CMakeLists.txt +++ b/Simulation/Tools/CaloSamplingFractionAnalysis/CMakeLists.txt @@ -16,6 +16,7 @@ atlas_depends_on_subdirs( PUBLIC Control/AthenaBaseComps DetectorDescription/GeoModel/GeoAdaptors Event/EventInfo + Generators/AtlasHepMC LArCalorimeter/LArSimEvent LArCalorimeter/LArElecCalib TileCalorimeter/TileDetDescr @@ -23,7 +24,6 @@ atlas_depends_on_subdirs( PUBLIC # External dependencies: find_package( CLHEP ) -find_package( HepMC ) find_package( ROOT COMPONENTS Core Tree MathCore Hist RIO pthread Table MathMore Minuit Minuit2 Matrix Physics HistPainter Rint Graf Graf3d Gpad Html Postscript Gui GX11TTF GX11 ) # tag ROOTBasicLibs was not recognized in automatic conversion in cmt2cmake @@ -35,7 +35,7 @@ atlas_add_component( CaloSamplingFractionAnalysis src/*.cxx src/components/*.cxx INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} ${CLHEP_INCLUDE_DIRS} ${HEPMC_INCLUDE_DIRS} - LINK_LIBRARIES ${ROOT_LIBRARIES} ${CLHEP_LIBRARIES} ${HEPMC_LIBRARIES} GaudiKernel CaloDetDescrLib CaloIdentifier CaloSimEvent CaloEvent AthenaBaseComps GeoAdaptors EventInfo LArSimEvent TileDetDescr TileSimEvent ) + LINK_LIBRARIES ${ROOT_LIBRARIES} ${CLHEP_LIBRARIES} AtlasHepMCLib GaudiKernel CaloDetDescrLib CaloIdentifier CaloSimEvent CaloEvent AthenaBaseComps GeoAdaptors EventInfo LArSimEvent TileDetDescr TileSimEvent ) # Install files from the package: # atlas_install_headers( CaloSamplingFractionAnalysis ) diff --git a/Simulation/Tools/HitAnalysis/CMakeLists.txt b/Simulation/Tools/HitAnalysis/CMakeLists.txt index babd0ffbfce0303f4da7e7b8f6edb1f2ebb73dbb..0ca5a408303b6bf59c897b250cd228b2dc734c53 100644 --- a/Simulation/Tools/HitAnalysis/CMakeLists.txt +++ b/Simulation/Tools/HitAnalysis/CMakeLists.txt @@ -19,6 +19,7 @@ atlas_depends_on_subdirs( PUBLIC ForwardDetectors/ALFA/ALFA_SimEv ForwardDetectors/LUCID/LUCID_SimUtils/LUCID_SimEvent ForwardDetectors/ZDC/ZDC_SimEvent + Generators/AtlasHepMC Generators/GeneratorObjects InnerDetector/InDetSimEvent LArCalorimeter/LArSimEvent @@ -29,7 +30,6 @@ atlas_depends_on_subdirs( PUBLIC # External dependencies: find_package( CLHEP ) -find_package( HepMC ) find_package( ROOT COMPONENTS Core Tree MathCore Hist RIO pthread Table MathMore Minuit Minuit2 Matrix Physics HistPainter Rint Graf Graf3d Gpad Html Postscript Gui GX11TTF GX11 ) # tag ROOTBasicLibs was not recognized in automatic conversion in cmt2cmake @@ -41,7 +41,7 @@ atlas_add_component( HitAnalysis src/*.cxx src/components/*.cxx INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} ${CLHEP_INCLUDE_DIRS} ${HEPMC_INCLUDE_DIRS} - LINK_LIBRARIES ${ROOT_LIBRARIES} ${CLHEP_LIBRARIES} ${HEPMC_LIBRARIES} GaudiKernel CaloDetDescrLib CaloIdentifier CaloSimEvent AthenaBaseComps GeoAdaptors EventInfo AFP_SimEv ALFA_SimEv LUCID_SimEvent ZDC_SimEvent GeneratorObjects InDetSimEvent LArSimEvent MuonSimEvent TileDetDescr TileSimEvent ) + LINK_LIBRARIES ${ROOT_LIBRARIES} ${CLHEP_LIBRARIES} AtlasHepMCLib GaudiKernel CaloDetDescrLib CaloIdentifier CaloSimEvent AthenaBaseComps GeoAdaptors EventInfo AFP_SimEv ALFA_SimEv LUCID_SimEvent ZDC_SimEvent GeneratorObjects InDetSimEvent LArSimEvent MuonSimEvent TileDetDescr TileSimEvent ) # Install files from the package: atlas_install_joboptions( share/*.py ) diff --git a/Simulation/Tools/HitAnalysis/src/TruthHitAnalysis.cxx b/Simulation/Tools/HitAnalysis/src/TruthHitAnalysis.cxx index 287310a025cf95254eaee4e61eef79355a42bfa6..3ddbc8f0f0656e190650ee08b07a41756a3614d9 100755 --- a/Simulation/Tools/HitAnalysis/src/TruthHitAnalysis.cxx +++ b/Simulation/Tools/HitAnalysis/src/TruthHitAnalysis.cxx @@ -5,7 +5,7 @@ #include "TruthHitAnalysis.h" // Section of includes for Truth tests -#include "HepMC/GenEvent.h" +#include "AtlasHepMC/GenEvent.h" #include "GeneratorObjects/McEventCollection.h" #include "EventInfo/EventInfo.h" #include "EventInfo/EventID.h" diff --git a/Simulation/Tools/McEventCollectionFilter/CMakeLists.txt b/Simulation/Tools/McEventCollectionFilter/CMakeLists.txt index 368e2fd0978ec5bc5d82499843ffc0eea7d64b38..a8fa91bcf9ce6259f0a9527f027c8875cbab61ab 100644 --- a/Simulation/Tools/McEventCollectionFilter/CMakeLists.txt +++ b/Simulation/Tools/McEventCollectionFilter/CMakeLists.txt @@ -10,6 +10,7 @@ atlas_depends_on_subdirs( PRIVATE Control/AthenaBaseComps DetectorDescription/GeoPrimitives GaudiKernel + Generators/AtlasHepMC Generators/GeneratorObjects InnerDetector/InDetSimEvent MuonSpectrometer/MuonSimEvent ) @@ -17,7 +18,6 @@ atlas_depends_on_subdirs( PRIVATE # External dependencies: find_package( CLHEP ) find_package( Eigen ) -find_package( HepMC ) # Component(s) in the package: atlas_add_library( McEventCollectionFilterLib @@ -26,11 +26,11 @@ atlas_add_library( McEventCollectionFilterLib PRIVATE_INCLUDE_DIRS ${CLHEP_INCLUDE_DIRS} ${HEPMC_INCLUDE_DIRS} ${EIGEN_INCLUDE_DIRS} PRIVATE_DEFINITIONS ${CLHEP_DEFINITIONS} LINK_LIBRARIES StoreGateLib SGtests - PRIVATE_LINK_LIBRARIES ${CLHEP_LIBRARIES} ${HEPMC_LIBRARIES} ${EIGEN_LIBRARIES} AthenaBaseComps GeoPrimitives GaudiKernel GeneratorObjects InDetSimEvent MuonSimEvent ) + PRIVATE_LINK_LIBRARIES ${CLHEP_LIBRARIES} AtlasHepMCLib ${EIGEN_LIBRARIES} AthenaBaseComps GeoPrimitives GaudiKernel GeneratorObjects InDetSimEvent MuonSimEvent ) atlas_add_component( McEventCollectionFilter src/components/*.cxx INCLUDE_DIRS ${CLHEP_INCLUDE_DIRS} ${HEPMC_INCLUDE_DIRS} ${EIGEN_INCLUDE_DIRS} - LINK_LIBRARIES ${CLHEP_LIBRARIES} ${HEPMC_LIBRARIES} ${EIGEN_LIBRARIES} AthenaBaseComps StoreGateLib SGtests GeoPrimitives GaudiKernel GeneratorObjects InDetSimEvent MuonSimEvent McEventCollectionFilterLib ) + LINK_LIBRARIES ${CLHEP_LIBRARIES} AtlasHepMCLib ${EIGEN_LIBRARIES} AthenaBaseComps StoreGateLib SGtests GeoPrimitives GaudiKernel GeneratorObjects InDetSimEvent MuonSimEvent McEventCollectionFilterLib ) atlas_install_python_modules( python/*.py ) diff --git a/Simulation/Tools/McEventCollectionFilter/src/McEventCollectionFilter.cxx b/Simulation/Tools/McEventCollectionFilter/src/McEventCollectionFilter.cxx index 5b8742cbc33f33499fa358ed541ab508b11f852d..0f100552ce32e55b6557bf30862dfdf82a6f7ce0 100644 --- a/Simulation/Tools/McEventCollectionFilter/src/McEventCollectionFilter.cxx +++ b/Simulation/Tools/McEventCollectionFilter/src/McEventCollectionFilter.cxx @@ -7,8 +7,8 @@ ////////////////////////////////////////////////////////////////////////// #include "McEventCollectionFilter.h" // -#include "HepMC/GenEvent.h" -#include "HepMC/GenVertex.h" +#include "AtlasHepMC/GenEvent.h" +#include "AtlasHepMC/GenVertex.h" // #include "InDetSimEvent/SiHit.h" #include "MuonSimEvent/TGCSimHit.h" diff --git a/Simulation/Tools/McEventCollectionFilter/src/McEventCollectionFilter.h b/Simulation/Tools/McEventCollectionFilter/src/McEventCollectionFilter.h index a000f0f0d338f01b12ab7e93bf612c8e506f797a..9e7dc44ed1a3c2e0b3579ef200e172d67782a9a1 100644 --- a/Simulation/Tools/McEventCollectionFilter/src/McEventCollectionFilter.h +++ b/Simulation/Tools/McEventCollectionFilter/src/McEventCollectionFilter.h @@ -19,6 +19,8 @@ #include "MuonSimEvent/sTGCSimHitCollection.h" #include "MuonSimEvent/MMSimHitCollection.h" +#include "AtlasHepMC/GenParticle.h" + // std library includes #include <string> #include <vector> diff --git a/Simulation/TruthJiveXML/CMakeLists.txt b/Simulation/TruthJiveXML/CMakeLists.txt index 62b6e13403b3aeac6804a4b6de3d7d99cbb13c4b..51d325b1eb1bbd1bf7fd35700a9c1f69ba4f9afa 100644 --- a/Simulation/TruthJiveXML/CMakeLists.txt +++ b/Simulation/TruthJiveXML/CMakeLists.txt @@ -13,12 +13,12 @@ atlas_depends_on_subdirs( PUBLIC PRIVATE Control/StoreGate Event/EventPrimitives + Generators/AtlasHepMC Generators/GeneratorObjects Simulation/G4Sim/TrackRecord ) # External dependencies: find_package( CLHEP ) -find_package( HepMC ) find_package( HepPDT ) # Component(s) in the package: @@ -26,7 +26,7 @@ atlas_add_component( TruthJiveXML src/*.cxx src/components/*.cxx INCLUDE_DIRS ${HEPPDT_INCLUDE_DIRS} ${CLHEP_INCLUDE_DIRS} ${HEPMC_INCLUDE_DIRS} - LINK_LIBRARIES ${HEPPDT_LIBRARIES} ${CLHEP_LIBRARIES} ${HEPMC_LIBRARIES} AthenaBaseComps GaudiKernel JiveXMLLib StoreGateLib SGtests EventPrimitives GeneratorObjects ) + LINK_LIBRARIES ${HEPPDT_LIBRARIES} ${CLHEP_LIBRARIES} AtlasHepMCLib AthenaBaseComps GaudiKernel JiveXMLLib StoreGateLib SGtests EventPrimitives GeneratorObjects ) # Install files from the package: atlas_install_headers( TruthJiveXML ) diff --git a/Simulation/TruthJiveXML/src/TruthMuonTrackRetriever.cxx b/Simulation/TruthJiveXML/src/TruthMuonTrackRetriever.cxx index 5fdb805bbaf21929c3615eb254b5c1635c57a56e..8ab0bf029f88f5d634ed50d182b4690e4dd05c3c 100755 --- a/Simulation/TruthJiveXML/src/TruthMuonTrackRetriever.cxx +++ b/Simulation/TruthJiveXML/src/TruthMuonTrackRetriever.cxx @@ -8,7 +8,7 @@ //#include "GaudiKernel/ISvcLocator.h" #include "GaudiKernel/IPartPropSvc.h" -#include "HepMC/GenParticle.h" +#include "AtlasHepMC/GenParticle.h" #include "TrackRecord/TrackRecord.h" #include "TrackRecord/TrackRecordCollection.h" #include "HepPDT/ParticleData.hh"