PWGLFspectraJET, PWGLFSTRANGENESS, PWGLFspectra and PWGLFthermalfits converted to...
authorhristov <Peter.Hristov@cern.ch>
Thu, 4 Dec 2014 14:13:20 +0000 (15:13 +0100)
committeragrigora <alina.grigoras@cern.ch>
Mon, 15 Dec 2014 12:52:06 +0000 (13:52 +0100)
12 files changed:
PWGLF/CMakeLists.txt
PWGLF/CMakelibPWGLFSTRANGENESS.pkg [deleted file]
PWGLF/CMakelibPWGLFspectraJET.pkg [deleted file]
PWGLF/CMakelibPWGLFthermalfits.pkg [deleted file]
PWGLF/STRANGENESS/CMakeLists.txt [new file with mode: 0644]
PWGLF/STRANGENESS/PWGLFSTRANGENESSLinkDef.h [moved from PWGLF/PWGLFSTRANGENESSLinkDef.h with 100% similarity]
PWGLF/ThermalFits/CMakeLists.txt [new file with mode: 0644]
PWGLF/ThermalFits/PWGLFthermalfitsLinkDef.h [moved from PWGLF/PWGLFthermalfitsLinkDef.h with 100% similarity]
PWGLF/spectraJET/AliAnalysisTaskJetSpectraAOD.cxx [moved from PWGLF/SPECTRA/PiKaPr/TestAOD/AliAnalysisTaskJetSpectraAOD.cxx with 100% similarity]
PWGLF/spectraJET/AliAnalysisTaskJetSpectraAOD.h [moved from PWGLF/SPECTRA/PiKaPr/TestAOD/AliAnalysisTaskJetSpectraAOD.h with 100% similarity]
PWGLF/spectraJET/CMakeLists.txt [new file with mode: 0644]
PWGLF/spectraJET/PWGLFspectraJETLinkDef.h [moved from PWGLF/PWGLFspectraJETLinkDef.h with 100% similarity]

index 06dff75..3d0e2f0 100644 (file)
@@ -15,5 +15,8 @@
 
 # Include the libraries
 add_subdirectory (SPECTRA)
+add_subdirectory (spectraJET)
+add_subdirectory (STRANGENESS)
+add_subdirectory (ThermalFits)
 
 message(STATUS "PWGLF enabled")
