Luke's 1st commit of Analysis task
[u/mrichter/AliRoot.git] / PWG2 / CMakelibPWG2forward2.pkg
CommitLineData
72cc12cd 1# -*- mode: CMake -*-
2#------------------------------------------------------------------------#
3# Package File for PWG2forward2 #
4# Author : Christian Holm Christensen (cholm@nbi.dk) #
5# Variables Defined : #
6# #
7# SRCS - C++ source files #
8# HDRS - C++ header files #
9# DHDR - ROOT Dictionary Linkdef header file #
10# CSRCS - C source files #
11# CHDRS - C header files #
12# EINCLUDE - Include directories #
13# EDEFINE - Compiler definitions #
14# ELIBS - Extra libraries to link #
15# ELIBSDIR - Extra library directories #
16# PACKFFLAGS - Fortran compiler flags for package #
17# PACKCXXFLAGS - C++ compiler flags for package #
18# PACKCFLAGS - C compiler flags for package #
19# PACKSOFLAGS - Shared library linking flags #
20# PACKLDFLAGS - Module linker flags #
21# PACKBLIBS - Libraries to link (Executables only) #
22# EXPORT - Header files to be exported #
23# CINTHDRS - Dictionary header files #
24# CINTAUTOLINK - Set automatic dictionary generation #
25# ARLIBS - Archive Libraries and objects for linking (Executables only) #
26# SHLIBS - Shared Libraries and objects for linking (Executables only) #
27#------------------------------------------------------------------------#
28
29set ( SRCS
aef19df1 30 FORWARD/analysis2/AliAODForwardMult.cxx
31 FORWARD/analysis2/AliFMDCorrAcceptance.cxx
32 FORWARD/analysis2/AliFMDCorrDoubleHit.cxx
33 FORWARD/analysis2/AliFMDCorrELossFit.cxx
34 FORWARD/analysis2/AliFMDCorrMergingEfficiency.cxx
35 FORWARD/analysis2/AliFMDCorrSecondaryMap.cxx
36 FORWARD/analysis2/AliFMDCorrVertexBias.cxx
37 FORWARD/analysis2/AliFMDCorrector.cxx
38 FORWARD/analysis2/AliFMDDensityCalculator.cxx
39 FORWARD/analysis2/AliFMDEnergyFitter.cxx
40 FORWARD/analysis2/AliFMDEnergyFitterTask.cxx
41 FORWARD/analysis2/AliFMDEventInspector.cxx
42 FORWARD/analysis2/AliFMDHistCollector.cxx
43 FORWARD/analysis2/AliFMDSharingFilter.cxx
fb1842e1 44 FORWARD/analysis2/AliFMDMCEventInspector.cxx
aef19df1 45 FORWARD/analysis2/AliFMDMCCorrector.cxx
46 FORWARD/analysis2/AliFMDMCDensityCalculator.cxx
47 FORWARD/analysis2/AliFMDMCSharingFilter.cxx
3dd34bb1 48 FORWARD/analysis2/AliFMDMCTrackDensity.cxx
aef19df1 49 FORWARD/analysis2/AliForwardCorrectionManager.cxx
50 FORWARD/analysis2/AliForwardMultiplicityBase.cxx
51 FORWARD/analysis2/AliForwardMultiplicityTask.cxx
52 FORWARD/analysis2/AliForwardMCMultiplicityTask.cxx
53 FORWARD/analysis2/AliForwardMCCorrectionsTask.cxx
54 FORWARD/analysis2/AliForwarddNdetaTask.cxx
55 FORWARD/analysis2/AliForwardUtil.cxx
56 FORWARD/analysis2/AliCentralMultiplicityTask.cxx
52047b6f 57 FORWARD/analysis2/AliCentralMCMultiplicityTask.cxx
3dd34bb1 58 FORWARD/analysis2/AliCentralMCCorrectionsTask.cxx
aef19df1 59 FORWARD/analysis2/AliAODCentralMult.cxx
60 FORWARD/analysis2/AliCentralCorrSecondaryMap.cxx
61 FORWARD/analysis2/AliCentralCorrAcceptance.cxx
62 FORWARD/analysis2/AliCentraldNdetaTask.cxx
63 FORWARD/analysis2/AliBasedNdetaTask.cxx
1195ff50 64 FORWARD/analysis2/AliMCTruthdNdetaTask.cxx
58f5fae2 65 FORWARD/analysis2/AliForwardFlowUtil.cxx
aef19df1 66 FORWARD/analysis2/AliForwardFlowTaskQC.cxx
3dd34bb1 67 FORWARD/analysis2/AliSPDMCTrackDensity.cxx
bfcbb65a 68 FORWARD/analysis2/AliFMDMultCuts.cxx
506d0527 69 FORWARD/analysis2/AliPoissonCalculator.cxx
87863667 70 FORWARD/analysis2/AliForwardQATask.cxx
72cc12cd 71)
9ece451d 72
73string ( REPLACE ".cxx" ".h" HDRS "${SRCS}" )
cc83fca2 74set ( HDRS ${HDRS} FORWARD/analysis2/AliFMDStripIndex.h )
9ece451d 75
bfcbb65a 76set ( EINCLUDE ANALYSIS PWG2/FORWARD/analysis2 STEER PWG0)
9ece451d 77
b2e7f2d6 78set ( EXPORT FORWARD/analysis2/AliAODForwardMult.h
744c1fb2 79 FORWARD/analysis2/AliAODCentralMult.h
52047b6f 80 FORWARD/analysis2/AliForwardUtil.h
81 FORWARD/analysis2/AliFMDEventInspector.h
82 FORWARD/analysis2/AliFMDMCEventInspector.h)
cc83fca2 83
9ece451d 84set ( DHDR PWG2forward2LinkDef.h)
72cc12cd 85
b2e7f2d6 86# --------------------------------------------------------------------
87# Extra targets
88#
89add_custom_command( OUTPUT FORWARD/doc/doc.pdf
90 COMMAND pdflatex doc
91 COMMAND pdflatex doc
92 COMMAND pdflatex doc
93 COMMAND mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/FORWARD/doc
94 COMMAND mv doc.pdf ${CMAKE_CURRENT_BINARY_DIR}/FORWARD/doc/
95 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/FORWARD/doc
96 MAIN_DEPENDENCY FORWARD/doc/doc.tex )
97
98add_custom_command( OUTPUT FORWARD/doc/html/index.html
99 COMMAND mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/FORWARD/doc
23f0e043 100 COMMAND sed -e 's,../analysis2,${CMAKE_CURRENT_SOURCE_DIR}/FORWARD/analysis2,' -e 's,OUTPUT_DIRECTORY *=.*,OUTPUT_DIRECTORY = FORWARD/doc/,' < ${CMAKE_CURRENT_SOURCE_DIR}/FORWARD/doc/Doxyfile > ${CMAKE_CURRENT_BINARY_DIR}/FORWARD/doc/Doxyfile
b2e7f2d6 101 COMMAND doxygen ${CMAKE_CURRENT_BINARY_DIR}/FORWARD/doc/Doxyfile
102 DEPENDS ${SRCS} ${HDRS} )
103
104add_custom_target( PWG2forward-doc DEPENDS FORWARD/doc/doc.pdf )
105add_custom_target( PWG2forward-doxy DEPENDS FORWARD/doc/html/index.html )
106
3dd34bb1 107add_custom_target( install-PWG2forward2.par
108 COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_BINARY_DIR}/${PACKAGE}.par ${CMAKE_INSTALL_PREFIX}
109 COMMAND ${CMAKE_COMMAND} -E cmake_echo_color --green --bold "${PACKAGE}.par installed in ${CMAKE_INSTALL_PREFIX}"
110 DEPENDS ${CMAKE_BINARY_DIR}/${PACKAGE}.par)
111
72cc12cd 112# --------------------------------------------------------------------
113# Extra installation targets
114#
115# Install scripts
116install ( DIRECTORY FORWARD/analysis2/scripts
117 DESTINATION PWG2/FORWARD/analysis2
118 PATTERN ".d" EXCLUDE
119 PATTERN ".so" EXCLUDE)
120
506d0527 121# install trains
122install ( DIRECTORY FORWARD/analysis2/trains
123 DESTINATION PWG2/FORWARD/analysis2
124 PATTERN ".d" EXCLUDE
125 PATTERN ".so" EXCLUDE)
126
72cc12cd 127# Install other scripts
0be6c8cd 128install ( FILES FORWARD/analysis2/AddTaskCentraldNdeta.C
3dd34bb1 129 FORWARD/analysis2/AddTaskCentralMCCorr.C
0be6c8cd 130 FORWARD/analysis2/AddTaskCentralMult.C
131 FORWARD/analysis2/AddTaskCentralTracks.C
f69bd0da 132 FORWARD/analysis2/AddTaskCopyHeader.C
f69bd0da 133 FORWARD/analysis2/AddTaskFMDELoss.C
3dd34bb1 134 FORWARD/analysis2/AddTaskForwardMCCorr.C
efbb21e6 135 FORWARD/analysis2/AddTaskForwardMult.C
87863667 136 FORWARD/analysis2/AddTaskForwardQA.C
b2e7f2d6 137 FORWARD/analysis2/AddTaskForwarddNdeta.C
1195ff50 138 FORWARD/analysis2/AddTaskMCTruthdNdeta.C
b2e7f2d6 139 FORWARD/analysis2/DrawdNdeta.C
fb1842e1 140 FORWARD/analysis2/ForwardAODConfig.C
3dd34bb1 141 FORWARD/analysis2/CentralAODConfig.C
72cc12cd 142 FORWARD/analysis2/MakeAOD.C
b2e7f2d6 143 FORWARD/analysis2/MakedNdeta.C
72cc12cd 144 FORWARD/analysis2/MakeELossFits.C
52047b6f 145 FORWARD/analysis2/MakeEvaluateTriggers.C
3dd34bb1 146 FORWARD/analysis2/MakeMCCorr.C
72cc12cd 147 FORWARD/analysis2/OtherData.C
72cc12cd 148 DESTINATION PWG2/FORWARD/analysis2 )
149
150# Install corrections
151install ( DIRECTORY FORWARD/corrections/DoubleHit
152 FORWARD/corrections/ELossFits
153 FORWARD/corrections/MergingEfficiency
154 FORWARD/corrections/SecondaryMap
155 FORWARD/corrections/VertexBias
156 FORWARD/corrections/Acceptance
fb1842e1 157 FORWARD/corrections/Normalization
9dd7ff01 158 FORWARD/corrections/CentralAcceptance
159 FORWARD/corrections/CentralSecMap
72cc12cd 160 DESTINATION PWG2/FORWARD/corrections
161 PATTERN ".svn" EXCLUDE)
162
163# Install shell script
164install ( FILES FORWARD/analysis2/Run.sh
165 DESTINATION PWG2/FORWARD/analysis2
166 PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
167 GROUP_EXECUTE GROUP_READ
168 WORLD_EXECUTE WORLD_READ )
169
170
171# --------------------------------------------------------------------
172#
173# EOF
174#