JETAN module
authoragrigora <alina.grigoras@cern.ch>
Thu, 6 Nov 2014 13:24:48 +0000 (14:24 +0100)
committeragrigora <alina.grigoras@cern.ch>
Mon, 15 Dec 2014 12:51:53 +0000 (13:51 +0100)
52 files changed:
JETAN/CMakeLists.txt
JETAN/CMakelibJETAN.pkg
JETAN/JETAN/AliAnalysisTaskDiJets.cxx [moved from JETAN/AliAnalysisTaskDiJets.cxx with 100% similarity]
JETAN/JETAN/AliAnalysisTaskDiJets.h [moved from JETAN/AliAnalysisTaskDiJets.h with 100% similarity]
JETAN/JETAN/AliAnalysisTaskFastEmbedding.cxx [moved from JETAN/AliAnalysisTaskFastEmbedding.cxx with 100% similarity]
JETAN/JETAN/AliAnalysisTaskFastEmbedding.h [moved from JETAN/AliAnalysisTaskFastEmbedding.h with 100% similarity]
JETAN/JETAN/AliAnalysisTaskJetsFinder.cxx [moved from JETAN/AliAnalysisTaskJetsFinder.cxx with 100% similarity]
JETAN/JETAN/AliAnalysisTaskJetsFinder.h [moved from JETAN/AliAnalysisTaskJetsFinder.h with 100% similarity]
JETAN/JETAN/AliAnalysisTaskJetsReader.cxx [moved from JETAN/AliAnalysisTaskJetsReader.cxx with 100% similarity]
JETAN/JETAN/AliAnalysisTaskJetsReader.h [moved from JETAN/AliAnalysisTaskJetsReader.h with 100% similarity]
JETAN/JETAN/AliAnalysisTaskKMeans.cxx [moved from JETAN/AliAnalysisTaskKMeans.cxx with 100% similarity]
JETAN/JETAN/AliAnalysisTaskKMeans.h [moved from JETAN/AliAnalysisTaskKMeans.h with 100% similarity]
JETAN/JETAN/AliCdfJetFinder.cxx [moved from JETAN/AliCdfJetFinder.cxx with 100% similarity]
JETAN/JETAN/AliCdfJetFinder.h [moved from JETAN/AliCdfJetFinder.h with 100% similarity]
JETAN/JETAN/AliCdfJetHeader.cxx [moved from JETAN/AliCdfJetHeader.cxx with 100% similarity]
JETAN/JETAN/AliCdfJetHeader.h [moved from JETAN/AliCdfJetHeader.h with 100% similarity]
JETAN/JETAN/AliDAJetFinder.cxx [moved from JETAN/AliDAJetFinder.cxx with 100% similarity]
JETAN/JETAN/AliDAJetFinder.h [moved from JETAN/AliDAJetFinder.h with 100% similarity]
JETAN/JETAN/AliDAJetHeader.cxx [moved from JETAN/AliDAJetHeader.cxx with 100% similarity]
JETAN/JETAN/AliDAJetHeader.h [moved from JETAN/AliDAJetHeader.h with 100% similarity]
JETAN/JETAN/AliEventShape.cxx [moved from JETAN/AliEventShape.cxx with 100% similarity]
JETAN/JETAN/AliEventShape.h [moved from JETAN/AliEventShape.h with 100% similarity]
JETAN/JETAN/AliJetBkg.cxx [moved from JETAN/AliJetBkg.cxx with 100% similarity]
JETAN/JETAN/AliJetBkg.h [moved from JETAN/AliJetBkg.h with 100% similarity]
JETAN/JETAN/AliJetCalTrk.cxx [moved from JETAN/AliJetCalTrk.cxx with 100% similarity]
JETAN/JETAN/AliJetCalTrk.h [moved from JETAN/AliJetCalTrk.h with 100% similarity]
JETAN/JETAN/AliJetFillCalTrkEvent.cxx [moved from JETAN/AliJetFillCalTrkEvent.cxx with 100% similarity]
JETAN/JETAN/AliJetFillCalTrkEvent.h [moved from JETAN/AliJetFillCalTrkEvent.h with 100% similarity]
JETAN/JETAN/AliJetFillCalTrkTrack.cxx [moved from JETAN/AliJetFillCalTrkTrack.cxx with 100% similarity]
JETAN/JETAN/AliJetFillCalTrkTrack.h [moved from JETAN/AliJetFillCalTrkTrack.h with 100% similarity]
JETAN/JETAN/AliJetFillCalTrkTrackMC.cxx [moved from JETAN/AliJetFillCalTrkTrackMC.cxx with 100% similarity]
JETAN/JETAN/AliJetFillCalTrkTrackMC.h [moved from JETAN/AliJetFillCalTrkTrackMC.h with 100% similarity]
JETAN/JETAN/AliJetFinder.cxx [moved from JETAN/AliJetFinder.cxx with 100% similarity]
JETAN/JETAN/AliJetFinder.h [moved from JETAN/AliJetFinder.h with 100% similarity]
JETAN/JETAN/AliJetHeader.cxx [moved from JETAN/AliJetHeader.cxx with 100% similarity]
JETAN/JETAN/AliJetHeader.h [moved from JETAN/AliJetHeader.h with 100% similarity]
JETAN/JETAN/AliJetHistos.cxx [moved from JETAN/AliJetHistos.cxx with 100% similarity]
JETAN/JETAN/AliJetHistos.h [moved from JETAN/AliJetHistos.h with 100% similarity]
JETAN/JETAN/AliJetKineReaderHeader.cxx [moved from JETAN/AliJetKineReaderHeader.cxx with 100% similarity]
JETAN/JETAN/AliJetKineReaderHeader.h [moved from JETAN/AliJetKineReaderHeader.h with 100% similarity]
JETAN/JETAN/AliJetReader.cxx [moved from JETAN/AliJetReader.cxx with 100% similarity]
JETAN/JETAN/AliJetReader.h [moved from JETAN/AliJetReader.h with 100% similarity]
JETAN/JETAN/AliJetReaderHeader.cxx [moved from JETAN/AliJetReaderHeader.cxx with 100% similarity]
JETAN/JETAN/AliJetReaderHeader.h [moved from JETAN/AliJetReaderHeader.h with 100% similarity]
JETAN/JETAN/AliKMeansClustering.cxx [moved from JETAN/AliKMeansClustering.cxx with 100% similarity]
JETAN/JETAN/AliKMeansClustering.h [moved from JETAN/AliKMeansClustering.h with 100% similarity]
JETAN/JETAN/AliUA1JetFinder.cxx [moved from JETAN/AliUA1JetFinder.cxx with 100% similarity]
JETAN/JETAN/AliUA1JetFinder.h [moved from JETAN/AliUA1JetFinder.h with 100% similarity]
JETAN/JETAN/AliUA1JetHeaderV1.cxx [moved from JETAN/AliUA1JetHeaderV1.cxx with 100% similarity]
JETAN/JETAN/AliUA1JetHeaderV1.h [moved from JETAN/AliUA1JetHeaderV1.h with 100% similarity]
JETAN/JETAN/CMakeLists.txt [new file with mode: 0644]
JETAN/JETAN/JETANLinkDef.h [moved from JETAN/JETANLinkDef.h with 100% similarity]

