ACORDE module
authoragrigora <alina.grigoras@cern.ch>
Thu, 16 Oct 2014 09:01:20 +0000 (11:01 +0200)
committeragrigora <alina.grigoras@cern.ch>
Mon, 15 Dec 2014 12:51:49 +0000 (13:51 +0100)
55 files changed:
ACORDE/ACORDEbase/ACORDEbaseLinkDef.h [moved from ACORDE/ACORDEbaseLinkDef.h with 100% similarity]
ACORDE/ACORDEbase/AliACORDEAlign.cxx [moved from ACORDE/AliACORDEAlign.cxx with 100% similarity]
ACORDE/ACORDEbase/AliACORDEAlign.h [moved from ACORDE/AliACORDEAlign.h with 100% similarity]
ACORDE/ACORDEbase/AliACORDECalibData.cxx [moved from ACORDE/AliACORDECalibData.cxx with 100% similarity]
ACORDE/ACORDEbase/AliACORDECalibData.h [moved from ACORDE/AliACORDECalibData.h with 100% similarity]
ACORDE/ACORDEbase/AliACORDEConstants.cxx [moved from ACORDE/AliACORDEConstants.cxx with 100% similarity]
ACORDE/ACORDEbase/AliACORDEConstants.h [moved from ACORDE/AliACORDEConstants.h with 100% similarity]
ACORDE/ACORDEbase/AliACORDEDataDCS.cxx [moved from ACORDE/AliACORDEDataDCS.cxx with 100% similarity]
ACORDE/ACORDEbase/AliACORDEDataDCS.h [moved from ACORDE/AliACORDEDataDCS.h with 100% similarity]
ACORDE/ACORDEbase/AliACORDELoader.cxx [moved from ACORDE/AliACORDELoader.cxx with 100% similarity]
ACORDE/ACORDEbase/AliACORDELoader.h [moved from ACORDE/AliACORDELoader.h with 100% similarity]
ACORDE/ACORDEbase/AliACORDEPreprocessor.cxx [moved from ACORDE/AliACORDEPreprocessor.cxx with 100% similarity]
ACORDE/ACORDEbase/AliACORDEPreprocessor.h [moved from ACORDE/AliACORDEPreprocessor.h with 100% similarity]
ACORDE/ACORDEbase/AliACORDEQAChecker.cxx [moved from ACORDE/AliACORDEQAChecker.cxx with 100% similarity]
ACORDE/ACORDEbase/AliACORDEQAChecker.h [moved from ACORDE/AliACORDEQAChecker.h with 100% similarity]
ACORDE/ACORDEbase/AliACORDERawReader.cxx [moved from ACORDE/AliACORDERawReader.cxx with 100% similarity]
ACORDE/ACORDEbase/AliACORDERawReader.h [moved from ACORDE/AliACORDERawReader.h with 100% similarity]
ACORDE/ACORDEbase/AliACORDERawStream.cxx [moved from ACORDE/AliACORDERawStream.cxx with 100% similarity]
ACORDE/ACORDEbase/AliACORDERawStream.h [moved from ACORDE/AliACORDERawStream.h with 100% similarity]
ACORDE/ACORDEbase/AliACORDEdigit.cxx [moved from ACORDE/AliACORDEdigit.cxx with 100% similarity]
ACORDE/ACORDEbase/AliACORDEdigit.h [moved from ACORDE/AliACORDEdigit.h with 100% similarity]
ACORDE/ACORDEbase/AliGenACORDE.cxx [moved from ACORDE/AliGenACORDE.cxx with 100% similarity]
ACORDE/ACORDEbase/AliGenACORDE.h [moved from ACORDE/AliGenACORDE.h with 100% similarity]
ACORDE/ACORDEbase/CMakeLists.txt [new file with mode: 0644]
ACORDE/ACORDErec/ACORDErecLinkDef.h [moved from ACORDE/ACORDErecLinkDef.h with 100% similarity]
ACORDE/ACORDErec/AliACORDEQADataMakerRec.cxx [moved from ACORDE/AliACORDEQADataMakerRec.cxx with 100% similarity]
ACORDE/ACORDErec/AliACORDEQADataMakerRec.h [moved from ACORDE/AliACORDEQADataMakerRec.h with 100% similarity]
ACORDE/ACORDErec/AliACORDERecoParam.cxx [moved from ACORDE/AliACORDERecoParam.cxx with 100% similarity]
ACORDE/ACORDErec/AliACORDERecoParam.h [moved from ACORDE/AliACORDERecoParam.h with 100% similarity]
ACORDE/ACORDErec/AliACORDEReconstructor.cxx [moved from ACORDE/AliACORDEReconstructor.cxx with 100% similarity]
ACORDE/ACORDErec/AliACORDEReconstructor.h [moved from ACORDE/AliACORDEReconstructor.h with 100% similarity]
ACORDE/ACORDErec/CMakeLists.txt [new file with mode: 0644]
ACORDE/ACORDEsim/ACORDEsimLinkDef.h [moved from ACORDE/ACORDEsimLinkDef.h with 100% similarity]
ACORDE/ACORDEsim/AliACORDE.cxx [moved from ACORDE/AliACORDE.cxx with 100% similarity]
ACORDE/ACORDEsim/AliACORDE.h [moved from ACORDE/AliACORDE.h with 100% similarity]
ACORDE/ACORDEsim/AliACORDEDigitizer.cxx [moved from ACORDE/AliACORDEDigitizer.cxx with 100% similarity]
ACORDE/ACORDEsim/AliACORDEDigitizer.h [moved from ACORDE/AliACORDEDigitizer.h with 100% similarity]
ACORDE/ACORDEsim/AliACORDEQADataMakerSim.cxx [moved from ACORDE/AliACORDEQADataMakerSim.cxx with 100% similarity]
ACORDE/ACORDEsim/AliACORDEQADataMakerSim.h [moved from ACORDE/AliACORDEQADataMakerSim.h with 100% similarity]
ACORDE/ACORDEsim/AliACORDERawData.cxx [moved from ACORDE/AliACORDERawData.cxx with 100% similarity]
ACORDE/ACORDEsim/AliACORDERawData.h [moved from ACORDE/AliACORDERawData.h with 100% similarity]
ACORDE/ACORDEsim/AliACORDETrigger.cxx [moved from ACORDE/AliACORDETrigger.cxx with 100% similarity]
ACORDE/ACORDEsim/AliACORDETrigger.h [moved from ACORDE/AliACORDETrigger.h with 100% similarity]
ACORDE/ACORDEsim/AliACORDEhit.cxx [moved from ACORDE/AliACORDEhit.cxx with 100% similarity]
ACORDE/ACORDEsim/AliACORDEhit.h [moved from ACORDE/AliACORDEhit.h with 100% similarity]
ACORDE/ACORDEsim/AliACORDEv0.cxx [moved from ACORDE/AliACORDEv0.cxx with 100% similarity]
ACORDE/ACORDEsim/AliACORDEv0.h [moved from ACORDE/AliACORDEv0.h with 100% similarity]
ACORDE/ACORDEsim/AliACORDEv1.cxx [moved from ACORDE/AliACORDEv1.cxx with 100% similarity]
ACORDE/ACORDEsim/AliACORDEv1.h [moved from ACORDE/AliACORDEv1.h with 100% similarity]
ACORDE/ACORDEsim/CMakeLists.txt [new file with mode: 0644]
ACORDE/CMakeLists.txt
ACORDE/CMakelibACORDEbase.pkg [deleted file]
ACORDE/CMakelibACORDErec.pkg [deleted file]
ACORDE/CMakelibACORDEsim.pkg [deleted file]
CMakeLists.txt

