]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
VZERO module
authoragrigora <alina.grigoras@cern.ch>
Tue, 14 Oct 2014 09:08:50 +0000 (11:08 +0200)
committeragrigora <alina.grigoras@cern.ch>
Mon, 15 Dec 2014 12:51:46 +0000 (13:51 +0100)
62 files changed:
CMakeLists.txt
VZERO/CMakeLists.txt
VZERO/CMakelibVZERObase.pkg [deleted file]
VZERO/CMakelibVZEROrec.pkg [deleted file]
VZERO/CMakelibVZEROsim.pkg [deleted file]
VZERO/VZERObase/AliVZEROCalibData.cxx [moved from VZERO/AliVZEROCalibData.cxx with 100% similarity]
VZERO/VZERObase/AliVZEROCalibData.h [moved from VZERO/AliVZEROCalibData.h with 100% similarity]
VZERO/VZERObase/AliVZEROConst.h [moved from VZERO/AliVZEROConst.h with 100% similarity]
VZERO/VZERObase/AliVZERODataDCS.cxx [moved from VZERO/AliVZERODataDCS.cxx with 100% similarity]
VZERO/VZERObase/AliVZERODataDCS.h [moved from VZERO/AliVZERODataDCS.h with 100% similarity]
VZERO/VZERObase/AliVZERODataFEE.cxx [moved from VZERO/AliVZERODataFEE.cxx with 100% similarity]
VZERO/VZERObase/AliVZERODataFEE.h [moved from VZERO/AliVZERODataFEE.h with 100% similarity]
VZERO/VZERObase/AliVZEROLoader.cxx [moved from VZERO/AliVZEROLoader.cxx with 100% similarity]
VZERO/VZERObase/AliVZEROLoader.h [moved from VZERO/AliVZEROLoader.h with 100% similarity]
VZERO/VZERObase/AliVZEROLogicalSignal.cxx [moved from VZERO/AliVZEROLogicalSignal.cxx with 100% similarity]
VZERO/VZERObase/AliVZEROLogicalSignal.h [moved from VZERO/AliVZEROLogicalSignal.h with 98% similarity]
VZERO/VZERObase/AliVZEROMisAligner.cxx [moved from VZERO/AliVZEROMisAligner.cxx with 100% similarity]
VZERO/VZERObase/AliVZEROMisAligner.h [moved from VZERO/AliVZEROMisAligner.h with 100% similarity]
VZERO/VZERObase/AliVZEROPreprocessor.cxx [moved from VZERO/AliVZEROPreprocessor.cxx with 100% similarity]
VZERO/VZERObase/AliVZEROPreprocessor.h [moved from VZERO/AliVZEROPreprocessor.h with 100% similarity]
VZERO/VZERObase/AliVZEROQAChecker.cxx [moved from VZERO/AliVZEROQAChecker.cxx with 100% similarity]
VZERO/VZERObase/AliVZEROQAChecker.h [moved from VZERO/AliVZEROQAChecker.h with 100% similarity]
VZERO/VZERObase/AliVZEROSDigit.cxx [moved from VZERO/AliVZEROSDigit.cxx with 100% similarity]
VZERO/VZERObase/AliVZEROSDigit.h [moved from VZERO/AliVZEROSDigit.h with 100% similarity]
VZERO/VZERObase/AliVZEROTrending.cxx [moved from VZERO/AliVZEROTrending.cxx with 100% similarity]
VZERO/VZERObase/AliVZEROTrending.h [moved from VZERO/AliVZEROTrending.h with 100% similarity]
VZERO/VZERObase/AliVZEROTriggerData.cxx [moved from VZERO/AliVZEROTriggerData.cxx with 100% similarity]
VZERO/VZERObase/AliVZEROTriggerData.h [moved from VZERO/AliVZEROTriggerData.h with 100% similarity]
VZERO/VZERObase/AliVZEROTriggerSimulator.cxx [moved from VZERO/AliVZEROTriggerSimulator.cxx with 100% similarity]
VZERO/VZERObase/AliVZEROTriggerSimulator.h [moved from VZERO/AliVZEROTriggerSimulator.h with 100% similarity]
VZERO/VZERObase/AliVZEROdigit.cxx [moved from VZERO/AliVZEROdigit.cxx with 100% similarity]
VZERO/VZERObase/AliVZEROdigit.h [moved from VZERO/AliVZEROdigit.h with 100% similarity]
VZERO/VZERObase/CMakeLists.txt [new file with mode: 0644]
VZERO/VZERObase/VZERObaseLinkDef.h [moved from VZERO/VZERObaseLinkDef.h with 100% similarity]
VZERO/VZEROrec/AliVZEROQADataMakerRec.cxx [moved from VZERO/AliVZEROQADataMakerRec.cxx with 100% similarity]
VZERO/VZEROrec/AliVZEROQADataMakerRec.h [moved from VZERO/AliVZEROQADataMakerRec.h with 100% similarity]
VZERO/VZEROrec/AliVZERORawStream.cxx [moved from VZERO/AliVZERORawStream.cxx with 100% similarity]
VZERO/VZEROrec/AliVZERORawStream.h [moved from VZERO/AliVZERORawStream.h with 100% similarity]
VZERO/VZEROrec/AliVZERORecoParam.cxx [moved from VZERO/AliVZERORecoParam.cxx with 100% similarity]
VZERO/VZEROrec/AliVZERORecoParam.h [moved from VZERO/AliVZERORecoParam.h with 100% similarity]
VZERO/VZEROrec/AliVZEROReconstructor.cxx [moved from VZERO/AliVZEROReconstructor.cxx with 100% similarity]
VZERO/VZEROrec/AliVZEROReconstructor.h [moved from VZERO/AliVZEROReconstructor.h with 100% similarity]
VZERO/VZEROrec/AliVZEROTrigger.cxx [moved from VZERO/AliVZEROTrigger.cxx with 100% similarity]
VZERO/VZEROrec/AliVZEROTrigger.h [moved from VZERO/AliVZEROTrigger.h with 100% similarity]
VZERO/VZEROrec/AliVZEROTriggerMask.cxx [moved from VZERO/AliVZEROTriggerMask.cxx with 100% similarity]
VZERO/VZEROrec/AliVZEROTriggerMask.h [moved from VZERO/AliVZEROTriggerMask.h with 100% similarity]
VZERO/VZEROrec/CMakeLists.txt [new file with mode: 0644]
VZERO/VZEROrec/VZEROrecLinkDef.h [moved from VZERO/VZEROrecLinkDef.h with 100% similarity]
VZERO/VZEROsim/AliVZERO.cxx [moved from VZERO/AliVZERO.cxx with 100% similarity]
VZERO/VZEROsim/AliVZERO.h [moved from VZERO/AliVZERO.h with 100% similarity]
VZERO/VZEROsim/AliVZEROBuffer.cxx [moved from VZERO/AliVZEROBuffer.cxx with 100% similarity]
VZERO/VZEROsim/AliVZEROBuffer.h [moved from VZERO/AliVZEROBuffer.h with 100% similarity]
VZERO/VZEROsim/AliVZERODigitizer.cxx [moved from VZERO/AliVZERODigitizer.cxx with 100% similarity]
VZERO/VZEROsim/AliVZERODigitizer.h [moved from VZERO/AliVZERODigitizer.h with 100% similarity]
VZERO/VZEROsim/AliVZEROQADataMakerSim.cxx [moved from VZERO/AliVZEROQADataMakerSim.cxx with 100% similarity]
VZERO/VZEROsim/AliVZEROQADataMakerSim.h [moved from VZERO/AliVZEROQADataMakerSim.h with 100% similarity]
VZERO/VZEROsim/AliVZEROhit.cxx [moved from VZERO/AliVZEROhit.cxx with 100% similarity]
VZERO/VZEROsim/AliVZEROhit.h [moved from VZERO/AliVZEROhit.h with 100% similarity]
VZERO/VZEROsim/AliVZEROv7.cxx [moved from VZERO/AliVZEROv7.cxx with 100% similarity]
VZERO/VZEROsim/AliVZEROv7.h [moved from VZERO/AliVZEROv7.h with 100% similarity]
VZERO/VZEROsim/CMakeLists.txt [new file with mode: 0644]
VZERO/VZEROsim/VZEROsimLinkDef.h [moved from VZERO/VZEROsimLinkDef.h with 100% similarity]

