]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
PWGLFforward2 is converted to native cmake- The custom targets and functions are...
authorhristov <Peter.Hristov@cern.ch>
Thu, 4 Dec 2014 16:42:13 +0000 (17:42 +0100)
committeragrigora <alina.grigoras@cern.ch>
Mon, 15 Dec 2014 12:52:07 +0000 (13:52 +0100)
PWGLF/CMakeLists.txt
PWGLF/CMakelibPWGLFforward2.pkg [deleted file]
PWGLF/CMakelibPWGLFforwardhit.pkg [deleted file]
PWGLF/FORWARD/CMakeLists.txt [new file with mode: 0644]
PWGLF/FORWARD/PWGLFforward2LinkDef.h [moved from PWGLF/PWGLFforward2LinkDef.h with 100% similarity]
PWGLF/PWGLFforwardhitLinkDef.h [deleted file]

index 61eb25eb622230bd5298ed14c7a4dc69ee6932c5..fe8a1f36bcc4993dcb6b4766896d4e626db405aa 100644 (file)
@@ -14,6 +14,7 @@
 # **************************************************************************
 
 # Include the libraries
+add_subdirectory (FORWARD)
 add_subdirectory (RESONANCES)
 add_subdirectory (SPECTRA)
 add_subdirectory (spectraJET)
