PWGPPMUONdep and PWGPPmuonlite converted to native cmake
authorhristov <Peter.Hristov@cern.ch>
Fri, 5 Dec 2014 21:48:33 +0000 (22:48 +0100)
committeragrigora <alina.grigoras@cern.ch>
Mon, 15 Dec 2014 12:52:08 +0000 (13:52 +0100)
PWGPP/CMakeLists.txt
PWGPP/CMakelibPWGPP.pkg [deleted file]
PWGPP/CMakelibPWGPPMUONdep.pkg [deleted file]
PWGPP/CMakelibPWGPPMUONlite.pkg [deleted file]
PWGPP/MUON/CMakeLists.txt [new file with mode: 0644]
PWGPP/MUON/dep/CMakeLists.txt [new file with mode: 0644]
PWGPP/MUON/dep/PWGPPMUONdepLinkDef.h [moved from PWGPP/PWGPPMUONdepLinkDef.h with 100% similarity]
PWGPP/MUON/lite/CMakeLists.txt [new file with mode: 0644]
PWGPP/MUON/lite/PWGPPMUONliteLinkDef.h [moved from PWGPP/PWGPPMUONliteLinkDef.h with 100% similarity]

index 9252070..0070218 100644 (file)
@@ -16,6 +16,7 @@
 # Libraries from subdirectories
 add_subdirectory(pid)
 add_subdirectory(EVCHAR)
+add_subdirectory(MUON)
 
 #Module
 set (MODULE PWGPP)
@@ -213,6 +214,11 @@ set ( SRCS16
   EvTrkSelection/AliCFSingleTrackEfficiencyTask.cxx
   EvTrkSelection/AliSingleTrackEffCuts.cxx
   )