index 7e1b94496a4a7cd398c5f1ba16587c74eef01f88..8a51e91ebe6f6a83b94fbbb8d89bd3a8a8707f7f 100644 (file)
@@ -116,14 +116,14 @@ message(STATUS "Installation folder: ${CMAKE_INSTALL_PREFIX}")
 
 
 # AliRoot modules
-add_subdirectory (STEER)
-add_subdirectory (STAT)
-add_subdirectory (OADB)
-add_subdirectory (ANALYSIS)
-add_subdirectory (RAW)
-add_subdirectory (ITS)
-add_subdirectory (TPC)
-#add_subdirectory (VZERO)
+add_subdirectory(STEER)
+add_subdirectory(STAT)
+add_subdirectory(OADB)
+add_subdirectory(ANALYSIS)
+add_subdirectory(RAW)
+add_subdirectory(ITS)
+add_subdirectory(TPC)
+add_subdirectory(VZERO)
 #add_subdirectory (T0)
 #add_subdirectory (TOF)
 #add_subdirectory (TRD)
index 785f6c5eb564c1ca9ee010a2795faf07bbc27d2d..de260db4e7321be806a717b56d5050f78cfa9e5a 100644 (file)
@@ -1,10 +1,20 @@
-# AliRoot Build System CMakeLists for VZERO
-#
-# 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(VZERObase)
+add_subdirectory(VZEROrec)
+add_subdirectory(VZEROsim)
 