index e68000d..418507e 100644 (file)
@@ -1,16 +1,25 @@
-# AliRoot Build System CMakeLists for JETAN
-#
-# Author: Johny Jose m(johny.jose@cern.ch)
-#         Port of previous Makefile build to cmake
+# **************************************************************************
+# * 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.                  *
+# **************************************************************************
 
-cmake_minimum_required(VERSION 2.8.8 FATAL_ERROR)
+add_subdirectory(JETAN)
+if(FASTJET_FOUND)
+    message(STATUS "FastJet found. Enabling FASTJETAN")
+#    add_subdirectory(FASTJETAN)
+endif(FASTJET_FOUND)
 
-if(NOT FASTJET_FOUND)
-  set(PACKAGES CMakelibJETAN.pkg)
-  message(STATUS "skipping FASTJETAN")
-else()
-  set(PACKAGES CMakelibFASTJETAN.pkg CMakelibJETAN.pkg)
-endif(NOT FASTJET_FOUND)
+# Installing the macros
+install(DIRECTORY macros DESTINATION JETAN)
 
-
-ALICE_BuildModule()
+message(STATUS "JETAN enabled")
index 60fb1b0..75f1343 100644 (file)
 # SHLIBS - Shared Libraries and objects for linking (Executables only)           #
 #--------------------------------------------------------------------------------#
 