+#file ( GLOB SRCS17 "TRD/TRDPID/*.cxx" )
+set ( SRCS17  
+  TRD/TRDPID/AliTRDPIDTree.cxx
+  TRD/TRDPID/AliTRDPIDmatching.cxx
+  )  
 
 list ( APPEND SRCS 
   ${SRCS1} 
@@ -231,6 +237,7 @@ list ( APPEND SRCS
   ${SRCS14}
   ${SRCS15}
   ${SRCS16}
+  ${SRCS17}
   )
 
 # Headers from sources
@@ -293,9 +300,14 @@ install ( DIRECTORY TPC/macros
          PATTERN ".C")
 install ( DIRECTORY TRD
          DESTINATION PWGPP)
+install ( FILES TRD/TRDPID/macros/AddTaskTRDPIDTree.C
+                TRD/TRDPID/macros/AddTaskTRDPIDmatching.C
+          DESTINATION PWGPP/TRD)
 install ( FILES ZDC/AddTaskZDCQA.C
          DESTINATION PWGPP/ZDC)
 install ( FILES PilotTrain/AddTaskMuonQA.C
          DESTINATION PWGPP/PilotTrain/ )
 install ( FILES VZERO/AddTaskVZEROPbPb.C
           DESTINATION PWGPP/VZERO/ )
+
+message(STATUS "PWGPP enabled")
diff --git a/PWGPP/CMakelibPWGPP.pkg b/PWGPP/CMakelibPWGPP.pkg
deleted file mode 100644 (file)
index 4c8f714..0000000
+++ /dev/null
@@ -1,304 +0,0 @@
-# -*- mode: CMake -*-
-
-#--------------------------------------------------------------------------------#
-# Package File for PWGPP                                                          #
-# 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)           #
-#--------------------------------------------------------------------------------#
-
-#file ( GLOB SRCS1 "*.cxx" )
-set ( SRCS1
-  AliAnaFwdDetsQA.cxx
-  AliAnalysisTaskFilteredTree.cxx
-  AliAnalysisTaskIPInfo.cxx
-  AliAnalysisTaskITSTPCalignment.cxx
-  AliAnalysisTaskQASym.cxx
-  AliAnalysisTaskV0QA.cxx
-  AliAnalysisTaskVtXY.cxx
-  AliAnaVZEROQA.cxx
-  AliFilteredTreeAcceptanceCuts.cxx
-  AliFilteredTreeEventCuts.cxx
-  AliIntSpotEstimator.cxx
-  AliRelAlignerKalmanArray.cxx
-  AliTaskCDBconnect.cxx
-  AliTrackComparison.cxx
-  AliTrackComparisonESD.cxx
-  )
-#file ( GLOB SRCS2 "global/*.cxx" )
-set ( SRCS2
-  global/AliAnalysisTaskGlobalQA.cxx
-  global/AliAnalysisTaskVertexESD.cxx
-  global/AliGlobalFBFqa.cxx
-  )
-#file ( GLOB SRCS3 "cosmic/*.cxx" )
-set ( SRCS3
-  cosmic/AliAnalysisTaskCosmic.cxx
-  )
-#file ( GLOB SRCS4 "tender/*.cxx" )
-set ( SRCS4
-  tender/AliTenderSupplyTRD.cxx
-  )
-#file ( GLOB SRCS5 "HMPID/*.cxx" )
-set ( SRCS5
-  HMPID/AliHMPIDTaskQA.cxx
-  )
-#file ( GLOB SRCS6 "ITS/*.cxx" )
-set ( SRCS6
-  ITS/AliAlignmentDataFilterITS.cxx
-  ITS/AliAnalysisTaskdEdxSSDQA.cxx
-  ITS/AliAnalysisTaskITSAlignQA.cxx
-  ITS/AliAnalysisTaskITSsaTracks.cxx
-  ITS/AliAnalysisTaskITSTrackingCheck.cxx
-  ITS/AliAnalysisTaskSDDRP.cxx
-  ITS/AliAnalysisTaskSEImpParRes.cxx
-  ITS/AliAnalysisTaskSPD.cxx
-  ITS/AliMeanVertexCalibTask.cxx
-  ITS/AliMeanVertexPreprocessorOffline.cxx
-  ITS/AliSPDUtils.cxx
-  ITS/AliTrackMatchingTPCITSCosmics.cxx
-  )
-#file ( GLOB SRCS7 "TRD/*.cxx" )
-set ( SRCS7
-  TRD/AliTRDalignmentTask.cxx
-  TRD/AliTRDcalibration.cxx
-  TRD/AliTRDcheckDET.cxx
-  TRD/AliTRDcheckESD.cxx
-  TRD/AliTRDcheckPID.cxx
-  TRD/AliTRDcheckTRK.cxx
-  TRD/AliTRDclusterResolution.cxx
-  TRD/AliTRDefficiency.cxx
-  TRD/AliTRDefficiencyMC.cxx
-  TRD/AliTRDinfoGen.cxx
-  TRD/AliTRDmultiplicity.cxx
-  TRD/AliTRDonlineTrackletFilter.cxx
-  TRD/AliTRDonlineTrackletQA.cxx
-  TRD/AliTRDpidRefMaker.cxx
-  TRD/AliTRDpidRefMakerLQ.cxx
-  TRD/AliTRDpidRefMakerNN.cxx
-  TRD/AliTRDpwgppHelper.cxx
-  TRD/AliTRDrecoTask.cxx
-  TRD/AliTRDresolution.cxx
-  TRD/AliTRDv0Monitor.cxx
-  )
-#file ( GLOB SRCS8 "TPC/*.cxx" )
-set ( SRCS8
-  TPC/AliAnalysisNoiseTPC.cxx
-  TPC/AliComparisonDraw.cxx
-  TPC/AliComparisonObject.cxx
-  TPC/AliESDRecInfo.cxx
-  TPC/AliESDRecKinkInfo.cxx
-  TPC/AliESDRecV0Info.cxx
-  TPC/AliESDresolMakerFast.cxx
-  TPC/AliESDresolParams.cxx
-  TPC/AliGenInfoMaker.cxx
-  TPC/AliGenInfoTask.cxx
-  TPC/AliGenKinkInfo.cxx
-  TPC/AliGenV0Info.cxx
-  TPC/AliMaterialBudget.cxx
-  TPC/AliMCInfoCuts.cxx
-  TPC/AliMCInfo.cxx
-  TPC/AliMCTrackingTestTask.cxx
-  TPC/AliPerfAnalyzeInvPt.cxx
-  TPC/AliPerformanceDCA.cxx
-  TPC/AliPerformanceDEdx.cxx
-  TPC/AliPerformanceEff.cxx
-  TPC/AliPerformanceMatch.cxx
-  TPC/AliPerformanceMC.cxx
-  TPC/AliPerformanceObject.cxx
-  TPC/AliPerformancePtCalib.cxx
-  TPC/AliPerformancePtCalibMC.cxx
-  TPC/AliPerformanceRes.cxx
-  TPC/AliPerformanceTask.cxx
-  TPC/AliPerformanceTPC.cxx
-  TPC/AliRecInfoCuts.cxx
-  TPC/AliRecInfoMaker.cxx
-  TPC/AliTaskConfigOCDB.cxx
-  TPC/AliTPCComparisonPID.cxx
-  TPC/AliTPCPerformanceSummary.cxx
-  TPC/AliTPCtaskPID.cxx
-  TPC/AliTPCtaskQA.cxx
-  TPC/AliTreeDraw.cxx
-  TPC/AliTPCPIDBase.cxx
-  TPC/AliTPCPIDEtaTree.cxx
-  TPC/AliTPCPIDEtaQA.cxx
-  TPC/AliTPCcalibResidualPID.cxx
-  )
-#file ( GLOB SRCS9 "TOF/*.cxx" )
-set ( SRCS9
-  TOF/AliAnalysisTaskTOFqa.cxx
-  TOF/AliAnalysisTaskTOFqaID.cxx
-  )
-#file ( GLOB SRCS10 "TRD/info/*.cxx" )
-set ( SRCS10
-  TRD/info/AliTRDchmbInfo.cxx
-  TRD/info/AliTRDclusterInfo.cxx
-  TRD/info/AliTRDeventCuts.cxx
-  TRD/info/AliTRDeventInfo.cxx
-  TRD/info/AliTRDpidInfo.cxx
-  TRD/info/AliTRDtrackInfo.cxx
-  TRD/info/AliTRDtrendingManager.cxx
-  TRD/info/AliTRDtrendValue.cxx
-  TRD/info/AliTRDtriggerInfo.cxx
-  TRD/info/AliTRDv0Info.cxx
-  )
-#file ( GLOB SRCS11 "background/*.cxx" )
-set ( SRCS11
-  background/AliHistoListWrapper.cxx
-  )
-#file ( GLOB SRCS12 "Centrality/*.cxx" )
-set ( SRCS12
-  Centrality/AliAnalysisTaskHIMultCorr.cxx
-  Centrality/AliMultiplicityCorrelations.cxx
-  )
-#file ( GLOB SRCS13 "ZDC/*.cxx" )
-set ( SRCS13
-  ZDC/AliAnalysisTaskZDC.cxx
-  ZDC/AliAnalysisTaskZDCpA.cxx
-  )
-#file ( GLOB SRCS14 "T0/*.cxx" )
-set ( SRCS14
-  T0/AliT0AnalysisTaskQA.cxx
-  )
-#file ( GLOB SRCS15 "VZERO/*PbPb.cxx" )
-set (SRCS15
-  VZERO/AliAnaVZEROPbPb.cxx
-  )
-#file ( GLOB SRCS16 "EvTrkSelection/*.cxx" )
-set ( SRCS16
-  EvTrkSelection/AliAnalysisTrackingUncertainties.cxx
-  EvTrkSelection/AliCFSingleTrackEfficiencyTask.cxx
-  EvTrkSelection/AliSingleTrackEffCuts.cxx
-  )
-#file ( GLOB SRCS17 "TRD/TRDPID/*.cxx" )
-set ( SRCS17  
-  TRD/TRDPID/AliTRDPIDTree.cxx
-  TRD/TRDPID/AliTRDPIDmatching.cxx
-  )
-  
-list ( APPEND SRCS 
-  ${SRCS1} 
-  ${SRCS2} 
-  ${SRCS3} 
-  ${SRCS4} 
-  ${SRCS5} 
-  ${SRCS6} 
-  ${SRCS7} 
-  ${SRCS8} 
-  ${SRCS9} 
-  ${SRCS10} 
-  ${SRCS11} 
-  ${SRCS12} 
-  ${SRCS13} 
-  ${SRCS14}
-  ${SRCS15}
-  ${SRCS16}
-  ${SRCS17}
-  
-  )
-
-string ( REPLACE ".cxx" ".h" HDRS "${SRCS}" )
-
-set ( DHDR  PWGPPLinkDef.h)
-
-set ( EXPORT ${HDRS})
-
-set ( EINCLUDE
-  TPC 
-  TPC/Base  
-  TPC/Sim
-  TPC/Rec
-  ITS 
-  TRD 
-  TOF 
-  TRD/Cal 
-  TRD/info 
-  TRD/TRDPID 
-  EMCAL
-  ANALYSIS/Tender 
-  ANALYSIS
-  PWG/CaloTrackCorrBase 
-  PWGPP/comparison 
-  PWGPP/cosmic 
-  PWGPP/global 
-  PWGPP/tender 
-  PWGPP/ITS 
-  PWGPP/TPC 
-  PWGPP/TOF 
-  PWGPP/TRD 
-  PWGPP/TRD/info 
-  PWGPP/TRD/TRDPID 
-  PWGPP/background 
-  PWGPP/Centrality 
-  PWGPP/EvTrkSelection
-  HMPID 
-  PWGPP/ZDC 
-  PWGPP/T0 
-  PWGPP/VZERO 
-  STEER/STEER 
-  STEER/AOD 
-  STEER/CDB 
-  STEER/ESD
-  STEER/STEERBase
-  )
-
-# install macros as needed
-install ( DIRECTORY macros 
-         DESTINATION PWGPP 
-         PATTERN ".d"  EXCLUDE 
-         PATTERN ".so" EXCLUDE)
-install ( DIRECTORY CalibMacros 
-         DESTINATION PWGPP 
-         PATTERN ".d"  EXCLUDE 
-         PATTERN ".so" EXCLUDE)
-install ( DIRECTORY PilotTrain
-         DESTINATION PWGPP/ 
-         PATTERN ".d"  EXCLUDE 
-         PATTERN ".so" EXCLUDE)
-install ( FILES HMPID/AddTaskHmpidQA.C
-         DESTINATION PWGPP/HMPID)
-install ( FILES T0/AddTaskT0QA.C
-         DESTINATION PWGPP/T0)
-install ( FILES TOF/AddTaskTOFQA.C
-                TOF/AddTaskTOFqaID.C
-         DESTINATION PWGPP/TOF)
-install ( FILES TOF/AddTaskTOFQA.C
-         DESTINATION PWGPP/TOF)
-install ( DIRECTORY TPC/macros
-         DESTINATION PWGPP/TPC
-         PATTERN ".C")
-install ( DIRECTORY TRD
-         DESTINATION PWGPP)
-install ( FILES TRD/TRDPID/macros/AddTaskTRDPIDTree.C
-                TRD/TRDPID/macros/AddTaskTRDPIDmatching.C
-         DESTINATION PWGPP/TRD)
-install ( FILES ZDC/AddTaskZDCQA.C
-         DESTINATION PWGPP/ZDC)
-install ( FILES PilotTrain/AddTaskMuonQA.C
-         DESTINATION PWGPP/PilotTrain/ )
-install ( FILES VZERO/AddTaskVZEROPbPb.C
-          DESTINATION PWGPP/VZERO/ )
-#
-# EOF
-#
-
diff --git a/PWGPP/CMakelibPWGPPMUONdep.pkg b/PWGPP/CMakelibPWGPPMUONdep.pkg
deleted file mode 100644 (file)
index 1066c06..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-# -*- mode: CMake -*-
-
-#--------------------------------------------------------------------------------#
-# Package File for PWGPP                                                          #
-# 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)           #
-#--------------------------------------------------------------------------------#
-
-#file ( GLOB SRCS16 "MUON/dep/*.cxx" )
-set ( SRCS16
-  MUON/dep/AliAnalysisTaskMuonFakes.cxx
-  MUON/dep/AliAnalysisTaskMuonPerformance.cxx
-  MUON/dep/AliAnalysisTaskMuonResolution.cxx
-  MUON/dep/AliAnalysisTaskMuonTrackingEff.cxx
-  )
-
-list ( APPEND SRCS 
-  ${SRCS16}
-  )
-
-string ( REPLACE ".cxx" ".h" HDRS "${SRCS}" )
-
-set ( DHDR  PWGPPMUONdepLinkDef.h)
-
-set ( EINCLUDE
-  MUON
-  MUON/mapping
-  PWGPP/MUON/dep 
-  ANALYSIS
-  ANALYSISalice
-  STEER/AOD
-  STEER/ESD
-  STEER/STEERBase
-  CORRFW
-  PWG/muon
-  )
diff --git a/PWGPP/CMakelibPWGPPMUONlite.pkg b/PWGPP/CMakelibPWGPPMUONlite.pkg
deleted file mode 100644 (file)
index 2f115a9..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-# -*- mode: CMake -*-
-
-#--------------------------------------------------------------------------------#
-# Package File for PWGPPMUONlite                                                 #
-# 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)           #
-#--------------------------------------------------------------------------------#
-
-#file ( GLOB SRCS17 "MUON/lite/*.cxx" )
-set ( SRCS17
-  MUON/lite/AliAnalysisTaskMuonCuts.cxx
-  MUON/lite/AliAnalysisTaskMuonQA.cxx
-  MUON/lite/AliAnalysisTaskTrigChEff.cxx
-  )
-
-list ( APPEND SRCS 
-  ${SRCS17}
-  )
-
-string ( REPLACE ".cxx" ".h" HDRS "${SRCS}" )
-
-set ( DHDR  PWGPPMUONliteLinkDef.h)
-
-set ( EINCLUDE
-  PWG/muon
-  PWGPP/MUON/lite
-  ANALYSIS
-  ANALYSISalice
-  STEER/AOD
-  STEER/ESD
-  STEER/STEERBase
-  )
diff --git a/PWGPP/MUON/CMakeLists.txt b/PWGPP/MUON/CMakeLists.txt
new file mode 100644 (file)
index 0000000..deabc6e
--- /dev/null
@@ -0,0 +1,19 @@
+# **************************************************************************
+# * 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.                  *
+# **************************************************************************
+
+# Include the libraries
+add_subdirectory (dep)
+add_subdirectory (lite)
+
diff --git a/PWGPP/MUON/dep/CMakeLists.txt b/PWGPP/MUON/dep/CMakeLists.txt
new file mode 100644 (file)
index 0000000..942b09d
--- /dev/null
@@ -0,0 +1,82 @@
+# **************************************************************************
+# * 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 PWGPPMUONdep)
+
+# Module include folder
+include_directories(${AliRoot_SOURCE_DIR}/PWGPP/MUON/dep)
+
+# 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}/MUON/MUONbase
+                    ${AliRoot_SOURCE_DIR}/MUON/MUONcalib
+                    ${AliRoot_SOURCE_DIR}/MUON/MUONcore
+                    ${AliRoot_SOURCE_DIR}/MUON/MUONevaluation
+                    ${AliRoot_SOURCE_DIR}/MUON/MUONgeometry
+                    ${AliRoot_SOURCE_DIR}/MUON/MUONmapping
+                    ${AliRoot_SOURCE_DIR}/MUON/MUONraw
+                    ${AliRoot_SOURCE_DIR}/MUON/MUONrec
+                    ${AliRoot_SOURCE_DIR}/MUON/MUONtrigger
+                    ${AliRoot_SOURCE_DIR}/PWG/muon
+                    ${AliRoot_SOURCE_DIR}/STEER/CDB
+                    ${AliRoot_SOURCE_DIR}/STEER/ESD
+                    ${AliRoot_SOURCE_DIR}/STEER/STEER
+                    ${AliRoot_SOURCE_DIR}/STEER/STEERBase
+  )
+
+# Sources - alphabetical order
+set(SRCS
+  AliAnalysisTaskMuonFakes.cxx
+  AliAnalysisTaskMuonPerformance.cxx
+  AliAnalysisTaskMuonResolution.cxx
+  AliAnalysisTaskMuonTrackingEff.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 MUONevaluation PWGmuon)
+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/PWGPP/MUON/lite/CMakeLists.txt b/PWGPP/MUON/lite/CMakeLists.txt
new file mode 100644 (file)
index 0000000..71cf848
--- /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 PWGPPMUONlite)
+
+# Module include folder
+include_directories(${AliRoot_SOURCE_DIR}/PWGPP/MUON/lite)
+
+# Additional includes - alphabetical order except ROOT
+include_directories(${ROOT_INCLUDE_DIRS}
+                    ${AliRoot_SOURCE_DIR}/ANALYSIS/ANALYSIS
+                    ${AliRoot_SOURCE_DIR}/ANALYSIS/ANALYSISalice
+                    ${AliRoot_SOURCE_DIR}/PWG/muon
+                    ${AliRoot_SOURCE_DIR}/STEER/AOD
+                    ${AliRoot_SOURCE_DIR}/STEER/ESD
+                    ${AliRoot_SOURCE_DIR}/STEER/STEERBase
+  )
+
+# Sources - alphabetical order
+set(SRCS
+  AliAnalysisTaskMuonCuts.cxx
+  AliAnalysisTaskMuonQA.cxx
+  AliAnalysisTaskTrigChEff.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 PWGmuon)
+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)