-file(GLOB PACKAGES CMake*.pkg)
-
-ALICE_BuildModule()
+message(STATUS "VZERO enabled")
diff --git a/VZERO/CMakelibVZERObase.pkg b/VZERO/CMakelibVZERObase.pkg
deleted file mode 100644 (file)
index daf08e4..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-# -*- mode: CMake -*- 
-#--------------------------------------------------------------------------------#
-# Package File for VZERObase                                                     #
-# Author : Johny Jose (johny.jose@cern.ch)                                       #
-# Variables Defined :                                                            #
-#                                                                                #
-# SRCS - C++ source files                                                        #
-# HDRS - C++ header files                                                        #
-# DHDR - ROOT Dictionary Linkdef header file                                     #
-# CSRCS - C source files                                                         #
-# CHDRS - C header files                                                         #
-# EINCLUDE - Include directories                                                 #
-# EDEFINE - Compiler definitions                                                 #
-# ELIBS - Extra libraries to link                                                #
-# ELIBSDIR - Extra library directories                                           #
-# PACKFFLAGS - Fortran compiler flags for package                                #
-# PACKCXXFLAGS - C++ compiler flags for package                                  #
-# PACKCFLAGS - C compiler flags for package                                      #
-# PACKSOFLAGS - Shared library linking flags                                     #
-# PACKLDFLAGS - Module linker flags                                              #
-# PACKBLIBS - Libraries to link (Executables only)                               #
-# EXPORT - Header files to be exported                                           #
-# CINTHDRS - Dictionary header files                                             #
-# CINTAUTOLINK - Set automatic dictionary generation                             #
-# ARLIBS - Archive Libraries and objects for linking (Executables only)          #
-# SHLIBS - Shared Libraries and objects for linking (Executables only)           #
-#--------------------------------------------------------------------------------#
-
-set ( SRCS  
-    AliVZEROLoader.cxx 
-    AliVZEROdigit.cxx 
-    AliVZEROSDigit.cxx 
-    AliVZEROCalibData.cxx 
-    AliVZEROPreprocessor.cxx 
-    AliVZERODataDCS.cxx 
-    AliVZEROQAChecker.cxx 
-    AliVZEROMisAligner.cxx 
-    AliVZEROLogicalSignal.cxx 
-    AliVZEROTrending.cxx 
-    AliVZERODataFEE.cxx 
-    AliVZEROTriggerSimulator.cxx 
-    AliVZEROTriggerData.cxx 
-    )
-
-string ( REPLACE ".cxx" ".h" HDRS "${SRCS}" )
-
-set ( DHDR VZERObaseLinkDef.h)
-
-set ( EINCLUDE  STRUCT RAW STEER/STEER STEER/CDB STEER/STEERBase)
-
-set ( EXPORT AliVZEROdigit.h)
diff --git a/VZERO/CMakelibVZEROrec.pkg b/VZERO/CMakelibVZEROrec.pkg
deleted file mode 100644 (file)
index cea1592..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-# -*- mode: CMake -*- 
-#--------------------------------------------------------------------------------#
-# Package File for VZEROrec                                                      #
-# Author : Johny Jose (johny.jose@cern.ch)                                       #
-# Variables Defined :                                                            #
-#                                                                                #
-# SRCS - C++ source files                                                        #
-# HDRS - C++ header files                                                        #
-# DHDR - ROOT Dictionary Linkdef header file                                     #
-# CSRCS - C source files                                                         #
-# CHDRS - C header files                                                         #
-# EINCLUDE - Include directories                                                 #
-# EDEFINE - Compiler definitions                                                 #
-# ELIBS - Extra libraries to link                                                #
-# ELIBSDIR - Extra library directories                                           #
-# PACKFFLAGS - Fortran compiler flags for package                                #
-# PACKCXXFLAGS - C++ compiler flags for package                                  #
-# PACKCFLAGS - C compiler flags for package                                      #
-# PACKSOFLAGS - Shared library linking flags                                     #
-# PACKLDFLAGS - Module linker flags                                              #
-# PACKBLIBS - Libraries to link (Executables only)                               #
-# EXPORT - Header files to be exported                                           #
-# CINTHDRS - Dictionary header files                                             #
-# CINTAUTOLINK - Set automatic dictionary generation                             #
-# ARLIBS - Archive Libraries and objects for linking (Executables only)          #
-# SHLIBS - Shared Libraries and objects for linking (Executables only)           #
-#--------------------------------------------------------------------------------#
-
-set ( SRCS  
-    AliVZEROReconstructor.cxx 
-    AliVZERORawStream.cxx 
-    AliVZEROQADataMakerRec.cxx 
-    AliVZEROTrigger.cxx 
-    AliVZEROTriggerMask.cxx 
-    AliVZERORecoParam.cxx 
-    )
-
-string ( REPLACE ".cxx" ".h" HDRS "${SRCS}" )
-
-set ( DHDR VZEROrecLinkDef.h)
-
-set ( EINCLUDE  STRUCT RAW STEER/STEER STEER/CDB STEER/ESD STEER/STEERBase)
diff --git a/VZERO/CMakelibVZEROsim.pkg b/VZERO/CMakelibVZEROsim.pkg
deleted file mode 100644 (file)
index d1fb141..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-# -*- mode: CMake -*- 
-#--------------------------------------------------------------------------------#
-# Package File for VZEROsim                                                      #
-# Author : Johny Jose (johny.jose@cern.ch)                                       #
-# Variables Defined :                                                            #
-#                                                                                #
-# SRCS - C++ source files                                                        #
-# HDRS - C++ header files                                                        #
-# DHDR - ROOT Dictionary Linkdef header file                                     #
-# CSRCS - C source files                                                         #
-# CHDRS - C header files                                                         #
-# EINCLUDE - Include directories                                                 #
-# EDEFINE - Compiler definitions                                                 #
-# ELIBS - Extra libraries to link                                                #
-# ELIBSDIR - Extra library directories                                           #
-# PACKFFLAGS - Fortran compiler flags for package                                #
-# PACKCXXFLAGS - C++ compiler flags for package                                  #
-# PACKCFLAGS - C compiler flags for package                                      #
-# PACKSOFLAGS - Shared library linking flags                                     #
-# PACKLDFLAGS - Module linker flags                                              #
-# PACKBLIBS - Libraries to link (Executables only)                               #
-# EXPORT - Header files to be exported                                           #
-# CINTHDRS - Dictionary header files                                             #
-# CINTAUTOLINK - Set automatic dictionary generation                             #
-# ARLIBS - Archive Libraries and objects for linking (Executables only)          #
-# SHLIBS - Shared Libraries and objects for linking (Executables only)           #
-#--------------------------------------------------------------------------------#
-
-set ( SRCS  
-    AliVZERO.cxx 
-    AliVZEROv7.cxx 
-    AliVZEROhit.cxx 
-    AliVZERODigitizer.cxx 
-    AliVZEROBuffer.cxx 
-    AliVZEROQADataMakerSim.cxx
-    )
-
-string ( REPLACE ".cxx" ".h" HDRS "${SRCS}" )
-
-set ( DHDR VZEROsimLinkDef.h)
-
-set ( EINCLUDE  STRUCT RAW STEER/STEER STEER/STEERBase)
similarity index 98%
rename from VZERO/AliVZEROLogicalSignal.h
rename to VZERO/VZERObase/AliVZEROLogicalSignal.h
index 3e39e92aa61abfda685a417ff847f1670130c8e9..ebcab2f8ffe7a2b5f0f9aefb814e0cc1efc4141c 100644 (file)
@@ -17,6 +17,7 @@
 
 
 #include <TObject.h>