-set ( SRCS AliJetHeader.cxx AliJetFinder.cxx  AliJetReaderHeader.cxx AliJetReader.cxx AliUA1JetHeaderV1.cxx AliUA1JetFinder.cxx AliCdfJetFinder.cxx  AliCdfJetHeader.cxx AliAnalysisTaskJetsReader.cxx  AliAnalysisTaskJetsFinder.cxx AliDAJetFinder.cxx AliDAJetHeader.cxx AliJetKineReaderHeader.cxx AliJetHistos.cxx AliAnalysisTaskDiJets.cxx AliEventShape.cxx AliKMeansClustering.cxx AliAnalysisTaskKMeans.cxx AliAnalysisTaskFastEmbedding.cxx AliJetBkg.cxx AliJetCalTrk.cxx AliJetFillCalTrkTrack.cxx AliJetFillCalTrkTrackMC.cxx AliJetFillCalTrkEvent.cxx )
+set ( SRCS 
+AliJetHeader.cxx 
+AliJetFinder.cxx  
+AliJetReaderHeader.cxx 
+AliJetReader.cxx 
+AliUA1JetHeaderV1.cxx 
+AliUA1JetFinder.cxx 
+AliCdfJetFinder.cxx  
+AliCdfJetHeader.cxx 
+AliAnalysisTaskJetsReader.cxx  
+AliAnalysisTaskJetsFinder.cxx 
+AliDAJetFinder.cxx AliDAJetHeader.cxx 
+AliJetKineReaderHeader.cxx 
+AliJetHistos.cxx 
+AliAnalysisTaskDiJets.cxx 
+AliEventShape.cxx 
+AliKMeansClustering.cxx 
+AliAnalysisTaskKMeans.cxx 
+AliAnalysisTaskFastEmbedding.cxx 
+AliJetBkg.cxx 
+AliJetCalTrk.cxx 
+AliJetFillCalTrkTrack.cxx 
+AliJetFillCalTrkTrackMC.cxx 
+AliJetFillCalTrkEvent.cxx 
+)
 
 string ( REPLACE ".cxx" ".h" HDRS "${SRCS}" )
 
similarity index 100%
rename from JETAN/AliJetBkg.h
rename to JETAN/JETAN/AliJetBkg.h
diff --git a/JETAN/JETAN/CMakeLists.txt b/JETAN/JETAN/CMakeLists.txt
new file mode 100644 (file)
index 0000000..cc27d0c
--- /dev/null
@@ -0,0 +1,89 @@
+# **************************************************************************
+# * 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 JETAN)
+
+# Module include folder
+include_directories(${AliRoot_SOURCE_DIR}/JETAN/${MODULE})
+
+# Additional include folders in alphabetical order except ROOT
+include_directories(${ROOT_INCLUDE_DIRS}
+                    ${AliRoot_SOURCE_DIR}/ANALYSIS/ANALYSIS
+                    ${AliRoot_SOURCE_DIR}/ANALYSIS/ANALYSISalice
+                    ${AliRoot_SOURCE_DIR}/EMCAL/EMCALUtils
+                    ${AliRoot_SOURCE_DIR}/STEER/AOD
+                    ${AliRoot_SOURCE_DIR}/STEER/ESD
+                    ${AliRoot_SOURCE_DIR}/STEER/STEERBase
+                   )
+
+# Sources in alphabetical order
+set(SRCS
+    AliAnalysisTaskDiJets.cxx
+    AliAnalysisTaskFastEmbedding.cxx
+    AliAnalysisTaskJetsFinder.cxx
+    AliAnalysisTaskJetsReader.cxx
+    AliAnalysisTaskKMeans.cxx
+    AliCdfJetFinder.cxx
+    AliCdfJetHeader.cxx
+    AliDAJetFinder.cxx
+    AliDAJetHeader.cxx
+    AliEventShape.cxx
+    AliJetBkg.cxx
+    AliJetCalTrk.cxx
+    AliJetFillCalTrkEvent.cxx
+    AliJetFillCalTrkTrack.cxx
+    AliJetFillCalTrkTrackMC.cxx
+    AliJetFinder.cxx
+    AliJetHeader.cxx
+    AliJetHistos.cxx
+    AliJetKineReaderHeader.cxx
+    AliJetReader.cxx
+    AliJetReaderHeader.cxx
+    AliKMeansClustering.cxx
+    AliUA1JetFinder.cxx
+    AliUA1JetHeaderV1.cxx
+   )
+
+# Headers from sources
+string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
+
+# 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 ESD AOD ANALYSIS ANALYSISalice EMCALUtils)
+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