ZDC module
authoragrigora <alina.grigoras@cern.ch>
Tue, 14 Oct 2014 15:53:05 +0000 (17:53 +0200)
committeragrigora <alina.grigoras@cern.ch>
Mon, 15 Dec 2014 12:51:47 +0000 (13:51 +0100)
77 files changed:
CMakeLists.txt
ZDC/CMakeLists.txt
ZDC/CMakelibZDCbase.pkg [deleted file]
ZDC/CMakelibZDCrec.pkg [deleted file]
ZDC/CMakelibZDCsim.pkg [deleted file]
ZDC/ZDCbase/AliZDCCalib.cxx [moved from ZDC/AliZDCCalib.cxx with 100% similarity]
ZDC/ZDCbase/AliZDCCalib.h [moved from ZDC/AliZDCCalib.h with 100% similarity]
ZDC/ZDCbase/AliZDCChMap.cxx [moved from ZDC/AliZDCChMap.cxx with 100% similarity]
ZDC/ZDCbase/AliZDCChMap.h [moved from ZDC/AliZDCChMap.h with 100% similarity]
ZDC/ZDCbase/AliZDCDataDCS.cxx [moved from ZDC/AliZDCDataDCS.cxx with 100% similarity]
ZDC/ZDCbase/AliZDCDataDCS.h [moved from ZDC/AliZDCDataDCS.h with 100% similarity]
ZDC/ZDCbase/AliZDCDigit.cxx [moved from ZDC/AliZDCDigit.cxx with 100% similarity]
ZDC/ZDCbase/AliZDCDigit.h [moved from ZDC/AliZDCDigit.h with 100% similarity]
ZDC/ZDCbase/AliZDCEnCalib.cxx [moved from ZDC/AliZDCEnCalib.cxx with 100% similarity]
ZDC/ZDCbase/AliZDCEnCalib.h [moved from ZDC/AliZDCEnCalib.h with 100% similarity]
ZDC/ZDCbase/AliZDCLaserCalib.cxx [moved from ZDC/AliZDCLaserCalib.cxx with 100% similarity]
ZDC/ZDCbase/AliZDCLaserCalib.h [moved from ZDC/AliZDCLaserCalib.h with 100% similarity]
ZDC/ZDCbase/AliZDCMBCalib.cxx [moved from ZDC/AliZDCMBCalib.cxx with 100% similarity]
ZDC/ZDCbase/AliZDCMBCalib.h [moved from ZDC/AliZDCMBCalib.h with 100% similarity]
ZDC/ZDCbase/AliZDCMisAligner.cxx [moved from ZDC/AliZDCMisAligner.cxx with 100% similarity]
ZDC/ZDCbase/AliZDCMisAligner.h [moved from ZDC/AliZDCMisAligner.h with 100% similarity]
ZDC/ZDCbase/AliZDCPedestals.cxx [moved from ZDC/AliZDCPedestals.cxx with 100% similarity]
ZDC/ZDCbase/AliZDCPedestals.h [moved from ZDC/AliZDCPedestals.h with 100% similarity]
ZDC/ZDCbase/AliZDCPreprocessor.cxx [moved from ZDC/AliZDCPreprocessor.cxx with 100% similarity]
ZDC/ZDCbase/AliZDCPreprocessor.h [moved from ZDC/AliZDCPreprocessor.h with 100% similarity]
ZDC/ZDCbase/AliZDCQAChecker.cxx [moved from ZDC/AliZDCQAChecker.cxx with 100% similarity]
ZDC/ZDCbase/AliZDCQAChecker.h [moved from ZDC/AliZDCQAChecker.h with 100% similarity]
ZDC/ZDCbase/AliZDCRawStream.cxx [moved from ZDC/AliZDCRawStream.cxx with 100% similarity]
ZDC/ZDCbase/AliZDCRawStream.h [moved from ZDC/AliZDCRawStream.h with 100% similarity]
ZDC/ZDCbase/AliZDCSaturationCalib.cxx [moved from ZDC/AliZDCSaturationCalib.cxx with 100% similarity]
ZDC/ZDCbase/AliZDCSaturationCalib.h [moved from ZDC/AliZDCSaturationCalib.h with 100% similarity]
ZDC/ZDCbase/AliZDCTDCCalib.cxx [moved from ZDC/AliZDCTDCCalib.cxx with 100% similarity]
ZDC/ZDCbase/AliZDCTDCCalib.h [moved from ZDC/AliZDCTDCCalib.h with 100% similarity]
ZDC/ZDCbase/AliZDCTowerCalib.cxx [moved from ZDC/AliZDCTowerCalib.cxx with 100% similarity]
ZDC/ZDCbase/AliZDCTowerCalib.h [moved from ZDC/AliZDCTowerCalib.h with 100% similarity]
ZDC/ZDCbase/CMakeLists.txt [new file with mode: 0644]
ZDC/ZDCbase/ZDCbaseLinkDef.h [moved from ZDC/ZDCbaseLinkDef.h with 100% similarity]
ZDC/ZDCrec/AliZDCQADataMakerRec.cxx [moved from ZDC/AliZDCQADataMakerRec.cxx with 100% similarity]
ZDC/ZDCrec/AliZDCQADataMakerRec.h [moved from ZDC/AliZDCQADataMakerRec.h with 100% similarity]
ZDC/ZDCrec/AliZDCReco.cxx [moved from ZDC/AliZDCReco.cxx with 100% similarity]
ZDC/ZDCrec/AliZDCReco.h [moved from ZDC/AliZDCReco.h with 100% similarity]
ZDC/ZDCrec/AliZDCRecoParam.cxx [moved from ZDC/AliZDCRecoParam.cxx with 100% similarity]
ZDC/ZDCrec/AliZDCRecoParam.h [moved from ZDC/AliZDCRecoParam.h with 100% similarity]
ZDC/ZDCrec/AliZDCRecoParamPbPb.cxx [moved from ZDC/AliZDCRecoParamPbPb.cxx with 100% similarity]
ZDC/ZDCrec/AliZDCRecoParamPbPb.h [moved from ZDC/AliZDCRecoParamPbPb.h with 100% similarity]
ZDC/ZDCrec/AliZDCRecoParampp.cxx [moved from ZDC/AliZDCRecoParampp.cxx with 100% similarity]
ZDC/ZDCrec/AliZDCRecoParampp.h [moved from ZDC/AliZDCRecoParampp.h with 100% similarity]
ZDC/ZDCrec/AliZDCReconstructor.cxx [moved from ZDC/AliZDCReconstructor.cxx with 100% similarity]
ZDC/ZDCrec/AliZDCReconstructor.h [moved from ZDC/AliZDCReconstructor.h with 100% similarity]
ZDC/ZDCrec/CMakeLists.txt [new file with mode: 0644]
ZDC/ZDCrec/ZDCrecLinkDef.h [moved from ZDC/ZDCrecLinkDef.h with 100% similarity]
ZDC/ZDCsim/AliGenZDC.cxx [moved from ZDC/AliGenZDC.cxx with 100% similarity]
ZDC/ZDCsim/AliGenZDC.h [moved from ZDC/AliGenZDC.h with 100% similarity]
ZDC/ZDCsim/AliZDC.cxx [moved from ZDC/AliZDC.cxx with 100% similarity]
ZDC/ZDCsim/AliZDC.h [moved from ZDC/AliZDC.h with 100% similarity]
ZDC/ZDCsim/AliZDCDigitizer.cxx [moved from ZDC/AliZDCDigitizer.cxx with 100% similarity]
ZDC/ZDCsim/AliZDCDigitizer.h [moved from ZDC/AliZDCDigitizer.h with 100% similarity]
ZDC/ZDCsim/AliZDCFragment.cxx [moved from ZDC/AliZDCFragment.cxx with 100% similarity]
ZDC/ZDCsim/AliZDCFragment.h [moved from ZDC/AliZDCFragment.h with 100% similarity]
ZDC/ZDCsim/AliZDCHit.cxx [moved from ZDC/AliZDCHit.cxx with 100% similarity]
ZDC/ZDCsim/AliZDCHit.h [moved from ZDC/AliZDCHit.h with 100% similarity]
ZDC/ZDCsim/AliZDCQADataMakerSim.cxx [moved from ZDC/AliZDCQADataMakerSim.cxx with 100% similarity]
ZDC/ZDCsim/AliZDCQADataMakerSim.h [moved from ZDC/AliZDCQADataMakerSim.h with 100% similarity]
ZDC/ZDCsim/AliZDCSDigit.cxx [moved from ZDC/AliZDCSDigit.cxx with 100% similarity]
ZDC/ZDCsim/AliZDCSDigit.h [moved from ZDC/AliZDCSDigit.h with 100% similarity]
ZDC/ZDCsim/AliZDCTrigger.cxx [moved from ZDC/AliZDCTrigger.cxx with 100% similarity]
ZDC/ZDCsim/AliZDCTrigger.h [moved from ZDC/AliZDCTrigger.h with 100% similarity]
ZDC/ZDCsim/AliZDCTriggerParameters.cxx [moved from ZDC/AliZDCTriggerParameters.cxx with 100% similarity]
ZDC/ZDCsim/AliZDCTriggerParameters.h [moved from ZDC/AliZDCTriggerParameters.h with 100% similarity]
ZDC/ZDCsim/AliZDCTriggerProcessor.cxx [moved from ZDC/AliZDCTriggerProcessor.cxx with 100% similarity]
ZDC/ZDCsim/AliZDCTriggerProcessor.h [moved from ZDC/AliZDCTriggerProcessor.h with 100% similarity]
ZDC/ZDCsim/AliZDCv3.cxx [moved from ZDC/AliZDCv3.cxx with 100% similarity]
ZDC/ZDCsim/AliZDCv3.h [moved from ZDC/AliZDCv3.h with 100% similarity]
ZDC/ZDCsim/AliZDCv4.cxx [moved from ZDC/AliZDCv4.cxx with 100% similarity]
ZDC/ZDCsim/AliZDCv4.h [moved from ZDC/AliZDCv4.h with 100% similarity]
ZDC/ZDCsim/CMakeLists.txt [new file with mode: 0644]
ZDC/ZDCsim/ZDCsimLinkDef.h [moved from ZDC/ZDCsimLinkDef.h with 100% similarity]