+#include <AliLog.h>
 
 class AliVZEROLogicalSignal  : public TObject {
 public:
diff --git a/VZERO/VZERObase/CMakeLists.txt b/VZERO/VZERObase/CMakeLists.txt
new file mode 100644 (file)
index 0000000..3b23f46
--- /dev/null
@@ -0,0 +1,77 @@
+# **************************************************************************
+# * 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 VZERObase)
+
+# Module include folder
+include_directories(${CMAKE_SOURCE_DIR}/VZERO/${MODULE})
+
+# Additional include folders in alphabetical order except ROOT
+include_directories(${ROOT_INCLUDE_DIRS}
+                    ${CMAKE_SOURCE_DIR}/STEER/CDB
+                    ${CMAKE_SOURCE_DIR}/STEER/STEER
+                    ${CMAKE_SOURCE_DIR}/STEER/STEERBase
+                    ${CMAKE_SOURCE_DIR}/VZERO/VZEROrec
+                   )
+
+# Sources in alphabetical order
+set(SRCS
+    AliVZEROCalibData.cxx
+    AliVZERODataDCS.cxx
+    AliVZERODataFEE.cxx
+    AliVZEROdigit.cxx
+    AliVZEROLoader.cxx
+    AliVZEROLogicalSignal.cxx
+    AliVZEROMisAligner.cxx
+    AliVZEROPreprocessor.cxx
+    AliVZEROQAChecker.cxx
+    AliVZEROSDigit.cxx
+    AliVZEROTrending.cxx
+    AliVZEROTriggerData.cxx
+    AliVZEROTriggerSimulator.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 VZEROrec)
+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/VZERO/VZEROrec/CMakeLists.txt b/VZERO/VZEROrec/CMakeLists.txt
new file mode 100644 (file)
index 0000000..2c278b1
--- /dev/null
@@ -0,0 +1,74 @@
+# **************************************************************************
+# * 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 VZEROrec)
+
+# Module include folder
+include_directories(${CMAKE_SOURCE_DIR}/VZERO/${MODULE})
+
+# Additional include folders in alphabetical order except ROOT
+include_directories(${ROOT_INCLUDE_DIRS}
+                    ${CMAKE_SOURCE_DIR}/RAW/dateStream
+                    ${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
+                    ${CMAKE_SOURCE_DIR}/VZERO/VZERObase
+                   )
+
+# Sources in alphabetical order
+set(SRCS
+    AliVZEROQADataMakerRec.cxx
+    AliVZERORawStream.cxx
+    AliVZEROReconstructor.cxx
+    AliVZERORecoParam.cxx
+    AliVZEROTrigger.cxx
+    AliVZEROTriggerMask.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 VZERObase)
+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
similarity index 100%
rename from VZERO/AliVZERO.h
rename to VZERO/VZEROsim/AliVZERO.h
diff --git a/VZERO/VZEROsim/CMakeLists.txt b/VZERO/VZEROsim/CMakeLists.txt
new file mode 100644 (file)
index 0000000..5cb7e53
--- /dev/null
@@ -0,0 +1,74 @@
+# **************************************************************************
+# * 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 VZEROsim)
+
+# Module include folder
+include_directories(${CMAKE_SOURCE_DIR}/VZERO/${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}/STEER/CDB
+                    ${CMAKE_SOURCE_DIR}/STEER/ESD
+                    ${CMAKE_SOURCE_DIR}/STEER/STEER
+                    ${CMAKE_SOURCE_DIR}/STEER/STEERBase
+                    ${CMAKE_SOURCE_DIR}/VZERO/VZERObase
+                    ${CMAKE_SOURCE_DIR}/VZERO/VZEROrec
+                   )
+
+# Sources in alphabetical order
+set(SRCS
+    AliVZEROBuffer.cxx
+    AliVZERO.cxx
+    AliVZERODigitizer.cxx
+    AliVZEROhit.cxx
+    AliVZEROQADataMakerSim.cxx
+    AliVZEROv7.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 VZERObase VZEROrec)
+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