diff --git a/ACORDE/ACORDEbase/CMakeLists.txt b/ACORDE/ACORDEbase/CMakeLists.txt
new file mode 100644 (file)
index 0000000..2d56438
--- /dev/null
@@ -0,0 +1,78 @@
+# **************************************************************************
+# * 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 ACORDEbase)
+
+# Module include folder
+include_directories(${CMAKE_SOURCE_DIR}/ACORDE/${MODULE})
+
+# Additional include folders in alphabetical order except ROOT
+include_directories(${ROOT_INCLUDE_DIRS}
+                    ${CMAKE_SOURCE_DIR}/RAW/RAWDatabase
+                    ${CMAKE_SOURCE_DIR}/RAW/RAWDatarec
+                    ${CMAKE_SOURCE_DIR}/RAW/RAWDatasim
+                    ${CMAKE_SOURCE_DIR}/STEER/CDB
+                    ${CMAKE_SOURCE_DIR}/STEER/ESD
+                    ${CMAKE_SOURCE_DIR}/STEER/STEER
+                    ${CMAKE_SOURCE_DIR}/STEER/STEERBase
+                   )
+
+# Sources in alphabetical order
+set(SRCS
+    AliACORDEAlign.cxx
+    AliACORDECalibData.cxx
+    AliACORDEConstants.cxx
+    AliACORDEDataDCS.cxx
+    AliACORDEdigit.cxx
+    AliACORDELoader.cxx
+    AliACORDEPreprocessor.cxx
+    AliACORDEQAChecker.cxx
+    AliACORDERawReader.cxx
+    AliACORDERawStream.cxx
+    AliGenACORDE.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 STEER CDB ESD RAWDatabase RAWDatarec RAWDatasim)
+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
diff --git a/ACORDE/ACORDErec/CMakeLists.txt b/ACORDE/ACORDErec/CMakeLists.txt
new file mode 100644 (file)
index 0000000..633bd3f
--- /dev/null
@@ -0,0 +1,70 @@
+# **************************************************************************
+# * 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 ACORDErec)
+
+# Module include folder
+include_directories(${CMAKE_SOURCE_DIR}/ACORDE/${MODULE})
+
+# Additional include folders in alphabetical order except ROOT
+include_directories(${ROOT_INCLUDE_DIRS}
+                    ${CMAKE_SOURCE_DIR}/ACORDE/ACORDEbase
+                    ${CMAKE_SOURCE_DIR}/ACORDE/ACORDEsim
+                    ${CMAKE_SOURCE_DIR}/RAW/RAWDatabase
+                    ${CMAKE_SOURCE_DIR}/RAW/RAWDatarec
+                    ${CMAKE_SOURCE_DIR}/STEER/ESD
+                    ${CMAKE_SOURCE_DIR}/STEER/STEER
+                    ${CMAKE_SOURCE_DIR}/STEER/STEERBase
+                   )
+
+# Sources in alphabetical order
+set(SRCS
+    AliACORDEQADataMakerRec.cxx
+    AliACORDEReconstructor.cxx
+    AliACORDERecoParam.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 STEER RAWDatabase RAWDatarec ACORDEbase ACORDEsim Graf)
+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
diff --git a/ACORDE/ACORDEsim/CMakeLists.txt b/ACORDE/ACORDEsim/CMakeLists.txt
new file mode 100644 (file)
index 0000000..a0b0b49
--- /dev/null
@@ -0,0 +1,75 @@
+# **************************************************************************
+# * 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 ACORDEsim)
+
+# Module include folder
+include_directories(${CMAKE_SOURCE_DIR}/ACORDE/${MODULE})
+
+# Additional include folders in alphabetical order except ROOT
+include_directories(${ROOT_INCLUDE_DIRS}
+                    ${CMAKE_SOURCE_DIR}/ACORDE/ACORDEbase
+                    ${CMAKE_SOURCE_DIR}/RAW/RAWDatabase
+                    ${CMAKE_SOURCE_DIR}/RAW/RAWDatarec
+                    ${CMAKE_SOURCE_DIR}/STEER/CDB
+                    ${CMAKE_SOURCE_DIR}/STEER/ESD
+                    ${CMAKE_SOURCE_DIR}/STEER/STEER
+                    ${CMAKE_SOURCE_DIR}/STEER/STEERBase
+                   )
+
+# Sources in alphabetical order
+set(SRCS
+    AliACORDE.cxx
+    AliACORDEDigitizer.cxx
+    AliACORDEhit.cxx
+    AliACORDEQADataMakerSim.cxx
+    AliACORDERawData.cxx
+    AliACORDETrigger.cxx
+    AliACORDEv0.cxx
+    AliACORDEv1.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 STEER ESD CDB RAWDatabase RAWDatarec ACORDEbase)
+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
index 01bed4f..7dd12bc 100644 (file)
@@ -1,10 +1,24 @@
-# AliRoot Build System CMakeLists for ACORDE
-#
-# 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)
+# HMPID libraries
+add_subdirectory(ACORDEbase)
+add_subdirectory(ACORDErec)
+add_subdirectory(ACORDEsim)
 
