Skip to content
Snippets Groups Projects
Commit b88452a5 authored by Baptiste Ravina's avatar Baptiste Ravina
Browse files

this should be the more correct way to compile KLFitter?

parent 5ad1b455
No related branches found
No related tags found
1 merge request!78425Draft: CPAlgorithms: fixes for KLFitter
Pipeline #11002272 passed
......@@ -10,28 +10,49 @@ if(XAOD_ANALYSIS)
# source from https://www.github.com/KLFitter/KLFitter
find_package(KLFitter)
find_package( ROOT COMPONENTS Core )
# Generate a CINT dictionary source file:
atlas_add_root_dictionary(KLFitterAnalysisAlgorithmsLib _cintDictSource
ROOT_HEADERS Root/LinkDef.h
EXTERNAL_PACKAGES ROOT )
atlas_add_library( KLFitterAnalysisAlgorithmsLib
KLFitterAnalysisAlgorithms/*.h Root/*.cxx ${_cintDictSource}
PUBLIC_HEADERS KLFitterAnalysisAlgorithms
INCLUDE_DIRS ${KLFITTER_INCLUDE_DIRS}
PRIVATE_INCLUDE_DIRS ${ROOT_INCLUDE_DIRS}
LINK_LIBRARIES ${KLFITTER_LIBRARIES}
AnaAlgorithmLib FourMomUtils SystematicsHandlesLib SelectionHelpersLib xAODJet xAODMuon xAODTau xAODEgamma xAODMissingET
FTagAnalysisInterfacesLib PathResolver
PRIVATE_LINK_LIBRARIES ${ROOT_LIBRARIES} PATInterfaces xAODCore xAODMetaData )
atlas_add_dictionary( KLFitterAnalysisAlgorithmsDict
KLFitterAnalysisAlgorithms/KLFitterAnalysisAlgorithmsDict.h
KLFitterAnalysisAlgorithms/selection.xml
LINK_LIBRARIES KLFitterAnalysisAlgorithmsLib
EXTRA_FILES Root/dict/*.cxx )
find_package( ROOT COMPONENTS Core Physics)
if(XAOD_STANDALONE)
# Generate a CINT dictionary source file:
atlas_add_root_dictionary(KLFitterAnalysisAlgorithmsLib _cintDictSource
ROOT_HEADERS Root/LinkDef.h
EXTERNAL_PACKAGES ROOT )
atlas_add_library( KLFitterAnalysisAlgorithmsLib
KLFitterAnalysisAlgorithms/*.h Root/*.cxx ${_cintDictSource}
INCLUDE_DIRS ${ROOT_INCLUDE_DIRS} ${KLFITTER_INCLUDE_DIRS}
PUBLIC_HEADERS KLFitterAnalysisAlgorithms
PRIVATE_INCLUDE_DIRS ${ROOT_INCLUDE_DIRS}
LINK_LIBRARIES ${ROOT_LIBRARIES} ${KLFITTER_LIBRARIES}
AnaAlgorithmLib FourMomUtils SystematicsHandlesLib SelectionHelpersLib xAODJet xAODMuon xAODTau xAODEgamma xAODMissingET xAODCore
FTagAnalysisInterfacesLib PathResolver AthContainers )
else()
atlas_add_library( KLFitterAnalysisAlgorithmsLib
KLFitterAnalysisAlgorithms/*.h Root/*.cxx
INCLUDE_DIRS ${KLFITTER_INCLUDE_DIRS}
PUBLIC_HEADERS KLFitterAnalysisAlgorithms
LINK_LIBRARIES ${KLFITTER_LIBRARIES}
AnaAlgorithmLib FourMomUtils SystematicsHandlesLib SelectionHelpersLib xAODJet xAODMuon xAODTau xAODEgamma xAODMissingET xAODCore
FTagAnalysisInterfacesLib PathResolver )
endif()
if(XAOD_STANDALONE)
atlas_add_dictionary( KLFitterAnalysisAlgorithmsDict
KLFitterAnalysisAlgorithms/KLFitterAnalysisAlgorithmsDict.h
KLFitterAnalysisAlgorithms/selection.xml
LINK_LIBRARIES KLFitterAnalysisAlgorithmsLib
EXTRA_FILES Root/dict/*.cxx )
else()
atlas_add_component(
KLFitterAnalysisAlgorithms src/components/*.cxx
LINK_LIBRARIES KLFitterAnalysisAlgorithmsLib
)
atlas_add_dictionary( KLFitterAnalysisAlgorithmsDict
KLFitterAnalysisAlgorithms/KLFitterAnalysisAlgorithmsDict.h
KLFitterAnalysisAlgorithms/selection_ath.xml
LINK_LIBRARIES KLFitterAnalysisAlgorithmsLib
EXTRA_FILES Root/dict/*.cxx )
endif()
atlas_install_python_modules( python/*.py )
......
......@@ -8,11 +8,11 @@
#ifndef KLFITTERANALYSIS_ALGORITHMS_DICT_H
#define KLFITTERANALYSIS_ALGORITHMS_DICT_H
#include "KLFitterAnalysisAlgorithms/RunKLFitterAlg.h"
#include "KLFitterAnalysisAlgorithms/KLFitterFinalizeOutputAlg.h"
#include "KLFitterAnalysisAlgorithms/KLFitterResult.h"
#include "KLFitterAnalysisAlgorithms/KLFitterResultAuxContainer.h"
#include "KLFitterAnalysisAlgorithms/KLFitterResultContainer.h"
#include "KLFitterAnalysisAlgorithms/RunKLFitterAlg.h"
// EDM include(s).
#include "xAODCore/tools/DictHelpers.h"
......
......@@ -8,5 +8,5 @@
#include <KLFitterAnalysisAlgorithms/RunKLFitterAlg.h>
#include <KLFitterAnalysisAlgorithms/KLFitterFinalizeOutputAlg.h>
DECLARE_COMPONENT (EventReco::KLFitterFinalizeOutputAlg)
DECLARE_COMPONENT (EventReco::RunKLFitterAlg)
DECLARE_COMPONENT (EventReco::KLFitterFinalizeOutputAlg)
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