From: agrigora Date: Tue, 28 Oct 2014 14:15:42 +0000 (+0100) Subject: AliHLTJET module X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=b5576c4ec4062181092638f040bb91500839c4e1;p=u%2Fmrichter%2FAliRoot.git AliHLTJET module --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 14e7de2048d..87273a0447a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -66,6 +66,9 @@ endif() # DATE find_package(DATE) +# FastJet +find_package(FASTJET) + # AliRoot version extracted from Git repository # Sets 4 git variables # - GIT_REFSPEC - complete name of the current reference diff --git a/HLT/CMakeLists.txt b/HLT/CMakeLists.txt index ebce8a2d7e6..a0f57c7774a 100644 --- a/HLT/CMakeLists.txt +++ b/HLT/CMakeLists.txt @@ -39,6 +39,7 @@ add_subdirectory(global) add_subdirectory(EMCAL) add_subdirectory(FMD) add_subdirectory(ITS) +add_subdirectory(JET) # Enable EVE if ROOT has OpenGL support if(ROOT_HASOPENGL STREQUAL "yes") add_subdirectory(EVE) diff --git a/HLT/JET/AliHLTJETLinkDef.h b/HLT/JET/AliHLTJETLinkDef.h new file mode 100644 index 00000000000..befd5a4a50e --- /dev/null +++ b/HLT/JET/AliHLTJETLinkDef.h @@ -0,0 +1,30 @@ +// Auto generated file - do not edit +#if !defined(__CINT__) && !defined(__CLING__) +# error Not for compilation +#else +#pragma link off all globals; +#pragma link off all classes; +#pragma link off all functions; + +#pragma link C++ class AliHLTJETAgent+; +#pragma link C++ class AliHLTJETBase+; +#pragma link C++ class AliHLTJETTrackCuts+; +#pragma link C++ class AliHLTJETJetCuts+; +#pragma link C++ class AliHLTJETReader+; +#pragma link C++ class AliHLTJETReaderHeader+; +#pragma link C++ class AliHLTJETConeGrid+; +#pragma link C++ class AliHLTJETConeEtaPhiCell+; +#pragma link C++ class AliHLTJETConeSeedCuts+; +#pragma link C++ class AliHLTJETConeJetCandidate+; +#pragma link C++ class AliHLTJETConeHeader+; +#pragma link C++ class AliHLTJETConeFinder+; +#pragma link C++ class AliHLTJETConeJetComponent+; +#pragma link C++ class AliHLTJETAnalysisBase+; +#pragma link C++ class AliHLTJETAnalysisJets+; +#pragma link C++ class AliHLTJETAnalysisMerge+; +#pragma link C++ class AliHLTJETAnalysisComponent+; + +#endif // __CINT__ +// +// EOF +// diff --git a/HLT/JET/CMakeLists.txt b/HLT/JET/CMakeLists.txt new file mode 100644 index 00000000000..04b73ccaaef --- /dev/null +++ b/HLT/JET/CMakeLists.txt @@ -0,0 +1,99 @@ +# ************************************************************************** +# * Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. * +# * * +# * Author: The ALICE Off-line Project. * +# * Contributors are mentioned in the code where appropriate. * +# * * +# * Permission to use, copy, modify and distribute this software and its * +# * documentation strictly for non-commercial purposes is hereby granted * +# * without fee, provided that the above copyright notice appears in all * +# * copies and that both the copyright notice and this permission notice * +# * appear in the supporting documentation. The authors make no claims * +# * about the suitability of this software for any purpose. It is * +# * provided "as is" without express or implied warranty. * +# ************************************************************************** + +# Module +set(MODULE AliHLTJET) + +# Module include folder +include_directories(${CMAKE_SOURCE_DIR}/HLT/JET + ${CMAKE_SOURCE_DIR}/HLT/JET/analysis + ${CMAKE_SOURCE_DIR}/HLT/JET/cone + ${CMAKE_SOURCE_DIR}/HLT/JET/fastjet + ) + +# Additional include folders in alphabetical order except ROOT +include_directories(${ROOT_INCLUDE_DIRS} + ${CMAKE_SOURCE_DIR}/ANALYSIS/ANALYSISalice + ${CMAKE_SOURCE_DIR}/HLT/BASE + ${CMAKE_SOURCE_DIR}/HLT/BASE/util + ${CMAKE_SOURCE_DIR}/JETAN + ${CMAKE_SOURCE_DIR}/STEER/AOD + ${CMAKE_SOURCE_DIR}/STEER/ESD + ${CMAKE_SOURCE_DIR}/STEER/STEERBase + ) + +# Sources in alphabetical order +set(SRCS + AliHLTJETAgent.cxx + AliHLTJETBase.cxx + AliHLTJETJetCuts.cxx + AliHLTJETReader.cxx + AliHLTJETReaderHeader.cxx + AliHLTJETTrackCuts.cxx + analysis/AliHLTJETAnalysisBase.cxx + analysis/AliHLTJETAnalysisComponent.cxx + analysis/AliHLTJETAnalysisJets.cxx + analysis/AliHLTJETAnalysisMerge.cxx + cone/AliHLTJETConeEtaPhiCell.cxx + cone/AliHLTJETConeFinder.cxx + cone/AliHLTJETConeGrid.cxx + cone/AliHLTJETConeHeader.cxx + cone/AliHLTJETConeJetCandidate.cxx + cone/AliHLTJETConeJetComponent.cxx + cone/AliHLTJETConeSeedCuts.cxx + ) + +# Headers from sources +string(REPLACE ".cxx" ".h" HDRS "${SRCS}") + +# Check for FastJet installation to include proper headers +if(FASTJET_FOUND) + set(HDRS ${HDRS} + fastjet/AliHLTJETFastJetHeader.h + fastjet/AliHLTJETFastJetFinder.h + fastjet/AliHLTJETFastJetComponent.h + ) + + include_directories(${FASTJET_INCLUDE_DIR}) + add_definitions(${FASTJET_DEFINITIONS}) +endif(FASTJET_FOUND) + +# Generate the dictionary +# It will create G_ARG1.cxx and G_ARG1.h / ARG1 = function first argument +get_directory_property(incdirs INCLUDE_DIRECTORIES) +generate_dictionary("${MODULE}" "${MODULE}LinkDef.h" "${HDRS}" "${incdirs}") + +# Generate the ROOT map +# Dependecies +set(LIBDEPS STEERBase AOD ESD ANALYSISalice HLTbase AliHLTUtil JETAN) +generate_rootmap("${MODULE}" "${LIBDEPS}" "${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}LinkDef.h") + +# Add a library to the project using the specified source files +add_library(${MODULE} SHARED ${SRCS} G__${MODULE}.cxx) + +# Additional compilation flags +set_target_properties(${MODULE} PROPERTIES COMPILE_FLAGS "-O -g") + +# System dependent: Modify the way the library is build +if(${CMAKE_SYSTEM} MATCHES Darwin) + set_target_properties(${MODULE} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup") +endif(${CMAKE_SYSTEM} MATCHES Darwin) + +# Installation +install(TARGETS ${MODULE} + ARCHIVE DESTINATION lib + LIBRARY DESTINATION lib) + +install(FILES ${HDRS} DESTINATION include) \ No newline at end of file