index e1ce76f..2d179c7 100644 (file)
@@ -127,7 +127,7 @@ add_subdirectory(VZERO)
 add_subdirectory (T0)
 add_subdirectory (TOF)
 add_subdirectory (TRD)
-#add_subdirectory (ZDC)
+add_subdirectory (ZDC)
 #add_subdirectory (STRUCT)
 #add_subdirectory (HMPID)
 #add_subdirectory (PMD)
index 5430215..d3af8ed 100644 (file)
@@ -1,15 +1,23 @@
-# AliRoot Build System CMakeLists for ZDC
-#
-# 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(ZDCbase)
+add_subdirectory(ZDCrec)
+add_subdirectory(ZDCsim)
 
-file(GLOB PACKAGES CMake*.pkg)
-
-ALICE_BuildModule()
-
-install ( FILES 
+install(FILES 
   GlauberMCDist.root
   GlauberMCHistos.root
   PMTGainsdata.txt
@@ -20,4 +28,6 @@ install ( FILES
   ZPASignal.root
   ZPCSignal.root
   ZPsignalntu.root
-  DESTINATION ZDC )
+  DESTINATION ZDC)
+
+message(STATUS "ZDC enabled")
diff --git a/ZDC/CMakelibZDCbase.pkg b/ZDC/CMakelibZDCbase.pkg
deleted file mode 100644 (file)
index 640051c..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-# -*- mode: CMake -*-
-
-#--------------------------------------------------------------------------------#
-# Package File for ZDCbase                                                       #
-# 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  
-    AliZDCDigit.cxx 
-    AliZDCRawStream.cxx 
-    AliZDCCalib.cxx 
-    AliZDCPedestals.cxx 
-    AliZDCLaserCalib.cxx 
-    AliZDCEnCalib.cxx 
-    AliZDCSaturationCalib.cxx 
-    AliZDCTowerCalib.cxx 
-    AliZDCMBCalib.cxx 
-    AliZDCChMap.cxx 
-    AliZDCTDCCalib.cxx 
-    AliZDCMisAligner.cxx 
-    AliZDCDataDCS.cxx 
-    AliZDCPreprocessor.cxx 
-    AliZDCQAChecker.cxx
-    )
-
-string ( REPLACE ".cxx" ".h" HDRS "${SRCS}" )
-
-set ( DHDR ZDCbaseLinkDef.h)
-
-set ( EINCLUDE RAW STEER/STEER STEER/CDB STEER/ESD STEER/STEERBase)
diff --git a/ZDC/CMakelibZDCrec.pkg b/ZDC/CMakelibZDCrec.pkg
deleted file mode 100644 (file)
index 253cf67..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-# -*- mode: CMake -*-
-
-#--------------------------------------------------------------------------------#
-# Package File for ZDCrec                                                        #
-# 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  
-    AliZDCReco.cxx 
-    AliZDCRecoParam.cxx 
-    AliZDCRecoParampp.cxx 
-    AliZDCRecoParamPbPb.cxx 
-    AliZDCReconstructor.cxx 
-    AliZDCQADataMakerRec.cxx
-    )
-
-string ( REPLACE ".cxx" ".h" HDRS "${SRCS}" )
-
-set ( DHDR ZDCrecLinkDef.h)
-
-set ( EINCLUDE RAW STEER/STEER STEER/CDB STEER/ESD STEER/STEERBase)
diff --git a/ZDC/CMakelibZDCsim.pkg b/ZDC/CMakelibZDCsim.pkg
deleted file mode 100644 (file)
index 1a7e98c..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-# -*- mode: CMake -*-
-
-#--------------------------------------------------------------------------------#
-# Package File for ZDCsim                                                        #
-# 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  
-    AliZDC.cxx 
-    AliZDCv3.cxx 
-    AliZDCv4.cxx 
-    AliGenZDC.cxx 
-    AliZDCFragment.cxx 
-    AliZDCHit.cxx 
-    AliZDCSDigit.cxx 
-    AliZDCDigitizer.cxx 
-    AliZDCQADataMakerSim.cxx 
-    AliZDCTrigger.cxx 
-    AliZDCTriggerParameters.cxx 
-    AliZDCTriggerProcessor.cxx
-    )
-
-string ( REPLACE ".cxx" ".h" HDRS "${SRCS}" )
-
-set ( DHDR ZDCsimLinkDef.h)
-
-set ( EINCLUDE RAW STEER/STEER STEER/CDB STEER/STEERBase)
similarity index 100%
rename from ZDC/AliZDCCalib.h
rename to ZDC/ZDCbase/AliZDCCalib.h
similarity index 100%
rename from ZDC/AliZDCChMap.h
rename to ZDC/ZDCbase/AliZDCChMap.h
similarity index 100%
rename from ZDC/AliZDCDigit.h
rename to ZDC/ZDCbase/AliZDCDigit.h
diff --git a/ZDC/ZDCbase/CMakeLists.txt b/ZDC/ZDCbase/CMakeLists.txt
new file mode 100644 (file)
index 0000000..c709fce
--- /dev/null
@@ -0,0 +1,94 @@
+# **************************************************************************
+# * 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 ZDCbase)
+
+# Module include folder
+include_directories(${CMAKE_SOURCE_DIR}/ZDC/${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
+                   )
+
+# Sources in alphabetical order
+set(SRCS
+    AliZDCCalib.cxx
+    AliZDCChMap.cxx
+    AliZDCDataDCS.cxx
+    AliZDCDigit.cxx
+    AliZDCEnCalib.cxx
+    AliZDCLaserCalib.cxx
+    AliZDCMBCalib.cxx
+    AliZDCMisAligner.cxx
+    AliZDCPedestals.cxx
+    AliZDCPreprocessor.cxx
+    AliZDCQAChecker.cxx
+    AliZDCRawStream.cxx
+    AliZDCSaturationCalib.cxx
+    AliZDCTDCCalib.cxx
+    AliZDCTowerCalib.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)
+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)
+
+# Check if CRS support was enabled
+if(TRD_RAW_CRC)
+    message(STATUS "CRC support for AliTRDrawStream enabled")
+    add_definitions(-DTRD_RAW_CRC)
+endif(TRD_RAW_CRC)
+
+# Check if RAW debug enabled
+if(TRD_RAW_DEBUG)
+    message(STATUS "Debug support for AliTRDrawStream enabled")
+    add_definitions(-DTRD_RAW_DEBUG)
+endif(TRD_RAW_DEBUG)
+
+
+# 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 ZDC/AliZDCReco.cxx
rename to ZDC/ZDCrec/AliZDCReco.cxx
similarity index 100%
rename from ZDC/AliZDCReco.h
rename to ZDC/ZDCrec/AliZDCReco.h
diff --git a/ZDC/ZDCrec/CMakeLists.txt b/ZDC/ZDCrec/CMakeLists.txt
new file mode 100644 (file)
index 0000000..ee1bb0b
--- /dev/null
@@ -0,0 +1,86 @@
+# **************************************************************************
+# * 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 ZDCrec)
+
+# Module include folder
+include_directories(${CMAKE_SOURCE_DIR}/ZDC/${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}/ZDC/ZDCbase
+                   )
+
+# Sources in alphabetical order
+set(SRCS
+    AliZDCQADataMakerRec.cxx
+    AliZDCReco.cxx
+    AliZDCReconstructor.cxx
+    AliZDCRecoParam.cxx
+    AliZDCRecoParamPbPb.cxx
+    AliZDCRecoParampp.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 ZDCbase)
+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)
+
+# Check if CRS support was enabled
+if(TRD_RAW_CRC)
+    message(STATUS "CRC support for AliTRDrawStream enabled")
+    add_definitions(-DTRD_RAW_CRC)
+endif(TRD_RAW_CRC)
+
+# Check if RAW debug enabled
+if(TRD_RAW_DEBUG)
+    message(STATUS "Debug support for AliTRDrawStream enabled")
+    add_definitions(-DTRD_RAW_DEBUG)
+endif(TRD_RAW_DEBUG)
+
+
+# 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 ZDC/AliGenZDC.cxx
rename to ZDC/ZDCsim/AliGenZDC.cxx
similarity index 100%
rename from ZDC/AliGenZDC.h
rename to ZDC/ZDCsim/AliGenZDC.h
similarity index 100%
rename from ZDC/AliZDC.cxx
rename to ZDC/ZDCsim/AliZDC.cxx
similarity index 100%
rename from ZDC/AliZDC.h
rename to ZDC/ZDCsim/AliZDC.h
similarity index 100%
rename from ZDC/AliZDCHit.cxx
rename to ZDC/ZDCsim/AliZDCHit.cxx
similarity index 100%
rename from ZDC/AliZDCHit.h
rename to ZDC/ZDCsim/AliZDCHit.h
similarity index 100%
rename from ZDC/AliZDCSDigit.h
rename to ZDC/ZDCsim/AliZDCSDigit.h
similarity index 100%
rename from ZDC/AliZDCv3.cxx
rename to ZDC/ZDCsim/AliZDCv3.cxx
similarity index 100%
rename from ZDC/AliZDCv3.h
rename to ZDC/ZDCsim/AliZDCv3.h
similarity index 100%
rename from ZDC/AliZDCv4.cxx
rename to ZDC/ZDCsim/AliZDCv4.cxx
similarity index 100%
rename from ZDC/AliZDCv4.h
rename to ZDC/ZDCsim/AliZDCv4.h
diff --git a/ZDC/ZDCsim/CMakeLists.txt b/ZDC/ZDCsim/CMakeLists.txt
new file mode 100644 (file)
index 0000000..bb3466b
--- /dev/null
@@ -0,0 +1,92 @@
+# **************************************************************************
+# * 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 ZDCsim)
+
+# Module include folder
+include_directories(${CMAKE_SOURCE_DIR}/ZDC/${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}/ZDC/ZDCbase
+                   )
+
+# Sources in alphabetical order
+set(SRCS
+    AliGenZDC.cxx
+    AliZDC.cxx
+    AliZDCDigitizer.cxx
+    AliZDCFragment.cxx
+    AliZDCHit.cxx
+    AliZDCQADataMakerSim.cxx
+    AliZDCSDigit.cxx
+    AliZDCTrigger.cxx
+    AliZDCTriggerParameters.cxx
+    AliZDCTriggerProcessor.cxx
+    AliZDCv3.cxx
+    AliZDCv4.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)
+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)
+
+# Check if CRS support was enabled
+if(TRD_RAW_CRC)
+    message(STATUS "CRC support for AliTRDrawStream enabled")
+    add_definitions(-DTRD_RAW_CRC)
+endif(TRD_RAW_CRC)
+
+# Check if RAW debug enabled
+if(TRD_RAW_DEBUG)
+    message(STATUS "Debug support for AliTRDrawStream enabled")
+    add_definitions(-DTRD_RAW_DEBUG)
+endif(TRD_RAW_DEBUG)
+
+
+# Installation
+install(TARGETS ${MODULE}
+        ARCHIVE DESTINATION lib
+        LIBRARY DESTINATION lib)
+
+install(FILES ${HDRS} DESTINATION include)
\ No newline at end of file