diff --git a/Generators/EvgenProdTools/CMakeLists.txt b/Generators/EvgenProdTools/CMakeLists.txt index 6ff81b8bc62bed06cae425a81159bbf49bce08ea..d0bbc8bdc381202da69a5b18f7e52a5c747d0334 100644 --- a/Generators/EvgenProdTools/CMakeLists.txt +++ b/Generators/EvgenProdTools/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration +# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration # Declare the package name: atlas_subdir( EvgenProdTools ) @@ -12,11 +12,11 @@ atlas_add_library( EvgenProdToolsLib PUBLIC_HEADERS EvgenProdTools INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} LINK_LIBRARIES ${ROOT_LIBRARIES} AtlasHepMCLib AtlasHepMCsearchLib AthenaBaseComps TruthHelper GeneratorModulesLib GenInterfacesLib - PRIVATE_LINK_LIBRARIES AthenaKernel EventInfo GaudiKernel TruthUtils IOVDbDataModel AthenaPoolUtilities ) + PRIVATE_LINK_LIBRARIES AthenaKernel EventInfo GaudiKernel TruthUtils IOVDbDataModel AthenaPoolUtilities PathResolver ) atlas_add_component( EvgenProdTools src/components/*.cxx - LINK_LIBRARIES EvgenProdToolsLib IOVDbDataModel AthenaPoolUtilities ) + LINK_LIBRARIES EvgenProdToolsLib ) # Install files from the package: atlas_install_python_modules( python/*.py POST_BUILD_CMD ${ATLAS_FLAKE8} ) diff --git a/Generators/EvgenProdTools/src/TestHepMC.cxx b/Generators/EvgenProdTools/src/TestHepMC.cxx index e1b9a249ae84d8e0fba9a72a7b4fd9b5408cb611..1477e017a0db476de5c46bca3ce7e863ee4a30f6 100644 --- a/Generators/EvgenProdTools/src/TestHepMC.cxx +++ b/Generators/EvgenProdTools/src/TestHepMC.cxx @@ -1,11 +1,12 @@ /* - Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration */ #ifndef XAOD_ANALYSIS #include "EvgenProdTools/TestHepMC.h" #include "GaudiKernel/DataSvc.h" #include "TruthUtils/PIDHelpers.h" +#include "PathResolver/PathResolver.h" // For find #include <algorithm> @@ -180,15 +181,18 @@ StatusCode TestHepMC::initialize() { CHECK(m_thistSvc->regHist("/TestHepMCname/h_beamparticle2_Energy", m_h_beamparticle2_Energy)); CHECK(m_thistSvc->regHist("/TestHepMCname/h_cmEnergyDiff", m_h_cmEnergyDiff)); - ATH_MSG_INFO("No decay vertex is ignored for particles with status (list):" ); + ATH_MSG_INFO("No decay vertex - is ignored for particles with status (list):" ); for ( unsigned int i = 0; i < m_vertexStatuses.size(); i++ ) ATH_MSG_INFO(" : " << m_vertexStatuses.at(i) ); ATH_MSG_INFO("Vertex statuses finished"); } // End of histogramming setup // open the files and read G4particle_whitelist.txt + + static const char* fileName = "G4particle_whitelist.txt"; + const std::string fileLocation = PathResolverFindDataFile ( fileName); std::ifstream G4file; - G4file.open("G4particle_whitelist.txt"); + G4file.open(fileLocation); std::string line; int G4pdgID; if (!G4file.fail()){ diff --git a/Projects/AthGeneration/package_filters.txt b/Projects/AthGeneration/package_filters.txt index 089b85a9c147e97aa8698b58068dd7ae632e38a6..6ec7868e0ef5199bf892e09fb15b72a5bfac40d5 100644 --- a/Projects/AthGeneration/package_filters.txt +++ b/Projects/AthGeneration/package_filters.txt @@ -61,7 +61,7 @@ + Database/APR/POOLCore + Database/APR/PersistencySvc #+ Database/APR/RelationalCollection -#+ Database/APR/RootCollection ++ Database/APR/RootCollection + Database/APR/RootStorageSvc + Database/APR/StorageSvc + Database/AthenaPOOL/AthenaPoolCnvSvc