-file(GLOB PACKAGES CMake*.pkg)
+# Install the macros
+install(DIRECTORY macros DESTINATION ACORDE)
 
-ALICE_BuildModule()
+message(STATUS "ACORDE enabled")
diff --git a/ACORDE/CMakelibACORDEbase.pkg b/ACORDE/CMakelibACORDEbase.pkg
deleted file mode 100644 (file)
index b4430cb..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-# -*- mode: CMake -*-
-
-set(SRCS
-    AliACORDEConstants.cxx 
-    AliACORDECalibData.cxx 
-    AliACORDERawReader.cxx 
-    AliGenACORDE.cxx 
-    AliACORDEQAChecker.cxx 
-    AliACORDELoader.cxx 
-    AliACORDEPreprocessor.cxx 
-    AliACORDEdigit.cxx 
-    AliACORDEDataDCS.cxx 
-    AliACORDERawStream.cxx 
-    AliACORDEAlign.cxx
-    )
-
-string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
-
-set(DHDR ACORDEbaseLinkDef.h)
-
-set(EINCLUDE STEER/STEER STEER/CDB STEER/ESD STEER/STEERBase RAW)
-
-set(EXPORT AliACORDERawStream.h)
diff --git a/ACORDE/CMakelibACORDErec.pkg b/ACORDE/CMakelibACORDErec.pkg
deleted file mode 100644 (file)
index e453a24..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-# -*- mode: CMake -*-
-
-set ( SRCS
-    AliACORDEReconstructor.cxx 
-    AliACORDEQADataMakerRec.cxx 
-    AliACORDERecoParam.cxx
-    )
-
-string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
-
-set ( DHDR ACORDErecLinkDef.h)
-
-set ( EINCLUDE  STEER/STEER STEER/STEERBase RAW)
diff --git a/ACORDE/CMakelibACORDEsim.pkg b/ACORDE/CMakelibACORDEsim.pkg
deleted file mode 100644 (file)
index 4bc6de4..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-# -*- mode: CMake -*-
-
-set(SRCS 
-    AliACORDE.cxx 
-    AliACORDEv1.cxx 
-    AliACORDEhit.cxx 
-    AliACORDEDigitizer.cxx 
-    AliACORDETrigger.cxx 
-    AliACORDERawData.cxx 
-    AliACORDEQADataMakerSim.cxx 
-    AliACORDEv0.cxx
-    )
-
-string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
-
-set(DHDR ACORDEsimLinkDef.h)
-
-set(EINCLUDE STEER/STEER STEER/CDB STEER/ESD STEER/STEERBase)
index df5fd4f..79ae725 100644 (file)
@@ -87,7 +87,7 @@ add_subdirectory (HMPID)
 add_subdirectory (PMD)
 add_subdirectory (MUON)
 add_subdirectory (FMD)
-#add_subdirectory (ACORDE)
+add_subdirectory (ACORDE)
 #add_subdirectory (EMCAL)
 #add_subdirectory (PHOS)
 #add_subdirectory (TRIGGER)