Skip to content
Snippets Groups Projects
Commit 95d8a6b1 authored by James Beacham's avatar James Beacham Committed by Atlas Nightlybuild
Browse files

Merge branch 'ISF_ServicesUnitTests_21.0' into '21.0'

Adding a unit test for the TruthSvc

See merge request atlas/athena!9314

(cherry picked from commit b0209c0b [formerly 7f457bcd])

277ee960 Adding a unit test for the TruthSvc

Former-commit-id: cb775662
parent c6fee1b4
No related branches found
No related tags found
No related merge requests found
......@@ -73,6 +73,41 @@ atlas_add_test( InputConverter_test
"JOBOPTSEARCHPATH=${CMAKE_CURRENT_SOURCE_DIR}/test"
)
atlas_add_test( TruthSvc_test
SOURCES
test/TruthSvc_test.cxx src/TruthSvc.cxx
INCLUDE_DIRS
${GTEST_INCLUDE_DIRS}
${GMOCK_INCLUDE_DIRS}
${ROOT_INCLUDE_DIRS}
${GEANT4_INCLUDE_DIRS}
${HEPMC_INCLUDE_DIRS}
${CLHEP_INCLUDE_DIRS}
${HEPPDT_INCLUDE_DIRS}
LINK_LIBRARIES
${GTEST_LIBRARIES}
${GMOCK_LIBRARIES}
${ROOT_LIBRARIES}
${GEANT4_LIBRARIES}
${HEPMC_LIBRARIES}
${CLHEP_LIBRARIES}
${HEPPDT_LIBRARIES}
GaudiKernel
CaloIdentifier
CaloSimEvent
AthenaBaseComps
StoreGateLib
InDetSimEvent
MuonSimEvent
ISF_Event
ISF_Interfaces
PmbCxxUtils
MCTruth
TruthUtils
ENVIRONMENT
"JOBOPTSEARCHPATH=${CMAKE_CURRENT_SOURCE_DIR}/test"
)
# Install files from the package:
atlas_install_headers( ISF_Services )
atlas_install_python_modules( python/*.py )
......
......@@ -40,6 +40,10 @@ namespace HepMC {
class GenEvent;
}
namespace ISFTesting {
class TruthSvc_test;
}
namespace ISF {
class ITruthStrategy;
......@@ -54,6 +58,10 @@ namespace ISF {
@author Andreas.Salzburger -at- cern.ch , Elmar.Ritsch -at- cern.ch
*/
class TruthSvc : public extends<AthService, ITruthSvc> {
// allow test to access private data
friend ISFTesting::TruthSvc_test;
public:
//** Constructor with parameters */
......
This diff is collapsed.
// Need to set a BarcodeService as TruthSvc will otherwise fail to initialize
TruthSvc.BarcodeSvc = "Barcode::LegacyBarcodeSvc/LegacyBarcodeSvc";
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment