]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
libPWGEMCAL, libPWGflowtasks and libPWGmuon converted to native cmake
authorhristov <Peter.Hristov@cern.ch>
Wed, 3 Dec 2014 20:00:49 +0000 (21:00 +0100)
committeragrigora <alina.grigoras@cern.ch>
Mon, 15 Dec 2014 12:52:05 +0000 (13:52 +0100)
PWG/CMakeLists.txt
PWG/CMakelibPWGEMCAL.pkg [deleted file]
PWG/CMakelibPWGflowTasks.pkg [deleted file]
PWG/CMakelibPWGmuon.pkg [deleted file]
PWG/EMCAL/CMakeLists.txt [new file with mode: 0644]
PWG/EMCAL/PWGEMCALLinkDef.h [moved from PWG/PWGEMCALLinkDef.h with 100% similarity]
PWG/FLOW/CMakeLists.txt
PWG/FLOW/Tasks/CMakeLists.txt [new file with mode: 0644]
PWG/FLOW/Tasks/PWGflowTasksLinkDef.h [moved from PWG/PWGflowTasksLinkDef.h with 100% similarity]
PWG/muon/CMakeLists.txt [new file with mode: 0644]
PWG/muon/PWGmuonLinkDef.h [moved from PWG/PWGmuonLinkDef.h with 100% similarity]

index 1af811cdaccfaf7a08f9c6f4543b2ad9c2ab768e..3c918ac1ceaf905ab0ea68a94e4f36aecae20867 100644 (file)
@@ -16,6 +16,8 @@
 # Include the libraries
 add_subdirectory (Tools)
 add_subdirectory (Glauber)
+add_subdirectory (muon)
+add_subdirectory (EMCAL)
 add_subdirectory (FLOW)
 
 message(STATUS "PWG enabled")