diff --git a/PWGLF/CMakelibPWGLFSTRANGENESS.pkg b/PWGLF/CMakelibPWGLFSTRANGENESS.pkg
deleted file mode 100644 (file)
index 838174f..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-# -*- mode: CMake -*-
-#-----------------------------------------------------------------------#
-# Package File for PWG2spectra                                          #
-# 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  
-  STRANGENESS/Cascades/AliAnalysisTaskCheckCascade.cxx
-  STRANGENESS/Cascades/AliAnalysisTaskCheckCascadePbPb.cxx
-  STRANGENESS/Cascades/AliAnalysisTaskCheckPerformanceCascade.cxx
-  STRANGENESS/Cascades/AliAnalysisTaskCheckPerformanceCascadePbPb.cxx
-  STRANGENESS/LambdaK0PbPb/AliAnalysisCentralitySelector.cxx
-  STRANGENESS/LambdaK0PbPb/AliAnalysisTaskCTauPbPb.cxx
-  STRANGENESS/LambdaK0PbPb/AliAnalysisTaskCTauPbPbaod.cxx
-  STRANGENESS/LambdaK0PbPb/AliAnalysisTaskLukeAOD.cxx
-  STRANGENESS/LambdaK0PbPb/AliAnalysisTaskLukeV0.cxx
-  STRANGENESS/LambdaK0PbPb/AliAnalysisTaskPerformanceStrange.cxx
-  STRANGENESS/LambdaK0PbPb/AliAnalysisTaskV0ForRAA.cxx
-  STRANGENESS/LambdaK0/AliAnalysisTaskExtractV0.cxx
-  STRANGENESS/LambdaK0/AliAnalysisTaskExtractV0pPb.cxx
-  STRANGENESS/LambdaK0/AliAnalysisTaskExtractV0AOD.cxx
-  STRANGENESS/LambdaK0/AliAnalysisTaskExtractPerformanceV0.cxx
-  STRANGENESS/LambdaK0/AliAnalysisTaskExtractPerformanceV0pPb.cxx
-  STRANGENESS/LambdaK0PbPb/AliAnalysisTaskLK0Spectra.cxx
-  STRANGENESS/Cascades/AliAnalysisTaskExtractCascade.cxx
-  STRANGENESS/Cascades/AliAnalysisTaskExtractPerformanceCascade.cxx
-  STRANGENESS/Cascades/AliAnalysisTaskStrangenessVsMultiplicity.cxx
-  STRANGENESS/Cascades/AliAnalysisTaskStrangenessVsMultiplicityMC.cxx
-  STRANGENESS/Correlations/AliAnalysisTaskLambdaOverK0sJets.cxx
-  STRANGENESS/Correlations/AliAnalysisTaskV0ChCorrelations.cxx
-  STRANGENESS/Cascades/AliAnalysisTaskCheckCascadepp276.cxx
-  STRANGENESS/Cascades/AliAnalysisTaskCheckPerformanceCascadepp276.cxx
-  STRANGENESS/Hypernuclei/AliAnalysisTaskLambdaNAOD.cxx
-  STRANGENESS/Hypernuclei/AliAnalysisTaskHdibaryonLPpi.cxx
-  STRANGENESS/Hypernuclei/AliAnalysisTaskHelium3Pi.cxx
-  STRANGENESS/Hypernuclei/AliAnalysisTaskHelium3PiAOD.cxx
-  STRANGENESS/Hypernuclei/AliAnalysisTaskHelium3PiMC.cxx
-  STRANGENESS/Hypernuclei/AliAODRecoDecayLF.cxx
-  STRANGENESS/Hypernuclei/AliAODRecoDecayLF2Prong.cxx
-  STRANGENESS/Hypernuclei/AliAODNuclExReplicator.cxx
-  STRANGENESS/Hypernuclei/AliAnalysisTaskESDNuclExFilter.cxx
-  STRANGENESS/Hypernuclei/AliAODMCNuclExReplicator.cxx
-  STRANGENESS/Hypernuclei/AliAnalysisTaskESDNuclExFilterMC.cxx
-  STRANGENESS/Hypernuclei/AliAnalysisTaskReadNuclexAOD.cxx
-  STRANGENESS/Hypernuclei/AliAnalysisTaskAntiHe4.cxx
-  STRANGENESS/Hypernuclei/AliAnalysisTaskNucleiv2.cxx
-  STRANGENESS/Hypernuclei/AliAnalysisTaskNucleiv2SP.cxx
-  STRANGENESS/Cascades/lightvertexers/AliLightV0vertexer.cxx
-  STRANGENESS/Cascades/lightvertexers/AliLightCascadeVertexer.cxx
-)
-
-string ( REPLACE ".cxx" ".h" HDRS "${SRCS}" )
-
-set ( DHDR PWGLFSTRANGENESSLinkDef.h)
-
-set ( EXPORT )
-
-set ( EINCLUDE  PWGLF/STRANGENESS/Cascades PWGLF/STRANGENESS/LambdaK0 PWGLF/STRANGENESS/LambdaK0PbPb PWGLF/STRANGENESS/Correlations PWGLF/STRANGENESS/Hypernuclei PWGCF/Correlations/Base STEER/ESD STEER/AOD STEER/STEERBase ANALYSIS PWG/FLOW/Base PWG/FLOW/Tasks PWGLF/STRANGENESS/Cascades/lightvertexers)
-
-#install (DIRECTORY PWGLF/STRANGENESS/Cascades/macros
-#         DESTINATION PWGLF/STRANGENESS 
-#         PATTERN .svn EXCLUDE)
-#
-# EOF
-#
diff --git a/PWGLF/CMakelibPWGLFspectraJET.pkg b/PWGLF/CMakelibPWGLFspectraJET.pkg
deleted file mode 100644 (file)
index 9351b55..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-# -*- mode: CMake -*-
-#--------------------------------------------------------------------------------#
-# Package File for PWGLFresonances                                                #
-# 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 
-        SPECTRA/PiKaPr/TestAOD/AliAnalysisTaskJetSpectraAOD.cxx
- )
-
-string ( REPLACE ".cxx" ".h" HDRS "${SRCS}" )
-
-set ( DHDR PWGLFspectraJETLinkDef.h)
-
-set ( EXPORT )
-
-set ( EINCLUDE  PWGLF/SPECTRA/PiKaPr/TestAOD TPC TOF STEER/STEER STEER/ESD STEER/AOD STEER/CDB STEER/STEERBase ANALYSIS ANALYSIS/ESDfilter)
diff --git a/PWGLF/CMakelibPWGLFthermalfits.pkg b/PWGLF/CMakelibPWGLFthermalfits.pkg
deleted file mode 100644 (file)
index 7ed9da0..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-# -*- mode: CMake -*-
-#--------------------------------------------------------------------------------#
-# Package File for PWGLFresonances                                                #
-# 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 ThermalFits/AliParticleYield.cxx
- )
-
-string ( REPLACE ".cxx" ".h" HDRS "${SRCS}" )
-
-set ( DHDR PWGLFthermalfitsLinkDef.h)
-
-set ( EXPORT )
-
-set ( EINCLUDE  PWGLF/SPECTRA/Nuclei/B2 PWGLF/SPECTRA/PiKaPr/TPCTOF PWGLF/SPECTRA/PiKaPr/TPCTOFpA PWGLF/SPECTRA/PiKaPr/TOF/pp7 PWGLF/SPECTRA/ChargedHadrons/dNdPt TPC TOF PWGUD/base STEER/STEER STEER/ESD STEER/AOD STEER/CDB STEER/STEERBase ANALYSIS)
diff --git a/PWGLF/STRANGENESS/CMakeLists.txt b/PWGLF/STRANGENESS/CMakeLists.txt
new file mode 100644 (file)
index 0000000..98df6eb
--- /dev/null
@@ -0,0 +1,114 @@
+# **************************************************************************
+# * 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 PWGLFSTRANGENESS)
+
+# Module include folder
+include_directories(${AliRoot_SOURCE_DIR}/PWGLF/STRANGENESS)
+
+# Additional includes - alphabetical order except ROOT
+include_directories(${ROOT_INCLUDE_DIRS}
+                    ${AliRoot_SOURCE_DIR}/ANALYSIS/ANALYSIS
+                    ${AliRoot_SOURCE_DIR}/ANALYSIS/ANALYSISalice
+                    ${AliRoot_SOURCE_DIR}/ANALYSIS/EventMixing
+                    ${AliRoot_SOURCE_DIR}/CORRFW
+                    ${AliRoot_SOURCE_DIR}/PWGCF/Correlations/Base
+                    ${AliRoot_SOURCE_DIR}/PWGLF/STRANGENESS/Cascades/lightvertexers
+                    ${AliRoot_SOURCE_DIR}/PWGLF/STRANGENESS/Hypernuclei
+                    ${AliRoot_SOURCE_DIR}/PWGUD/base
+                    ${AliRoot_SOURCE_DIR}/STEER/AOD
+                    ${AliRoot_SOURCE_DIR}/STEER/ESD
+                    ${AliRoot_SOURCE_DIR}/STEER/STEERBase
+  )
+
+# Sources - alphabetical order
+set(SRCS
+  Cascades/AliAnalysisTaskCheckCascade.cxx
+  Cascades/AliAnalysisTaskCheckCascadePbPb.cxx
+  Cascades/AliAnalysisTaskCheckPerformanceCascade.cxx
+  Cascades/AliAnalysisTaskCheckPerformanceCascadePbPb.cxx
+  LambdaK0PbPb/AliAnalysisCentralitySelector.cxx
+  LambdaK0PbPb/AliAnalysisTaskCTauPbPb.cxx
+  LambdaK0PbPb/AliAnalysisTaskCTauPbPbaod.cxx
+  LambdaK0PbPb/AliAnalysisTaskLukeAOD.cxx
+  LambdaK0PbPb/AliAnalysisTaskLukeV0.cxx
+  LambdaK0PbPb/AliAnalysisTaskPerformanceStrange.cxx
+  LambdaK0PbPb/AliAnalysisTaskV0ForRAA.cxx
+  LambdaK0/AliAnalysisTaskExtractV0.cxx
+  LambdaK0/AliAnalysisTaskExtractV0pPb.cxx
+  LambdaK0/AliAnalysisTaskExtractV0AOD.cxx
+  LambdaK0/AliAnalysisTaskExtractPerformanceV0.cxx
+  LambdaK0/AliAnalysisTaskExtractPerformanceV0pPb.cxx
+  LambdaK0PbPb/AliAnalysisTaskLK0Spectra.cxx
+  Cascades/AliAnalysisTaskExtractCascade.cxx
+  Cascades/AliAnalysisTaskExtractPerformanceCascade.cxx
+  Cascades/AliAnalysisTaskStrangenessVsMultiplicity.cxx
+  Cascades/AliAnalysisTaskStrangenessVsMultiplicityMC.cxx
+  Correlations/AliAnalysisTaskLambdaOverK0sJets.cxx
+  Correlations/AliAnalysisTaskV0ChCorrelations.cxx
+  Cascades/AliAnalysisTaskCheckCascadepp276.cxx
+  Cascades/AliAnalysisTaskCheckPerformanceCascadepp276.cxx
+  Hypernuclei/AliAnalysisTaskLambdaNAOD.cxx
+  Hypernuclei/AliAnalysisTaskHdibaryonLPpi.cxx
+  Hypernuclei/AliAnalysisTaskHelium3Pi.cxx
+  Hypernuclei/AliAnalysisTaskHelium3PiAOD.cxx
+  Hypernuclei/AliAnalysisTaskHelium3PiMC.cxx
+  Hypernuclei/AliAODRecoDecayLF.cxx
+  Hypernuclei/AliAODRecoDecayLF2Prong.cxx
+  Hypernuclei/AliAODNuclExReplicator.cxx
+  Hypernuclei/AliAnalysisTaskESDNuclExFilter.cxx
+  Hypernuclei/AliAODMCNuclExReplicator.cxx
+  Hypernuclei/AliAnalysisTaskESDNuclExFilterMC.cxx
+  Hypernuclei/AliAnalysisTaskReadNuclexAOD.cxx
+  Hypernuclei/AliAnalysisTaskAntiHe4.cxx
+  Hypernuclei/AliAnalysisTaskNucleiv2.cxx
+  Hypernuclei/AliAnalysisTaskNucleiv2SP.cxx
+  Cascades/lightvertexers/AliLightV0vertexer.cxx
+  Cascades/lightvertexers/AliLightCascadeVertexer.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}")
+
+# Add a shared library
+add_library(${MODULE} SHARED  ${SRCS} G__${MODULE}.cxx)
+
+# Generate the ROOT map
+# Dependecies
+set(LIBDEPS ANALYSISalice CORRFW PWGUDbase)
+generate_rootmap("${MODULE}" "${LIBDEPS}" "${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}LinkDef.h")
+
+# Linking the library
+target_link_libraries(${MODULE} ${LIBDEPS})
+
+# Public include folders that will be propagated to the dependecies
+target_include_directories(${MODULE} PUBLIC ${incdirs})
+
+# 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)
diff --git a/PWGLF/ThermalFits/CMakeLists.txt b/PWGLF/ThermalFits/CMakeLists.txt
new file mode 100644 (file)
index 0000000..b640719
--- /dev/null
@@ -0,0 +1,63 @@
+# **************************************************************************
+# * 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 PWGLFthermalfits)
+
+# Module include folder
+include_directories(${AliRoot_SOURCE_DIR}/PWGLF/ThermalFits)
+
+# Additional includes - alphabetical order except ROOT
+include_directories(${ROOT_INCLUDE_DIRS}
+                    ${AliRoot_SOURCE_DIR}/STEER/STEERBase
+  )
+
+# Sources - alphabetical order
+set(SRCS
+  AliParticleYield.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}")
+
+# Add a shared library
+add_library(${MODULE} SHARED  ${SRCS} G__${MODULE}.cxx)
+
+# Generate the ROOT map
+# Dependecies
+set(LIBDEPS STEERBase)
+generate_rootmap("${MODULE}" "${LIBDEPS}" "${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}LinkDef.h")
+
+# Linking the library
+target_link_libraries(${MODULE} ${LIBDEPS})
+
+# Public include folders that will be propagated to the dependecies
+target_include_directories(${MODULE} PUBLIC ${incdirs})
+
+# 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)
diff --git a/PWGLF/spectraJET/CMakeLists.txt b/PWGLF/spectraJET/CMakeLists.txt
new file mode 100644 (file)
index 0000000..34af2e7
--- /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 PWGLFspectraJET)
+
+# Module include folder
+include_directories(${AliRoot_SOURCE_DIR}/PWGLF/spectraJET)
+
+# Additional includes - alphabetical order except ROOT
+include_directories(${ROOT_INCLUDE_DIRS}
+                    ${AliRoot_SOURCE_DIR}/ANALYSIS/ANALYSIS
+                    ${AliRoot_SOURCE_DIR}/ANALYSIS/ANALYSISalice
+                    ${AliRoot_SOURCE_DIR}/ANALYSIS/ESDfilter
+                    ${AliRoot_SOURCE_DIR}/PWG/Tools
+                    ${AliRoot_SOURCE_DIR}/PWGLF/SPECTRA/PiKaPr/TestAOD
+                    ${AliRoot_SOURCE_DIR}/STEER/AOD
+                    ${AliRoot_SOURCE_DIR}/STEER/ESD
+                    ${AliRoot_SOURCE_DIR}/STEER/STEERBase
+  )
+
+# Sources - alphabetical order
+set(SRCS
+  AliAnalysisTaskJetSpectraAOD.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}")
+
+# Add a shared library
+add_library(${MODULE} SHARED  ${SRCS} G__${MODULE}.cxx)
+
+# Generate the ROOT map
+# Dependecies
+set(LIBDEPS ANALYSISalice PWGTools PWGLFspectra)
+generate_rootmap("${MODULE}" "${LIBDEPS}" "${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}LinkDef.h")
+
+# Linking the library
+target_link_libraries(${MODULE} ${LIBDEPS})
+
+# Public include folders that will be propagated to the dependecies
+target_include_directories(${MODULE} PUBLIC ${incdirs})
+
+# 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)