diff --git a/PWGLF/CMakelibPWGLFforward2.pkg b/PWGLF/CMakelibPWGLFforward2.pkg
deleted file mode 100644 (file)
index 4f18089..0000000
+++ /dev/null
@@ -1,348 +0,0 @@
-# -*- mode: CMake -*-
-#------------------------------------------------------------------------#
-# Package File for PWGLFforward2                                         #
-# Author : Christian Holm Christensen (cholm@nbi.dk)                     #
-# 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)   #
-#------------------------------------------------------------------------#
-
-if((DEFINED ALIROOT_SVN_REVISION)) 
-  add_definitions(-DALIROOT_SVN_REVISION=${ALIROOT_SVN_REVISION})
-elseif((DEFINED ALIROOT_REVISION)) 
-  add_definitions(-DALIROOT_REVISION=\"${ALIROOT_REVISION}\")
-endif((DEFINED ALIROOT_SVN_REVISION)) 
-if((DEFINED ALIROOT_SVN_BRANCH)) 
-  add_definitions(-DALIROOT_SVN_BRANCH=\"${ALIROOT_SVN_BRANCH}\")
-elseif((DEFINED ALIROOT_BRANCH)) 
-  add_definitions(-DALIROOT_BRANCH=\"${ALIROOT_BRANCH}\")
-endif((DEFINED ALIROOT_SVN_BRANCH))
-
-set ( SRCS   
-  # ZDC tasks
-  FORWARD/GEO/AliAnalysisTaskZDCPbPb.cxx
-  FORWARD/GEO/AliAnalysisTaskZDCTreeMaker.cxx
-  FORWARD/GEO/AliAnalysisTaskZDCpAcalib.cxx
-  # AOD objects
-  FORWARD/analysis2/AliAODCentralMult.cxx
-  FORWARD/analysis2/AliAODForwardEP.cxx
-  FORWARD/analysis2/AliAODForwardMult.cxx
-  # Interface to OADB backed by a TTree 
-  FORWARD/analysis2/AliOADBForward.cxx
-  # Correction managers 
-  FORWARD/analysis2/AliCorrectionManagerBase.cxx 
-  FORWARD/analysis2/AliForwardCorrectionManager.cxx
-  FORWARD/analysis2/AliCentralCorrectionManager.cxx
-  # Central (SPD) code 
-  FORWARD/analysis2/AliCentralCorrAcceptance.cxx 
-  FORWARD/analysis2/AliCentralCorrSecondaryMap.cxx
-  FORWARD/analysis2/AliCentraldNdetaTask.cxx
-  FORWARD/analysis2/AliCentralMCCorrectionsTask.cxx
-  FORWARD/analysis2/AliCentralMCMultiplicityTask.cxx
-  FORWARD/analysis2/AliCentralMultiplicityTask.cxx
-  FORWARD/analysis2/AliSPDMCTrackDensity.cxx
-  # Aux tasks and code 
-  FORWARD/analysis2/AliCopyHeaderTask.cxx
-  FORWARD/analysis2/AliBasedNdetaTask.cxx
-  FORWARD/analysis2/AliBaseMCTrackDensity.cxx
-  FORWARD/analysis2/AliMCTruthdNdetaTask.cxx
-  FORWARD/analysis2/AliDisplacedVertexSelection.cxx
-  FORWARD/analysis2/AliPoissonCalculator.cxx
-  FORWARD/analysis2/AliMCAuxHandler.cxx
-  # Forward Aux
-  FORWARD/analysis2/AliForwardFlowWeights.cxx
-  FORWARD/analysis2/AliForwardUtil.cxx
-  FORWARD/analysis2/AliFMDMultCuts.cxx
-  # FMD corrections
-  FORWARD/analysis2/AliFMDCorrAcceptance.cxx
-  FORWARD/analysis2/AliFMDCorrDoubleHit.cxx
-  FORWARD/analysis2/AliFMDCorrector.cxx 
-  FORWARD/analysis2/AliFMDCorrELossFit.cxx 
-  FORWARD/analysis2/AliFMDCorrMergingEfficiency.cxx
-  FORWARD/analysis2/AliFMDCorrSecondaryMap.cxx 
-  FORWARD/analysis2/AliFMDCorrVertexBias.cxx
-  # FMD algortithmns 
-  FORWARD/analysis2/AliFMDDensityCalculator.cxx
-  FORWARD/analysis2/AliFMDEnergyFitter.cxx
-  FORWARD/analysis2/AliFMDEventInspector.cxx
-  FORWARD/analysis2/AliFMDEventPlaneFinder.cxx
-  FORWARD/analysis2/AliFMDHistCollector.cxx
-  FORWARD/analysis2/AliFMDESDFixer.cxx
-  FORWARD/analysis2/AliFMDSharingFilter.cxx
-  # FMD MC algorithms
-  FORWARD/analysis2/AliFMDMCCorrector.cxx
-  FORWARD/analysis2/AliFMDMCDensityCalculator.cxx
-  FORWARD/analysis2/AliFMDMCEventInspector.cxx
-  FORWARD/analysis2/AliFMDMCSharingFilter.cxx
-  FORWARD/analysis2/AliFMDMCTrackDensity.cxx
-  # Forward tasks 
-  FORWARD/analysis2/AliBaseESDTask.cxx
-  FORWARD/analysis2/AliBaseAODTask.cxx
-  FORWARD/analysis2/AliBaseMCCorrectionsTask.cxx
-  FORWARD/analysis2/AliFMDEnergyFitterTask.cxx 
-  FORWARD/analysis2/AliFMDEventPlaneTask.cxx
-  FORWARD/analysis2/AliForwarddNdetaTask.cxx
-  FORWARD/analysis2/AliForwardFlowTaskQC.cxx
-  FORWARD/analysis2/AliForwardMCCorrectionsTask.cxx
-  FORWARD/analysis2/AliForwardMCFlowTaskQC.cxx
-  FORWARD/analysis2/AliForwardMCMultiplicityTask.cxx 
-  FORWARD/analysis2/AliForwardMultiplicityBase.cxx
-  FORWARD/analysis2/AliForwardMultiplicityTask.cxx
-  FORWARD/analysis2/AliForwardQATask.cxx
-  FORWARD/analysis2/AliForwardCreateResponseMatrices.cxx
-  FORWARD/analysis2/AliForwardMultiplicityDistribution.cxx
-  FORWARD/analysis2/AliForwardMultDists.cxx
-  # MC investigations 
-  FORWARD/analysis2/AliFMDMCTrackELoss.cxx
-  FORWARD/analysis2/AliFMDMCTrackInspector.cxx 
-  FORWARD/analysis2/AliFMDMCTrackInspectorTask.cxx 
-  # Photons 
-  FORWARD/photons/AliAnalysisTaskPMD.cxx
-  FORWARD/photons/AliAnalysisTaskPMDSim.cxx
-)
-
-string ( REPLACE ".cxx" ".h" HDRS "${SRCS}" )
-set ( HDRS ${HDRS} 
-  FORWARD/analysis2/AliFMDStripIndex.h 
-  FORWARD/analysis2/AliFMDEncodedEdx.h 
-  FORWARD/analysis2/AliLandauGaus.h 
-  FORWARD/analysis2/AliLandauGausFitter.h 
-  FORWARD/analysis2/AliFMDCorrNoiseGain.h
-  )
-
-set ( EINCLUDE  
-  ANALYSIS 
-  PWGLF/FORWARD/analysis2  
-  PWGLF/FORWARD/GEO 
-  FORWARD/analysis2  
-  FORWARD/GEO 
-  PWG0 
-  OADB
-  STEER/ESD 
-  STEER/STEERBase)
-
-set ( EXPORT FORWARD/analysis2/AliAODForwardMult.h 
-             FORWARD/analysis2/AliAODCentralMult.h 
-            FORWARD/analysis2/AliOADBForward.h
-             FORWARD/analysis2/AliForwardUtil.h  
-            FORWARD/analysis2/AliLandauGaus.h 
-            FORWARD/analysis2/AliLandauGausFitter.h 
-            FORWARD/analysis2/AliFMDEventInspector.h
-            FORWARD/analysis2/AliFMDMCEventInspector.h
-            FORWARD/analysis2/AliForwardCorrectionManager.h
-            FORWARD/analysis2/AliCentralCorrectionManager.h
-            FORWARD/analysis2/AliCorrectionManagerBase.h
-            FORWARD/analysis2/AliFMDCorrAcceptance.h
-            FORWARD/analysis2/AliFMDCorrSecondaryMap.h
-            FORWARD/analysis2/AliFMDCorrELossFit.h
-            FORWARD/analysis2/AliFMDCorrNoiseGain.h
-            FORWARD/analysis2/AliBaseESDTask.h
-            FORWARD/analysis2/AliBaseAODTask.h
-            FORWARD/analysis2/AliFMDEnergyFitter.h
-            FORWARD/analysis2/AliMCAuxHandler.h
-            FORWARD/analysis2/AliDisplacedVertexSelection.h
-            FORWARD/analysis2/AliFMDMCTrackELoss.h
-            FORWARD/analysis2/AliFMDEncodedEdx.h
-            FORWARD/analysis2/AliFMDStripIndex.h 
-            FORWARD/analysis2/AliBaseMCTrackDensity.h
-            FORWARD/analysis2/AliForwardFlowWeights.h
-            FORWARD/GEO/AliAnalysisTaskZDCPbPb.h
-            FORWARD/GEO/AliAnalysisTaskZDCpAcalib.h
-            FORWARD/GEO/AliAnalysisTaskZDCTreeMaker.h)
-
-set ( DHDR  PWGLFforward2LinkDef.h)
-
-# add_executable(runTrain
-#   FORWARD/analysis2/trains/runMain.cxx)
-# target_link_libraries(runTrain 
-#   ${ARLIBS} ${SHLIBS} ${PBLIBS} ${EXEFLAGS} ${ROOTCLIBS})
-# install(TARGETS runTrain 
-#   RUNTIME DESTINATION bin/tgt_${ALICE_TARGET})
-
-add_executable(runTrain
-  FORWARD/trains/trainMain.cxx)
-set(CMAKE_EXE_LINKER_FLAGS "${LDFLAGS}")
-target_link_libraries(runTrain 
-  ${BINLIBDIRS} ${ARLIBS} ${SHLIBS} ${PBLIBS} ${EXEFLAGS} ${ROOTCLIBS} 
-  -lSTEERBase -lESD -lAOD -lOADB -lANALYSIS -lANALYSISalice)
-install(TARGETS runTrain 
-  RUNTIME DESTINATION bin/tgt_${ALICE_TARGET})
-add_dependencies(runTrain STEERBase ESD AOD OADB ANALYSIS ANALYSISalice)
-
-# --------------------------------------------------------------------
-# Extra targets 
-#
-add_custom_command( OUTPUT FORWARD/doc/alice-int-2012-040.pdf 
-                    COMMAND pdflatex alice-int-2012-040
-                   COMMAND pdflatex alice-int-2012-040
-                   COMMAND pdflatex alice-int-2012-040
-                   COMMAND mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/FORWARD/doc
-                   COMMAND mv alice-int-2012-040.pdf ${CMAKE_CURRENT_BINARY_DIR}/FORWARD/doc/
-                   WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/FORWARD/doc
-                   MAIN_DEPENDENCY FORWARD/doc/alice-int-2012-040.tex)
-
-add_custom_command( OUTPUT FORWARD/doc/html/index.html 
-                   COMMAND mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/FORWARD/doc
-                    COMMAND sed -e 's,\\.\\./,${CMAKE_CURRENT_SOURCE_DIR}/FORWARD/,' -e 's,OUTPUT_DIRECTORY *=.*,OUTPUT_DIRECTORY = FORWARD/doc/,' < ${CMAKE_CURRENT_SOURCE_DIR}/FORWARD/doc/Doxyfile > ${CMAKE_CURRENT_BINARY_DIR}/FORWARD/doc/Doxyfile
-                   COMMAND doxygen ${CMAKE_CURRENT_BINARY_DIR}/FORWARD/doc/Doxyfile
-                   DEPENDS ${SRCS} ${HDRS})
-
-add_custom_target( PWGLFforward-doc DEPENDS FORWARD/doc/alice-int-2012-040.pdf )
-add_custom_target( PWGLFforward-doxy DEPENDS FORWARD/doc/html/index.html )
-
-add_custom_target( install-PWGLFforward2.par 
-  COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_BINARY_DIR}/${PACKAGE}.par ${CMAKE_INSTALL_PREFIX}
-  COMMAND ${CMAKE_COMMAND} -E cmake_echo_color --green --bold "${PACKAGE}.par installed in ${CMAKE_INSTALL_PREFIX}"
-  DEPENDS ${CMAKE_BINARY_DIR}/${PACKAGE}.par
-  DEPENDS test-${PACKAGE}.par)
-
-# --------------------------------------------------------------------
-# Extra installation targets 
-#
-# Install scripts 
-install ( DIRECTORY FORWARD/analysis2/scripts 
-         DESTINATION PWGLF/FORWARD/analysis2 
-         USE_SOURCE_PERMISSIONS
-         PATTERN "*~"    EXCLUDE
-         PATTERN ".svn"  EXCLUDE
-         PATTERN "*.d"   EXCLUDE 
-         PATTERN "*.so"  EXCLUDE)
-
-# install QA scripts 
-install ( DIRECTORY FORWARD/analysis2/qa
-         DESTINATION PWGLF/FORWARD/analysis2 
-         USE_SOURCE_PERMISSIONS
-         PATTERN "*~"    EXCLUDE
-         PATTERN ".svn"  EXCLUDE
-         PATTERN "*.d"   EXCLUDE 
-         PATTERN "*.so"  EXCLUDE)
-
-# install correction scripts 
-install ( DIRECTORY FORWARD/analysis2/corrs
-         DESTINATION PWGLF/FORWARD/analysis2 
-         PATTERN "*~"    EXCLUDE
-         PATTERN ".svn"  EXCLUDE
-         PATTERN "*.d"   EXCLUDE 
-         PATTERN "*.so"  EXCLUDE)
-
-# install trains 
-install ( DIRECTORY FORWARD/analysis2/trains 
-         DESTINATION PWGLF/FORWARD/analysis2 
-         PATTERN "*~"   EXCLUDE
-         PATTERN ".svn" EXCLUDE
-         PATTERN "*.d"  EXCLUDE 
-         PATTERN "*.so" EXCLUDE)
-
-# install sim 
-install ( DIRECTORY FORWARD/analysis2/sim 
-         DESTINATION PWGLF/FORWARD/analysis2 
-         PATTERN "*~"   EXCLUDE
-         PATTERN ".svn" EXCLUDE
-         PATTERN "*.d"  EXCLUDE 
-         PATTERN "*.so" EXCLUDE)
-       
-# install trains 
-install ( DIRECTORY FORWARD/trains 
-         DESTINATION PWGLF/FORWARD 
-         FILES_MATCHING PATTERN "*.C"
-         PATTERN "*~"        EXCLUDE
-         PATTERN ".svn"      EXCLUDE)
-         # PATTERN "*.d"       EXCLUDE 
-         # PATTERN "*.so"      EXCLUDE
-         # PATTERN "*.root"    EXCLUDE
-         # PATTERN "*.png"     EXCLUDE
-         # PATTERN "test*"     EXCLUDE
-         # PATTERN "export*.C" EXCLUDE
-         # PATTERN "dndeta_*.C" EXCLUDE
-         # PATTERN "dndeta_*.root" EXCLUDE
-
-# Install other scripts
-install ( FILES FORWARD/analysis2/AddTaskCentraldNdeta.C
-               FORWARD/analysis2/AddTaskCentralMCCorr.C
-               FORWARD/analysis2/AddTaskCentralMult.C
-               FORWARD/analysis2/AddTaskCentralTracks.C
-                FORWARD/analysis2/AddTaskCopyHeader.C
-               FORWARD/analysis2/AddTaskFMDELoss.C
-               FORWARD/analysis2/AddTaskFMDEventPlane.C
-               FORWARD/analysis2/AddTaskFMDMCTracks.C
-               FORWARD/analysis2/AddTaskForwardFlowQC.C
-               FORWARD/analysis2/AddTaskForwardMCCorr.C
-                FORWARD/analysis2/AddTaskForwardMult.C
-                FORWARD/analysis2/AddTaskForwardMultDists.C
-                FORWARD/analysis2/AddTaskForwardQA.C
-               FORWARD/analysis2/AddTaskForwarddNdeta.C
-               FORWARD/analysis2/AddTaskMCTruthdNdeta.C
-               FORWARD/analysis2/AddTaskMCParticleFilter.C
-               FORWARD/analysis2/DrawdNdeta.C
-               FORWARD/analysis2/DrawdNdetaSummary.C
-               FORWARD/analysis2/DrawMCCorrSummary.C
-               FORWARD/analysis2/DrawAODSummary.C
-               FORWARD/analysis2/DrawMultDistsSummary.C
-               FORWARD/analysis2/DrawUnfoldedSummary.C
-               FORWARD/analysis2/ForwardAODConfig.C
-               FORWARD/analysis2/CentralAODConfig.C
-               FORWARD/analysis2/dNdetaConfig.C
-                FORWARD/analysis2/MakeAOD.C
-               FORWARD/analysis2/MakedNdeta.C
-                FORWARD/analysis2/MakeELossFits.C
-               FORWARD/analysis2/MakeEvaluateTriggers.C
-               FORWARD/analysis2/MakeFlow.C
-               FORWARD/analysis2/MakeFMDEventPlane.C
-                FORWARD/analysis2/MakeForwardQA.C
-               FORWARD/analysis2/MakeMCCorr.C          
-                FORWARD/analysis2/OtherData.C
-                FORWARD/analysis2/other.root
-           DESTINATION PWGLF/FORWARD/analysis2 )
-
-         # FORWARD/analysis2/AliFMDCorrAcceptance.h
-         # FORWARD/analysis2/AliFMDCorrDoubleHit.h
-         # FORWARD/analysis2/AliFMDCorrector.h
-         # FORWARD/analysis2/AliFMDCorrELossFit.h
-         # FORWARD/analysis2/AliFMDCorrMergingEfficiency.h
-         # FORWARD/analysis2/AliFMDCorrSecondaryMap.h
-         # FORWARD/analysis2/AliFMDCorrVertexBias.h
-         # FORWARD/analysis2/AliForwardUtil.h
-        # FORWARD/analysis2/AliForwardCorrectionManager.h
-        # FORWARD/analysis2/AliCorrectionManagerBase.h
-
-# Install corrections 
-install ( DIRECTORY FORWARD/corrections/Empirical
-                   FORWARD/corrections/Normalization
-          DESTINATION PWGLF/FORWARD/corrections 
-         PATTERN "*~"   EXCLUDE
-         PATTERN ".svn" EXCLUDE)
-
-# Install shell script 
-install ( FILES FORWARD/analysis2/Run.sh 
-               FORWARD/analysis2/liteAnalysis.sh
-               FORWARD/analysis2/gridAnalysis.sh
-               FORWARD/analysis2/baseAnalysis.sh
-         DESTINATION PWGLF/FORWARD/analysis2 
-         PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
-                      GROUP_EXECUTE GROUP_READ
-                     WORLD_EXECUTE WORLD_READ )
-
-
-# --------------------------------------------------------------------
-#
-# EOF
-# 
diff --git a/PWGLF/CMakelibPWGLFforwardhit.pkg b/PWGLF/CMakelibPWGLFforwardhit.pkg
deleted file mode 100644 (file)
index 84d09b4..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-# -*- mode: CMake -*-
-#------------------------------------------------------------------------#
-# Package File for PWGLFforward2                                         #
-# Author : Christian Holm Christensen (cholm@nbi.dk)                     #
-# 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   
-  FORWARD/analysis2/AliFMDMCHitEnergyFitter.cxx
-  FORWARD/analysis2/AliFMDMCHitEnergyFitterTask.cxx)
-
-string ( REPLACE ".cxx" ".h" HDRS "${SRCS}" )
-set ( HDRS ${HDRS} FORWARD/analysis2/AliFMDEncodedEdx.h )
-
-set ( EINCLUDE  
-  ANALYSIS 
-  PWGLF/FORWARD/analysis2  
-  PWGLF/FORWARD/GEO 
-  FORWARD/analysis2  
-  FORWARD/GEO 
-  PWG0 
-  STEER/ESD 
-  STEER/STEERBase
-  STEER/STEER
-  FMD)
-
-set ( DHDR  PWGLFforwardhitLinkDef.h)
-
-# --------------------------------------------------------------------
-# Extra installation targets 
-#
-# Install other scripts
-install ( FILES FORWARD/analysis2/AddTaskFMDMCHit.C
-           DESTINATION PWGLF/FORWARD/analysis2 )
-
-add_custom_target( install-PWGLFforwardhit.par 
-  COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_BINARY_DIR}/${PACKAGE}.par ${CMAKE_INSTALL_PREFIX}
-  COMMAND ${CMAKE_COMMAND} -E cmake_echo_color --green --bold "${PACKAGE}.par installed in ${CMAKE_INSTALL_PREFIX}"
-  DEPENDS ${CMAKE_BINARY_DIR}/${PACKAGE}.par
-  DEPENDS test-${PACKAGE}.par)
-
-
-# --------------------------------------------------------------------
-#
-# EOF
-# 
diff --git a/PWGLF/FORWARD/CMakeLists.txt b/PWGLF/FORWARD/CMakeLists.txt
new file mode 100644 (file)
index 0000000..f65e781
--- /dev/null
@@ -0,0 +1,314 @@
+# **************************************************************************
+# * 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 PWGLFforward2)
+
+# Module include folder
+include_directories(${AliRoot_SOURCE_DIR}/PWGLF/FORWARD)
+
+# Additional includes - alphabetical order except ROOT
+include_directories(${ROOT_INCLUDE_DIRS}
+                    ${AliRoot_SOURCE_DIR}/ANALYSIS/ANALYSIS
+                    ${AliRoot_SOURCE_DIR}/ANALYSIS/ANALYSISalice
+                    ${AliRoot_SOURCE_DIR}/OADB
+                    ${AliRoot_SOURCE_DIR}/PWGLF/FORWARD/analysis2
+                    ${AliRoot_SOURCE_DIR}/STEER/AOD
+                    ${AliRoot_SOURCE_DIR}/STEER/ESD
+                    ${AliRoot_SOURCE_DIR}/STEER/STEERBase
+  )
+
+# Sources - alphabetical order
+set(SRCS
+  # ZDC tasks
+  GEO/AliAnalysisTaskZDCPbPb.cxx
+  GEO/AliAnalysisTaskZDCTreeMaker.cxx
+  GEO/AliAnalysisTaskZDCpAcalib.cxx
+  # AOD objects
+  analysis2/AliAODCentralMult.cxx
+  analysis2/AliAODForwardEP.cxx
+  analysis2/AliAODForwardMult.cxx
+  # Interface to OADB backed by a TTree 
+  analysis2/AliOADBForward.cxx
+  # Correction managers 
+  analysis2/AliCorrectionManagerBase.cxx 
+  analysis2/AliForwardCorrectionManager.cxx
+  analysis2/AliCentralCorrectionManager.cxx
+  # Central (SPD) code 
+  analysis2/AliCentralCorrAcceptance.cxx 
+  analysis2/AliCentralCorrSecondaryMap.cxx
+  analysis2/AliCentraldNdetaTask.cxx
+  analysis2/AliCentralMCCorrectionsTask.cxx
+  analysis2/AliCentralMCMultiplicityTask.cxx
+  analysis2/AliCentralMultiplicityTask.cxx
+  analysis2/AliSPDMCTrackDensity.cxx
+  # Aux tasks and code 
+  analysis2/AliCopyHeaderTask.cxx
+  analysis2/AliBasedNdetaTask.cxx
+  analysis2/AliBaseMCTrackDensity.cxx
+  analysis2/AliMCTruthdNdetaTask.cxx
+  analysis2/AliDisplacedVertexSelection.cxx
+  analysis2/AliPoissonCalculator.cxx
+  analysis2/AliMCAuxHandler.cxx
+  # Forward Aux
+  analysis2/AliForwardFlowWeights.cxx
+  analysis2/AliForwardUtil.cxx
+  analysis2/AliFMDMultCuts.cxx
+  # FMD corrections
+  analysis2/AliFMDCorrAcceptance.cxx
+  analysis2/AliFMDCorrDoubleHit.cxx
+  analysis2/AliFMDCorrector.cxx 
+  analysis2/AliFMDCorrELossFit.cxx 
+  analysis2/AliFMDCorrMergingEfficiency.cxx
+  analysis2/AliFMDCorrSecondaryMap.cxx 
+  analysis2/AliFMDCorrVertexBias.cxx
+  # FMD algortithmns 
+  analysis2/AliFMDDensityCalculator.cxx
+  analysis2/AliFMDEnergyFitter.cxx
+  analysis2/AliFMDEventInspector.cxx
+  analysis2/AliFMDEventPlaneFinder.cxx
+  analysis2/AliFMDHistCollector.cxx
+  analysis2/AliFMDESDFixer.cxx
+  analysis2/AliFMDSharingFilter.cxx
+  # FMD MC algorithms
+  analysis2/AliFMDMCCorrector.cxx
+  analysis2/AliFMDMCDensityCalculator.cxx
+  analysis2/AliFMDMCEventInspector.cxx
+  analysis2/AliFMDMCSharingFilter.cxx
+  analysis2/AliFMDMCTrackDensity.cxx
+  # Forward tasks 
+  analysis2/AliBaseESDTask.cxx
+  analysis2/AliBaseAODTask.cxx
+  analysis2/AliBaseMCCorrectionsTask.cxx
+  analysis2/AliFMDEnergyFitterTask.cxx 
+  analysis2/AliFMDEventPlaneTask.cxx
+  analysis2/AliForwarddNdetaTask.cxx
+  analysis2/AliForwardFlowTaskQC.cxx
+  analysis2/AliForwardMCCorrectionsTask.cxx
+  analysis2/AliForwardMCFlowTaskQC.cxx
+  analysis2/AliForwardMCMultiplicityTask.cxx 
+  analysis2/AliForwardMultiplicityBase.cxx
+  analysis2/AliForwardMultiplicityTask.cxx
+  analysis2/AliForwardQATask.cxx
+  analysis2/AliForwardCreateResponseMatrices.cxx
+  analysis2/AliForwardMultiplicityDistribution.cxx
+  analysis2/AliForwardMultDists.cxx
+  # MC investigations 
+  analysis2/AliFMDMCTrackELoss.cxx
+  analysis2/AliFMDMCTrackInspector.cxx 
+  analysis2/AliFMDMCTrackInspectorTask.cxx 
+  # Photons 
+  photons/AliAnalysisTaskPMD.cxx
+  photons/AliAnalysisTaskPMDSim.cxx
+  )
+
+# Headers from sources
+string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
+
+# Additional headers
+set ( HDRS ${HDRS} 
+  analysis2/AliFMDStripIndex.h 
+  analysis2/AliFMDEncodedEdx.h 
+  analysis2/AliLandauGaus.h 
+  analysis2/AliLandauGausFitter.h 
+  analysis2/AliFMDCorrNoiseGain.h
+  )
+
+# Additional definitions
+if((DEFINED ALIROOT_SVN_REVISION)) 
+  add_definitions(-DALIROOT_SVN_REVISION=${ALIROOT_SVN_REVISION})
+elseif((DEFINED ALIROOT_REVISION)) 
+  add_definitions(-DALIROOT_REVISION=\"${ALIROOT_REVISION}\")
+endif((DEFINED ALIROOT_SVN_REVISION)) 
+if((DEFINED ALIROOT_SVN_BRANCH)) 
+  add_definitions(-DALIROOT_SVN_BRANCH=\"${ALIROOT_SVN_BRANCH}\")
+elseif((DEFINED ALIROOT_BRANCH)) 
+  add_definitions(-DALIROOT_BRANCH=\"${ALIROOT_BRANCH}\")
+endif((DEFINED ALIROOT_SVN_BRANCH))
+
+# 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)
+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)
+
+# Extra executable
+add_executable(runTrain
+  trains/trainMain.cxx
+  )
+target_link_libraries(runTrain ANALYSISalice Rint)
+install(TARGETS runTrain 
+  RUNTIME DESTINATION bin)
+
+# --------------------------------------------------------------------
+# Extra targets 
+#
+add_custom_command( OUTPUT doc/alice-int-2012-040.pdf 
+                    COMMAND pdflatex alice-int-2012-040
+                   COMMAND pdflatex alice-int-2012-040
+                   COMMAND pdflatex alice-int-2012-040
+                   COMMAND mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/doc
+                   COMMAND mv alice-int-2012-040.pdf ${CMAKE_CURRENT_BINARY_DIR}/doc/
+                   WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/doc
+                   MAIN_DEPENDENCY doc/alice-int-2012-040.tex)
+
+add_custom_command( OUTPUT doc/html/index.html 
+                   COMMAND mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/doc
+                    COMMAND sed -e 's,\\.\\./,${CMAKE_CURRENT_SOURCE_DIR}/,' -e 's,OUTPUT_DIRECTORY *=.*,OUTPUT_DIRECTORY = doc/,' < ${CMAKE_CURRENT_SOURCE_DIR}/doc/Doxyfile > ${CMAKE_CURRENT_BINARY_DIR}/doc/Doxyfile
+                   COMMAND doxygen ${CMAKE_CURRENT_BINARY_DIR}/doc/Doxyfile
+                   DEPENDS ${SRCS} ${HDRS})
+
+add_custom_target( PWGLFforward-doc DEPENDS doc/alice-int-2012-040.pdf )
+add_custom_target( PWGLFforward-doxy DEPENDS doc/html/index.html )
+
+add_custom_target( install-PWGLFforward2.par 
+  COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_BINARY_DIR}/${PACKAGE}.par ${CMAKE_INSTALL_PREFIX}
+  COMMAND ${CMAKE_COMMAND} -E cmake_echo_color --green --bold "${PACKAGE}.par installed in ${CMAKE_INSTALL_PREFIX}"
+  DEPENDS ${CMAKE_BINARY_DIR}/${PACKAGE}.par
+  DEPENDS test-${PACKAGE}.par)
+
+# --------------------------------------------------------------------
+# Extra installation targets 
+#
+# Install scripts 
+install ( DIRECTORY analysis2/scripts 
+         DESTINATION PWGLF/FORWARD/analysis2 
+         USE_SOURCE_PERMISSIONS
+         PATTERN "*~"    EXCLUDE
+         PATTERN ".svn"  EXCLUDE
+         PATTERN "*.d"   EXCLUDE 
+         PATTERN "*.so"  EXCLUDE)
+
+# install QA scripts 
+install ( DIRECTORY analysis2/qa
+         DESTINATION PWGLF/FORWARD/analysis2 
+         USE_SOURCE_PERMISSIONS
+         PATTERN "*~"    EXCLUDE
+         PATTERN ".svn"  EXCLUDE
+         PATTERN "*.d"   EXCLUDE 
+         PATTERN "*.so"  EXCLUDE)
+
+# install correction scripts 
+install ( DIRECTORY analysis2/corrs
+         DESTINATION PWGLF/FORWARD/analysis2 
+         PATTERN "*~"    EXCLUDE
+         PATTERN ".svn"  EXCLUDE
+         PATTERN "*.d"   EXCLUDE 
+         PATTERN "*.so"  EXCLUDE)
+
+# install trains 
+install ( DIRECTORY analysis2/trains 
+         DESTINATION PWGLF/FORWARD/analysis2 
+         PATTERN "*~"   EXCLUDE
+         PATTERN ".svn" EXCLUDE
+         PATTERN "*.d"  EXCLUDE 
+         PATTERN "*.so" EXCLUDE)
+
+# install trains 
+install ( DIRECTORY trains 
+         DESTINATION PWGLF/FORWARD 
+         FILES_MATCHING PATTERN "*.C"
+         PATTERN "*~"        EXCLUDE
+         PATTERN ".svn"      EXCLUDE)
+
+# Install other scripts
+install ( FILES analysis2/AddTaskCentraldNdeta.C
+               analysis2/AddTaskCentralMCCorr.C
+               analysis2/AddTaskCentralMult.C
+               analysis2/AddTaskCentralTracks.C
+                analysis2/AddTaskCopyHeader.C
+               analysis2/AddTaskFMDELoss.C
+               analysis2/AddTaskFMDEventPlane.C
+               analysis2/AddTaskFMDMCTracks.C
+               analysis2/AddTaskForwardFlowQC.C
+               analysis2/AddTaskForwardMCCorr.C
+                analysis2/AddTaskForwardMult.C
+                analysis2/AddTaskForwardMultDists.C
+                analysis2/AddTaskForwardQA.C
+               analysis2/AddTaskForwarddNdeta.C
+               analysis2/AddTaskMCTruthdNdeta.C
+               analysis2/AddTaskMCParticleFilter.C
+               analysis2/DrawdNdeta.C
+               analysis2/DrawdNdetaSummary.C
+               analysis2/DrawMCCorrSummary.C
+               analysis2/DrawAODSummary.C
+               analysis2/DrawMultDistsSummary.C
+               analysis2/DrawUnfoldedSummary.C
+               analysis2/ForwardAODConfig.C
+               analysis2/CentralAODConfig.C
+               analysis2/dNdetaConfig.C
+                analysis2/MakeAOD.C
+               analysis2/MakedNdeta.C
+                analysis2/MakeELossFits.C
+               analysis2/MakeEvaluateTriggers.C
+               analysis2/MakeFlow.C
+               analysis2/MakeFMDEventPlane.C
+                analysis2/MakeForwardQA.C
+               analysis2/MakeMCCorr.C          
+                analysis2/OtherData.C
+                analysis2/other.root
+           DESTINATION PWGLF/FORWARD/analysis2 )
+
+# Install corrections 
+install ( DIRECTORY corrections/Empirical
+                   corrections/Normalization
+          DESTINATION PWGLF/FORWARD/corrections 
+         PATTERN "*~"   EXCLUDE
+         PATTERN ".svn" EXCLUDE)
+
+# Install shell script 
+install ( FILES analysis2/Run.sh 
+               analysis2/liteAnalysis.sh
+               analysis2/gridAnalysis.sh
+               analysis2/baseAnalysis.sh
+         DESTINATION PWGLF/FORWARD/analysis2 
+         PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
+                      GROUP_EXECUTE GROUP_READ
+                     WORLD_EXECUTE WORLD_READ )
+
+# install sim 
+install ( DIRECTORY analysis2/sim 
+         DESTINATION PWGLF/FORWARD/analysis2 
+         PATTERN "*~"   EXCLUDE
+         PATTERN ".svn" EXCLUDE
+         PATTERN "*.d"  EXCLUDE 
+         PATTERN "*.so" EXCLUDE)
+       
+
+# --------------------------------------------------------------------
diff --git a/PWGLF/PWGLFforwardhitLinkDef.h b/PWGLF/PWGLFforwardhitLinkDef.h
deleted file mode 100644 (file)
index fa66549..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-// -*- mode: c++ -*- 
-/* Copyright (C) 2007 Christian Holm Christensen <cholm@nbi.dk>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public License
- * as published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- */
-#if defined(__CINT__)
-/**
- * @file   PWGLFforward2LinkDef.h
- * @author Christian Holm Christensen <cholm@master.hehi.nbi.dk>
- * @date   Fri May 24 09:24:36 2013
- * 
- * @brief  Link specifications
- */
-#pragma link off all globals;
-#pragma link off all classes;
-#pragma link off all functions;
-
-#pragma link C++ nestedclasses;
-
-// FMD algorithms 
-#pragma link C++ class AliFMDMCHitEnergyFitter+;
-#if ROOT_VERSION_CODE < 0x56300 // ROOT_VERSION(5,99,0)
-#pragma link C++ class AliFMDMCHitEnergyFitter::RingHistos+;
-#endif
-#pragma link C++ class AliFMDMCHitEnergyFitterTask+;
-
-#endif
-//
-// EOF
-//