diff --git a/PWG/CMakelibPWGEMCAL.pkg b/PWG/CMakelibPWGEMCAL.pkg
deleted file mode 100644 (file)
index 4772e92..0000000
+++ /dev/null
@@ -1,77 +0,0 @@
-# -*- mode: Makefile -*-
-#--------------------------------------------------------------------------------#
-# Package File for PWGmuon                                                      #
-# 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 
- EMCAL/AliAnalysisTaskEMCALClusterizeFast.cxx
- EMCAL/AliAnalysisTaskEmcal.cxx
- EMCAL/AliAnalysisTaskEmcalSample.cxx
- EMCAL/AliClusterContainer.cxx
- EMCAL/AliEMCALClusterParams.cxx
- EMCAL/AliEmcalAodTrackFilterTask.cxx
- EMCAL/AliEmcalClusTrackMatcherTask.cxx
- EMCAL/AliEmcalClusterMaker.cxx
- EMCAL/AliEmcalCompatTask.cxx
- EMCAL/AliEmcalContainer.cxx
- EMCAL/AliEmcalDebugTask.cxx
- EMCAL/AliEmcalEsdTrackFilterTask.cxx
- EMCAL/AliEmcalMCTrackSelector.cxx
- EMCAL/AliEmcalParticle.cxx
- EMCAL/AliEmcalParticleMaker.cxx
- EMCAL/AliEmcalPatchFromCellMaker.cxx
- EMCAL/AliEmcalPhysicsSelection.cxx
- EMCAL/AliEmcalPhysicsSelectionTask.cxx
- EMCAL/AliEmcalPicoTrackMaker.cxx
- EMCAL/AliEmcalSetupTask.cxx
- EMCAL/AliEmcalTenderTask.cxx
- EMCAL/AliEmcalTrackingQATask.cxx
- EMCAL/AliEmcalTrackPropagatorTask.cxx
- EMCAL/AliEmcalTriggerBitConfig.cxx
- EMCAL/AliEmcalTriggerMaker.cxx
- EMCAL/AliEmcalTriggerPatchInfo.cxx
- EMCAL/AliEmcalTriggerSetupInfo.cxx
- EMCAL/AliEsdSkimTask.cxx
- EMCAL/AliEsdTrackExt.cxx
- EMCAL/AliHadCorrTask.cxx
- EMCAL/AliParticleContainer.cxx
- EMCAL/AliPicoTrack.cxx
- EMCAL/AliEMCALConfiguration.cxx
- EMCAL/AliEMCALConfigHandler.cxx
- EMCAL/AliEMCALConfigurationMatcher.cxx
-)
-
-string ( REPLACE ".cxx" ".h" HDRS "${SRCS}" )
-
-string ( REPLACE ".cxx" ".h" EXPORT "${SRCS}" )
-
-set ( DHDR  PWGEMCALLinkDef.h)
-
-set ( EINCLUDE PWG/Tools PWG/EMCAL EMCAL OADB STEER/AOD STEER/ESD STEER/STEERBase ANALYSIS ANALYSIS/Tender)
-
-install (DIRECTORY EMCAL/data
-        DESTINATION PWG/EMCAL
-        PATTERN ".svn" EXCLUDE)
diff --git a/PWG/CMakelibPWGflowTasks.pkg b/PWG/CMakelibPWGflowTasks.pkg
deleted file mode 100644 (file)
index 6131e00..0000000
+++ /dev/null
@@ -1,73 +0,0 @@
-# -*- mode: CMake -*-
-#--------------------------------------------------------------------------------#
-# Package File for PWGflowTasks                                                  #
-# Author : Mikolaj Krzewicki (mikolaj.krzewicki@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  
-    FLOW/Tasks/AliFlowEventSimpleMaker.cxx 
-    FLOW/Tasks/AliFlowEvent.cxx 
-    FLOW/Tasks/AliFlowEventCuts.cxx 
-    FLOW/Tasks/AliFlowTrack.cxx 
-    FLOW/Tasks/AliFlowCandidateTrack.cxx 
-    FLOW/Tasks/AliFlowTrackCuts.cxx 
-    FLOW/Tasks/AliAnalysisTaskScalarProduct.cxx 
-    FLOW/Tasks/AliAnalysisTaskMCEventPlane.cxx 
-    FLOW/Tasks/AliAnalysisTaskLYZEventPlane.cxx 
-    FLOW/Tasks/AliAnalysisTaskCumulants.cxx 
-    FLOW/Tasks/AliAnalysisTaskQCumulants.cxx 
-    FLOW/Tasks/AliAnalysisTaskLeeYangZeros.cxx 
-    FLOW/Tasks/AliAnalysisTaskFittingQDistribution.cxx 
-    FLOW/Tasks/AliAnalysisTaskFlowEvent.cxx 
-    FLOW/Tasks/AliAnalysisTaskFlowStrange.cxx 
-    FLOW/Tasks/AliAnalysisTaskFlowEventforRP.cxx 
-    FLOW/Tasks/AliAnalysisTaskMixedHarmonics.cxx 
-    FLOW/Tasks/AliAnalysisTaskNestedLoops.cxx 
-    FLOW/Tasks/AliAnalysisTaskQAflow.cxx 
-    FLOW/Tasks/AliAnalysisTaskPIDflowQA.cxx 
-    FLOW/Tasks/AliAnalysisTaskQAPmdflow.cxx 
-    FLOW/Tasks/AliFlowBayesianPID.cxx
-    FLOW/Tasks/AliAnalysisTaskPhiFlow.cxx
-    FLOW/Tasks/AliAnalysisTaskFilterFE.cxx
-    FLOW/Tasks/AliAnalysisTaskVnV0.cxx
-    FLOW/Tasks/AliFlowVZEROResults.cxx
-    FLOW/Tasks/AliFlowVZEROQA.cxx
-    FLOW/Tasks/AliAnalysisTaskFlowEPCascade.cxx
-    FLOW/Tasks/AliAnalysisTaskJetFlowMC.cxx
-    FLOW/Tasks/AliAnalysisTaskMultiparticleCorrelations.cxx
-    FLOW/Tasks/AliAnalysisTaskPIDconfig.cxx
-    )
-
-string ( REPLACE ".cxx" ".h" HDRS "${SRCS}" )
-
-set ( DHDR PWGflowTasksLinkDef.h)
-
-set ( EXPORT ${HDRS} )
-
-if( ALICE_TARGET STREQUAL "win32gcc")
-        set ( ELIBS -L${ALICE_ROOT}/lib/tgt_${ALICE_TARGET} -lPWGflowBase -lPWGmuon -lANALYSISalice -lANALYSIS -lAOD -lESD -lSTEERBase ${ROOTCLIBS} -lEG )
-endif( ALICE_TARGET STREQUAL "win32gcc")
-
-set ( EINCLUDE PWG/FLOW/Base PWG/FLOW/Tasks STEER/ESD STEER/AOD STEER/STEERBase STEER/CDB PWG/muon ANALYSIS)
diff --git a/PWG/CMakelibPWGmuon.pkg b/PWG/CMakelibPWGmuon.pkg
deleted file mode 100644 (file)
index 0e7fa6d..0000000
+++ /dev/null
@@ -1,96 +0,0 @@
-# -*- mode: CMake -*-
-#--------------------------------------------------------------------------------#
-# Package File for PWGmuon                                                      #
-# 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 
-    muon/AliAnalysisTaskMuMu.cxx 
-    muon/AliHistogramCollection.cxx 
-    muon/AliAnalysisTaskESDMuonFilter.cxx 
-    muon/AliAnalysisTaskMuonAODfromGeneral.cxx 
-    muon/AliAnalysisTaskFromStandardToMuonAOD.cxx 
-    muon/AliAnalysisTaskSingleMu.cxx 
-    muon/AliAnalysisTaskLUT.cxx 
-    muon/AliAnalysisTaskLinkToMC.cxx 
-    muon/AliAODEventInfo.cxx 
-    muon/AliESDMuonTrackCuts.cxx 
-    muon/AliAnalysisTaskSingleMuESD.cxx 
-    muon/AliCFMuonResTask1.cxx 
-    muon/AliCFMuonSingleTask1.cxx 
-    muon/AliEventPoolMuon.cxx 
-    muon/AliAnalysisTaskCreateMixedDimuons.cxx 
-    muon/AliAnalysisTaskMuonAODCreation.cxx 
-    muon/AliAnalysisTaskMuonDistributions.cxx 
-    muon/AliMuonInfoStoreRD.cxx 
-    muon/AliDimuInfoStoreRD.cxx 
-    muon/AliMuonInfoStoreMC.cxx 
-    muon/AliDimuInfoStoreMC.cxx 
-    muon/AliMuonsHFHeader.cxx 
-    muon/AliAnalysisTaskSEMuonsHF.cxx 
-    muon/AliAnalysisTaskDimuonCFContainerBuilder.cxx 
-    muon/AliAnalysisTaskMuonTreeBuilder.cxx 
-    muon/AliAODMuonReplicator.cxx 
-    muon/AliAnalysisTaskMuonCollisionMultiplicity.cxx 
-    muon/AliCFMuonResUpsilon.cxx 
-    muon/AliMuonEventCuts.cxx 
-    muon/AliMuonTrackCuts.cxx 
-    muon/AliMuonPairCuts.cxx 
-    muon/AliVAnalysisMuon.cxx 
-    muon/AliAnalysisTaskFlowSingleMu.cxx 
-    muon/AliAnalysisMuonUtility.cxx
-    muon/AliUtilityMuonAncestor.cxx
-    muon/AliOADBMuonTrackCutsParam.cxx
-    muon/AliAnalysisMuMuBinning.cxx
-    muon/AliAnalysisNonMuonTrackCuts.cxx
-    muon/AliAnalysisNonPrimaryVertices.cxx
-    muon/AliAnalysisTaskAOD2MuonAOD.cxx
-    muon/AliAnalysisTaskMuMu.cxx
-    muon/AliAnalysisMuMuBase.cxx
-    muon/AliAnalysisMuMuGlobal.cxx
-    muon/AliAnalysisMuMuCutRegistry.cxx
-    muon/AliAnalysisMuMuCutElement.cxx
-    muon/AliAnalysisMuMuEventCutter.cxx
-    muon/AliAnalysisMuMuCutCombination.cxx
-    muon/AliAnalysisMuMuSingle.cxx
-    muon/AliAnalysisMuMuMinv.cxx
-    muon/AliAnalysisMuMuNch.cxx
-    muon/AliAnalysisTaskNorm.cxx
-    )
-
-string ( REPLACE ".cxx" ".h" HDRS "${SRCS}" )
-
-string ( REPLACE ".cxx" ".h" EXPORT "${SRCS}" )
-
-set ( DHDR  PWGmuonLinkDef.h)
-
-set ( EINCLUDE  RooUnfold/src  PWG/muon ANALYSIS STEER/AOD STEER/ESD STEER/STEERBase MFT)
-
-if( ALICE_TARGET STREQUAL "win32gcc")
-        set ( PACKSOFLAGS  ${SOFLAGS} )
-        set ( ELIBS -L${ALICE_ROOT}/lib/tgt_${ALICE_TARGET} -lANALYSIS -lANALYSISalice -lCORRFW -lAOD -lSTEERBase -lESD ${ROOTCLIBS} -lEG)
-endif( ALICE_TARGET STREQUAL "win32gcc")
-
-
diff --git a/PWG/EMCAL/CMakeLists.txt b/PWG/EMCAL/CMakeLists.txt
new file mode 100644 (file)
index 0000000..8b67fc7
--- /dev/null
@@ -0,0 +1,109 @@
+# **************************************************************************
+# * 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 PWGEMCAL)
+
+# Module include folder
+include_directories(${AliRoot_SOURCE_DIR}/PWG/EMCAL)
+
+# 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/Tender
+                    ${AliRoot_SOURCE_DIR}/ANALYSIS/TenderSupplies
+                    ${AliRoot_SOURCE_DIR}/EMCAL/EMCALbase
+                    ${AliRoot_SOURCE_DIR}/EMCAL/EMCALrec
+                    ${AliRoot_SOURCE_DIR}/EMCAL/EMCALUtils
+                    ${AliRoot_SOURCE_DIR}/PWG/Tools
+                    ${AliRoot_SOURCE_DIR}/STEER/AOD
+                    ${AliRoot_SOURCE_DIR}/STEER/CDB
+                    ${AliRoot_SOURCE_DIR}/STEER/ESD
+                    ${AliRoot_SOURCE_DIR}/STEER/STEERBase
+                    ${AliRoot_SOURCE_DIR}/STEER/STEER
+  )
+
+# Sources - alphabetical order
+set(SRCS
+  AliAnalysisTaskEMCALClusterizeFast.cxx
+  AliAnalysisTaskEmcal.cxx
+  AliAnalysisTaskEmcalSample.cxx
+  AliClusterContainer.cxx
+  AliEMCALClusterParams.cxx
+  AliEmcalAodTrackFilterTask.cxx
+  AliEmcalClusTrackMatcherTask.cxx
+  AliEmcalClusterMaker.cxx
+  AliEmcalCompatTask.cxx
+  AliEmcalContainer.cxx
+  AliEmcalDebugTask.cxx
+  AliEmcalEsdTrackFilterTask.cxx
+  AliEmcalMCTrackSelector.cxx
+  AliEmcalParticle.cxx
+  AliEmcalParticleMaker.cxx
+  AliEmcalPatchFromCellMaker.cxx
+  AliEmcalPhysicsSelection.cxx
+  AliEmcalPhysicsSelectionTask.cxx
+  AliEmcalPicoTrackMaker.cxx
+  AliEmcalSetupTask.cxx
+  AliEmcalTenderTask.cxx
+  AliEmcalTrackingQATask.cxx
+  AliEmcalTrackPropagatorTask.cxx
+  AliEmcalTriggerBitConfig.cxx
+  AliEmcalTriggerMaker.cxx
+  AliEmcalTriggerPatchInfo.cxx
+  AliEmcalTriggerSetupInfo.cxx
+  AliEsdSkimTask.cxx
+  AliEsdTrackExt.cxx
+  AliHadCorrTask.cxx
+  AliParticleContainer.cxx
+  AliPicoTrack.cxx
+  AliEMCALConfiguration.cxx
+  AliEMCALConfigHandler.cxx
+  AliEMCALConfigurationMatcher.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 ANALYSIS ANALYSISalice AOD CDB EMCALrec EMCALUtils ESD PWGTools STEER STEERBase Tender)
+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)
index 4a1a7b787ee60e2948271f8cbc002b8985e897a4..be40ffe6e0129e23a7c9e71c76917c5ec1dce3a2 100644 (file)
@@ -15,3 +15,4 @@
 
 # Include the libraries
 add_subdirectory (Base)
+add_subdirectory (Tasks)
diff --git a/PWG/FLOW/Tasks/CMakeLists.txt b/PWG/FLOW/Tasks/CMakeLists.txt
new file mode 100644 (file)
index 0000000..6a2d947
--- /dev/null
@@ -0,0 +1,103 @@
+# **************************************************************************
+# * 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 PWGflowTasks)
+
+# Module include folder
+include_directories(${AliRoot_SOURCE_DIR}/PWG/FLOW/Tasks)
+
+# Additional includes - alphabetical order except ROOT
+include_directories(${ROOT_INCLUDE_DIRS}
+                    ${AliRoot_SOURCE_DIR}/ANALYSIS/ANALYSIS
+                    ${AliRoot_SOURCE_DIR}/ANALYSIS/ANALYSISalice
+                    ${AliRoot_SOURCE_DIR}/CORRFW
+                    ${AliRoot_SOURCE_DIR}/PWG/EMCAL
+                    ${AliRoot_SOURCE_DIR}/PWG/FLOW/Base
+                    ${AliRoot_SOURCE_DIR}/PWG/muon
+                    ${AliRoot_SOURCE_DIR}/PWG/Tools
+                    ${AliRoot_SOURCE_DIR}/STEER/AOD
+                    ${AliRoot_SOURCE_DIR}/STEER/CDB
+                    ${AliRoot_SOURCE_DIR}/STEER/ESD
+                    ${AliRoot_SOURCE_DIR}/STEER/STEERBase
+  )
+
+# Sources - alphabetical order
+set(SRCS
+  AliFlowEventSimpleMaker.cxx 
+  AliFlowEvent.cxx 
+  AliFlowEventCuts.cxx 
+  AliFlowTrack.cxx 
+  AliFlowCandidateTrack.cxx 
+  AliFlowTrackCuts.cxx 
+  AliAnalysisTaskScalarProduct.cxx 
+  AliAnalysisTaskMCEventPlane.cxx 
+  AliAnalysisTaskLYZEventPlane.cxx 
+  AliAnalysisTaskCumulants.cxx 
+  AliAnalysisTaskQCumulants.cxx 
+  AliAnalysisTaskLeeYangZeros.cxx 
+  AliAnalysisTaskFittingQDistribution.cxx 
+  AliAnalysisTaskFlowEvent.cxx 
+  AliAnalysisTaskFlowStrange.cxx 
+  AliAnalysisTaskFlowEventforRP.cxx 
+  AliAnalysisTaskMixedHarmonics.cxx 
+  AliAnalysisTaskNestedLoops.cxx 
+  AliAnalysisTaskQAflow.cxx 
+  AliAnalysisTaskPIDflowQA.cxx 
+  AliAnalysisTaskQAPmdflow.cxx 
+  AliFlowBayesianPID.cxx
+  AliAnalysisTaskPhiFlow.cxx
+  AliAnalysisTaskFilterFE.cxx
+  AliAnalysisTaskVnV0.cxx
+  AliFlowVZEROResults.cxx
+  AliFlowVZEROQA.cxx
+  AliAnalysisTaskFlowEPCascade.cxx
+  AliAnalysisTaskJetFlowMC.cxx
+  AliAnalysisTaskMultiparticleCorrelations.cxx
+  AliAnalysisTaskPIDconfig.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 PWGflowBase PWGmuon PWGEMCAL ANALYSIS ANALYSISalice AOD ESD 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/PWG/muon/CMakeLists.txt b/PWG/muon/CMakeLists.txt
new file mode 100644 (file)
index 0000000..8d6f845
--- /dev/null
@@ -0,0 +1,118 @@
+# **************************************************************************
+# * 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 PWGmuon)
+
+# Module include folder
+include_directories(${AliRoot_SOURCE_DIR}/PWG/muon)
+
+# Additional includes - alphabetical order except ROOT
+include_directories(${ROOT_INCLUDE_DIRS}
+                    ${AliRoot_SOURCE_DIR}/ANALYSIS/ANALYSIS
+                    ${AliRoot_SOURCE_DIR}/ANALYSIS/ANALYSISalice
+                    ${AliRoot_SOURCE_DIR}/CORRFW
+                    ${AliRoot_SOURCE_DIR}/STEER/AOD
+                    ${AliRoot_SOURCE_DIR}/STEER/ESD
+                    ${AliRoot_SOURCE_DIR}/STEER/STEERBase
+  )
+
+# Sources - alphabetical order
+set(SRCS
+  AliAnalysisTaskMuMu.cxx 
+  AliHistogramCollection.cxx 
+  AliAnalysisTaskESDMuonFilter.cxx 
+  AliAnalysisTaskMuonAODfromGeneral.cxx 
+  AliAnalysisTaskFromStandardToMuonAOD.cxx 
+  AliAnalysisTaskSingleMu.cxx 
+  AliAnalysisTaskLUT.cxx 
+  AliAnalysisTaskLinkToMC.cxx 
+  AliAODEventInfo.cxx 
+  AliESDMuonTrackCuts.cxx 
+  AliAnalysisTaskSingleMuESD.cxx 
+  AliCFMuonResTask1.cxx 
+  AliCFMuonSingleTask1.cxx 
+  AliEventPoolMuon.cxx 
+  AliAnalysisTaskCreateMixedDimuons.cxx 
+  AliAnalysisTaskMuonAODCreation.cxx 
+  AliAnalysisTaskMuonDistributions.cxx 
+  AliMuonInfoStoreRD.cxx 
+  AliDimuInfoStoreRD.cxx 
+  AliMuonInfoStoreMC.cxx 
+  AliDimuInfoStoreMC.cxx 
+  AliMuonsHFHeader.cxx 
+  AliAnalysisTaskSEMuonsHF.cxx 
+  AliAnalysisTaskDimuonCFContainerBuilder.cxx 
+  AliAnalysisTaskMuonTreeBuilder.cxx 
+  AliAODMuonReplicator.cxx 
+  AliAnalysisTaskMuonCollisionMultiplicity.cxx 
+  AliCFMuonResUpsilon.cxx 
+  AliMuonEventCuts.cxx 
+  AliMuonTrackCuts.cxx 
+  AliMuonPairCuts.cxx 
+  AliVAnalysisMuon.cxx 
+  AliAnalysisTaskFlowSingleMu.cxx 
+  AliAnalysisMuonUtility.cxx
+  AliUtilityMuonAncestor.cxx
+  AliOADBMuonTrackCutsParam.cxx
+  AliAnalysisMuMuBinning.cxx
+  AliAnalysisNonMuonTrackCuts.cxx
+  AliAnalysisNonPrimaryVertices.cxx
+  AliAnalysisTaskAOD2MuonAOD.cxx
+  AliAnalysisTaskMuMu.cxx
+  AliAnalysisMuMuBase.cxx
+  AliAnalysisMuMuGlobal.cxx
+  AliAnalysisMuMuCutRegistry.cxx
+  AliAnalysisMuMuCutElement.cxx
+  AliAnalysisMuMuEventCutter.cxx
+  AliAnalysisMuMuCutCombination.cxx
+  AliAnalysisMuMuSingle.cxx
+  AliAnalysisMuMuMinv.cxx
+  AliAnalysisMuMuNch.cxx
+  AliAnalysisTaskNorm.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 AOD CORRFW 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)