Added a row deleted by mistake
[u/mrichter/AliRoot.git] / PWGLF / CMakelibPWGLFforward2.pkg
CommitLineData
72cc12cd 1# -*- mode: CMake -*-
2#------------------------------------------------------------------------#
1de8812e 3# Package File for PWGLFforward2 #
72cc12cd 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
3c097975 29if((DEFINED ALIROOT_SVN_REVISION))
30 add_definitions(-DALIROOT_SVN_REVISION=${ALIROOT_SVN_REVISION})
3004df39
CHC
31elseif((DEFINED ALIROOT_REVISION))
32 add_definitions(-DALIROOT_REVISION=\"${ALIROOT_REVISION}\")
3c097975 33endif((DEFINED ALIROOT_SVN_REVISION))
34if((DEFINED ALIROOT_SVN_BRANCH))
35 add_definitions(-DALIROOT_SVN_BRANCH=\"${ALIROOT_SVN_BRANCH}\")
3004df39
CHC
36elseif((DEFINED ALIROOT_BRANCH))
37 add_definitions(-DALIROOT_BRANCH=\"${ALIROOT_BRANCH}\")
3c097975 38endif((DEFINED ALIROOT_SVN_BRANCH))
39
72cc12cd 40set ( SRCS
8449e3e0 41 # ZDC tasks
42 FORWARD/GEO/AliAnalysisTaskZDCPbPb.cxx
43 FORWARD/GEO/AliAnalysisTaskZDCTreeMaker.cxx
44 FORWARD/GEO/AliAnalysisTaskZDCpAcalib.cxx
45 # AOD objects
4bcdcbc1 46 FORWARD/analysis2/AliAODCentralMult.cxx
47 FORWARD/analysis2/AliAODForwardEP.cxx
aef19df1 48 FORWARD/analysis2/AliAODForwardMult.cxx
8449e3e0 49 # Interface to OADB backed by a TTree
50 FORWARD/analysis2/AliOADBForward.cxx
51 # Correction managers
52 FORWARD/analysis2/AliCorrectionManagerBase.cxx
53 FORWARD/analysis2/AliForwardCorrectionManager.cxx
54 FORWARD/analysis2/AliCentralCorrectionManager.cxx
55 # Central (SPD) code
4bcdcbc1 56 FORWARD/analysis2/AliCentralCorrAcceptance.cxx
57 FORWARD/analysis2/AliCentralCorrSecondaryMap.cxx
58 FORWARD/analysis2/AliCentraldNdetaTask.cxx
59 FORWARD/analysis2/AliCentralMCCorrectionsTask.cxx
60 FORWARD/analysis2/AliCentralMCMultiplicityTask.cxx
61 FORWARD/analysis2/AliCentralMultiplicityTask.cxx
8449e3e0 62 FORWARD/analysis2/AliSPDMCTrackDensity.cxx
63 # Aux tasks and code
4bcdcbc1 64 FORWARD/analysis2/AliCopyHeaderTask.cxx
8449e3e0 65 FORWARD/analysis2/AliBasedNdetaTask.cxx
66 FORWARD/analysis2/AliBaseMCTrackDensity.cxx
67 FORWARD/analysis2/AliMCTruthdNdetaTask.cxx
4bcdcbc1 68 FORWARD/analysis2/AliDisplacedVertexSelection.cxx
8449e3e0 69 FORWARD/analysis2/AliPoissonCalculator.cxx
70 FORWARD/analysis2/AliMCAuxHandler.cxx
71 # Forward Aux
72 FORWARD/analysis2/AliForwardFlowWeights.cxx
73 FORWARD/analysis2/AliForwardUtil.cxx
74 FORWARD/analysis2/AliFMDMultCuts.cxx
75 # FMD corrections
aef19df1 76 FORWARD/analysis2/AliFMDCorrAcceptance.cxx
77 FORWARD/analysis2/AliFMDCorrDoubleHit.cxx
4bcdcbc1 78 FORWARD/analysis2/AliFMDCorrector.cxx
aef19df1 79 FORWARD/analysis2/AliFMDCorrELossFit.cxx
80 FORWARD/analysis2/AliFMDCorrMergingEfficiency.cxx
81 FORWARD/analysis2/AliFMDCorrSecondaryMap.cxx
82 FORWARD/analysis2/AliFMDCorrVertexBias.cxx
8449e3e0 83 # FMD algortithmns
aef19df1 84 FORWARD/analysis2/AliFMDDensityCalculator.cxx
85 FORWARD/analysis2/AliFMDEnergyFitter.cxx
aef19df1 86 FORWARD/analysis2/AliFMDEventInspector.cxx
2b556440 87 FORWARD/analysis2/AliFMDEventPlaneFinder.cxx
aef19df1 88 FORWARD/analysis2/AliFMDHistCollector.cxx
0ccdab7b 89 FORWARD/analysis2/AliFMDESDFixer.cxx
8449e3e0 90 FORWARD/analysis2/AliFMDSharingFilter.cxx
91 # FMD MC algorithms
aef19df1 92 FORWARD/analysis2/AliFMDMCCorrector.cxx
93 FORWARD/analysis2/AliFMDMCDensityCalculator.cxx
4bcdcbc1 94 FORWARD/analysis2/AliFMDMCEventInspector.cxx
aef19df1 95 FORWARD/analysis2/AliFMDMCSharingFilter.cxx
3dd34bb1 96 FORWARD/analysis2/AliFMDMCTrackDensity.cxx
8449e3e0 97 # Forward tasks
1de8812e 98 FORWARD/analysis2/AliBaseESDTask.cxx
99 FORWARD/analysis2/AliBaseAODTask.cxx
100 FORWARD/analysis2/AliBaseMCCorrectionsTask.cxx
8449e3e0 101 FORWARD/analysis2/AliFMDEnergyFitterTask.cxx
102 FORWARD/analysis2/AliFMDEventPlaneTask.cxx
4bcdcbc1 103 FORWARD/analysis2/AliForwarddNdetaTask.cxx
104 FORWARD/analysis2/AliForwardFlowTaskQC.cxx
105 FORWARD/analysis2/AliForwardMCCorrectionsTask.cxx
106 FORWARD/analysis2/AliForwardMCFlowTaskQC.cxx
107 FORWARD/analysis2/AliForwardMCMultiplicityTask.cxx
aef19df1 108 FORWARD/analysis2/AliForwardMultiplicityBase.cxx
109 FORWARD/analysis2/AliForwardMultiplicityTask.cxx
4bcdcbc1 110 FORWARD/analysis2/AliForwardQATask.cxx
ad7be237 111 FORWARD/analysis2/AliForwardCreateResponseMatrices.cxx
8449e3e0 112 FORWARD/analysis2/AliForwardMultiplicityDistribution.cxx
bfab35d9 113 FORWARD/analysis2/AliForwardMultDists.cxx
7a3e34f4 114 # MC investigations
115 FORWARD/analysis2/AliFMDMCTrackELoss.cxx
116 FORWARD/analysis2/AliFMDMCTrackInspector.cxx
117 FORWARD/analysis2/AliFMDMCTrackInspectorTask.cxx
118 # Photons
bfc97f52 119 FORWARD/photons/AliAnalysisTaskPMD.cxx
bfc97f52 120 FORWARD/photons/AliAnalysisTaskPMDSim.cxx
72cc12cd 121)
9ece451d 122
123string ( REPLACE ".cxx" ".h" HDRS "${SRCS}" )
a19faec0 124set ( HDRS ${HDRS}
125 FORWARD/analysis2/AliFMDStripIndex.h
7a3e34f4 126 FORWARD/analysis2/AliFMDEncodedEdx.h
a19faec0 127 FORWARD/analysis2/AliLandauGaus.h
128 FORWARD/analysis2/AliLandauGausFitter.h
0ccdab7b 129 FORWARD/analysis2/AliFMDCorrNoiseGain.h
a19faec0 130 )
9ece451d 131
4bcdcbc1 132set ( EINCLUDE
133 ANALYSIS
134 PWGLF/FORWARD/analysis2
135 PWGLF/FORWARD/GEO
8449e3e0 136 FORWARD/analysis2
137 FORWARD/GEO
4bcdcbc1 138 PWG0
7377baa3 139 OADB
4bcdcbc1 140 STEER/ESD
141 STEER/STEERBase)
9ece451d 142
b2e7f2d6 143set ( EXPORT FORWARD/analysis2/AliAODForwardMult.h
744c1fb2 144 FORWARD/analysis2/AliAODCentralMult.h
8449e3e0 145 FORWARD/analysis2/AliOADBForward.h
52047b6f 146 FORWARD/analysis2/AliForwardUtil.h
a19faec0 147 FORWARD/analysis2/AliLandauGaus.h
148 FORWARD/analysis2/AliLandauGausFitter.h
52047b6f 149 FORWARD/analysis2/AliFMDEventInspector.h
4545c3fe 150 FORWARD/analysis2/AliFMDMCEventInspector.h
8449e3e0 151 FORWARD/analysis2/AliForwardCorrectionManager.h
66ee9f2f 152 FORWARD/analysis2/AliCentralCorrectionManager.h
8449e3e0 153 FORWARD/analysis2/AliCorrectionManagerBase.h
bfab35d9 154 FORWARD/analysis2/AliFMDCorrAcceptance.h
155 FORWARD/analysis2/AliFMDCorrSecondaryMap.h
156 FORWARD/analysis2/AliFMDCorrELossFit.h
0ccdab7b 157 FORWARD/analysis2/AliFMDCorrNoiseGain.h
66ee9f2f 158 FORWARD/analysis2/AliBaseESDTask.h
159 FORWARD/analysis2/AliBaseAODTask.h
160 FORWARD/analysis2/AliFMDEnergyFitter.h
161 FORWARD/analysis2/AliMCAuxHandler.h
162 FORWARD/analysis2/AliDisplacedVertexSelection.h
edf918da 163 FORWARD/analysis2/AliFMDMCTrackELoss.h
164 FORWARD/analysis2/AliFMDEncodedEdx.h
165 FORWARD/analysis2/AliFMDStripIndex.h
166 FORWARD/analysis2/AliBaseMCTrackDensity.h
39ae5796 167 FORWARD/analysis2/AliForwardFlowWeights.h
aea8c945 168 FORWARD/GEO/AliAnalysisTaskZDCPbPb.h
4aa5e658 169 FORWARD/GEO/AliAnalysisTaskZDCpAcalib.h
aea8c945 170 FORWARD/GEO/AliAnalysisTaskZDCTreeMaker.h)
cc83fca2 171
b313ec91 172set ( DHDR PWGLFforward2LinkDef.h)
72cc12cd 173
3c097975 174# add_executable(runTrain
175# FORWARD/analysis2/trains/runMain.cxx)
176# target_link_libraries(runTrain
177# ${ARLIBS} ${SHLIBS} ${PBLIBS} ${EXEFLAGS} ${ROOTCLIBS})
178# install(TARGETS runTrain
179# RUNTIME DESTINATION bin/tgt_${ALICE_TARGET})
196434cd 180
3c097975 181add_executable(runTrain
a6c1c51d 182 FORWARD/trains/trainMain.cxx)
4bc32b87 183set(CMAKE_EXE_LINKER_FLAGS "${LDFLAGS}")
3c097975 184target_link_libraries(runTrain
a6c1c51d 185 ${BINLIBDIRS} ${ARLIBS} ${SHLIBS} ${PBLIBS} ${EXEFLAGS} ${ROOTCLIBS}
186 -lSTEERBase -lESD -lAOD -lOADB -lANALYSIS -lANALYSISalice)
3c097975 187install(TARGETS runTrain
a6c1c51d 188 RUNTIME DESTINATION bin/tgt_${ALICE_TARGET})
3c097975 189add_dependencies(runTrain STEERBase ESD AOD OADB ANALYSIS ANALYSISalice)
a6c1c51d 190
72cc12cd 191# --------------------------------------------------------------------
b2e7f2d6 192# Extra targets
193#
47e8f045 194add_custom_command( OUTPUT FORWARD/doc/alice-int-2012-040.pdf
195 COMMAND pdflatex alice-int-2012-040
196 COMMAND pdflatex alice-int-2012-040
197 COMMAND pdflatex alice-int-2012-040
b2e7f2d6 198 COMMAND mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/FORWARD/doc
47e8f045 199 COMMAND mv alice-int-2012-040.pdf ${CMAKE_CURRENT_BINARY_DIR}/FORWARD/doc/
b2e7f2d6 200 WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/FORWARD/doc
47e8f045 201 MAIN_DEPENDENCY FORWARD/doc/alice-int-2012-040.tex)
b2e7f2d6 202
203add_custom_command( OUTPUT FORWARD/doc/html/index.html
204 COMMAND mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/FORWARD/doc
1de8812e 205 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
b2e7f2d6 206 COMMAND doxygen ${CMAKE_CURRENT_BINARY_DIR}/FORWARD/doc/Doxyfile
4bcdcbc1 207 DEPENDS ${SRCS} ${HDRS})
b2e7f2d6 208
47e8f045 209add_custom_target( PWGLFforward-doc DEPENDS FORWARD/doc/alice-int-2012-040.pdf )
b313ec91 210add_custom_target( PWGLFforward-doxy DEPENDS FORWARD/doc/html/index.html )
b2e7f2d6 211
b313ec91 212add_custom_target( install-PWGLFforward2.par
3dd34bb1 213 COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_BINARY_DIR}/${PACKAGE}.par ${CMAKE_INSTALL_PREFIX}
214 COMMAND ${CMAKE_COMMAND} -E cmake_echo_color --green --bold "${PACKAGE}.par installed in ${CMAKE_INSTALL_PREFIX}"
936b0a6c 215 DEPENDS ${CMAKE_BINARY_DIR}/${PACKAGE}.par
216 DEPENDS test-${PACKAGE}.par)
3dd34bb1 217
b2e7f2d6 218# --------------------------------------------------------------------
72cc12cd 219# Extra installation targets
220#
221# Install scripts
222install ( DIRECTORY FORWARD/analysis2/scripts
b313ec91 223 DESTINATION PWGLF/FORWARD/analysis2
b4742e93 224 USE_SOURCE_PERMISSIONS
225 PATTERN "*~" EXCLUDE
226 PATTERN ".svn" EXCLUDE
227 PATTERN "*.d" EXCLUDE
228 PATTERN "*.so" EXCLUDE)
72cc12cd 229
9416c923 230# install QA scripts
231install ( DIRECTORY FORWARD/analysis2/qa
b313ec91 232 DESTINATION PWGLF/FORWARD/analysis2
b4742e93 233 USE_SOURCE_PERMISSIONS
234 PATTERN "*~" EXCLUDE
235 PATTERN ".svn" EXCLUDE
236 PATTERN "*.d" EXCLUDE
237 PATTERN "*.so" EXCLUDE)
9416c923 238
239# install correction scripts
240install ( DIRECTORY FORWARD/analysis2/corrs
b313ec91 241 DESTINATION PWGLF/FORWARD/analysis2
b4742e93 242 PATTERN "*~" EXCLUDE
243 PATTERN ".svn" EXCLUDE
244 PATTERN "*.d" EXCLUDE
245 PATTERN "*.so" EXCLUDE)
9416c923 246
506d0527 247# install trains
248install ( DIRECTORY FORWARD/analysis2/trains
b313ec91 249 DESTINATION PWGLF/FORWARD/analysis2
b4742e93 250 PATTERN "*~" EXCLUDE
251 PATTERN ".svn" EXCLUDE
252 PATTERN "*.d" EXCLUDE
253 PATTERN "*.so" EXCLUDE)
506d0527 254
a6c1c51d 255# install trains
256install ( DIRECTORY FORWARD/trains
257 DESTINATION PWGLF/FORWARD
be0cb943 258 FILES_MATCHING PATTERN "*.C"
259 PATTERN "*~" EXCLUDE
260 PATTERN ".svn" EXCLUDE)
261 # PATTERN "*.d" EXCLUDE
262 # PATTERN "*.so" EXCLUDE
263 # PATTERN "*.root" EXCLUDE
264 # PATTERN "*.png" EXCLUDE
265 # PATTERN "test*" EXCLUDE
266 # PATTERN "export*.C" EXCLUDE
267 # PATTERN "dndeta_*.C" EXCLUDE
268 # PATTERN "dndeta_*.root" EXCLUDE
a6c1c51d 269
72cc12cd 270# Install other scripts
0be6c8cd 271install ( FILES FORWARD/analysis2/AddTaskCentraldNdeta.C
3dd34bb1 272 FORWARD/analysis2/AddTaskCentralMCCorr.C
0be6c8cd 273 FORWARD/analysis2/AddTaskCentralMult.C
274 FORWARD/analysis2/AddTaskCentralTracks.C
f69bd0da 275 FORWARD/analysis2/AddTaskCopyHeader.C
f69bd0da 276 FORWARD/analysis2/AddTaskFMDELoss.C
9632bb06 277 FORWARD/analysis2/AddTaskFMDEventPlane.C
7a3e34f4 278 FORWARD/analysis2/AddTaskFMDMCTracks.C
8884c43e 279 FORWARD/analysis2/AddTaskForwardFlowQC.C
3dd34bb1 280 FORWARD/analysis2/AddTaskForwardMCCorr.C
efbb21e6 281 FORWARD/analysis2/AddTaskForwardMult.C
bfab35d9 282 FORWARD/analysis2/AddTaskForwardMultDists.C
87863667 283 FORWARD/analysis2/AddTaskForwardQA.C
b2e7f2d6 284 FORWARD/analysis2/AddTaskForwarddNdeta.C
1195ff50 285 FORWARD/analysis2/AddTaskMCTruthdNdeta.C
2b556440 286 FORWARD/analysis2/AddTaskMCParticleFilter.C
b2e7f2d6 287 FORWARD/analysis2/DrawdNdeta.C
2bc61f44 288 FORWARD/analysis2/DrawdNdetaSummary.C
bfab35d9 289 FORWARD/analysis2/DrawMCCorrSummary.C
2bc61f44 290 FORWARD/analysis2/DrawAODSummary.C
bfab35d9 291 FORWARD/analysis2/DrawMultDistsSummary.C
522419a8 292 FORWARD/analysis2/DrawUnfoldedSummary.C
fb1842e1 293 FORWARD/analysis2/ForwardAODConfig.C
3dd34bb1 294 FORWARD/analysis2/CentralAODConfig.C
a0a51272 295 FORWARD/analysis2/dNdetaConfig.C
72cc12cd 296 FORWARD/analysis2/MakeAOD.C
b2e7f2d6 297 FORWARD/analysis2/MakedNdeta.C
72cc12cd 298 FORWARD/analysis2/MakeELossFits.C
52047b6f 299 FORWARD/analysis2/MakeEvaluateTriggers.C
9632bb06 300 FORWARD/analysis2/MakeFlow.C
301 FORWARD/analysis2/MakeFMDEventPlane.C
3ababefa 302 FORWARD/analysis2/MakeForwardQA.C
3dd34bb1 303 FORWARD/analysis2/MakeMCCorr.C
72cc12cd 304 FORWARD/analysis2/OtherData.C
a0a51272 305 FORWARD/analysis2/other.root
b313ec91 306 DESTINATION PWGLF/FORWARD/analysis2 )
72cc12cd 307
66ee9f2f 308 # FORWARD/analysis2/AliFMDCorrAcceptance.h
309 # FORWARD/analysis2/AliFMDCorrDoubleHit.h
310 # FORWARD/analysis2/AliFMDCorrector.h
311 # FORWARD/analysis2/AliFMDCorrELossFit.h
312 # FORWARD/analysis2/AliFMDCorrMergingEfficiency.h
313 # FORWARD/analysis2/AliFMDCorrSecondaryMap.h
314 # FORWARD/analysis2/AliFMDCorrVertexBias.h
315 # FORWARD/analysis2/AliForwardUtil.h
316 # FORWARD/analysis2/AliForwardCorrectionManager.h
317 # FORWARD/analysis2/AliCorrectionManagerBase.h
318
72cc12cd 319# Install corrections
1de8812e 320install ( DIRECTORY FORWARD/corrections/Empirical
fb1842e1 321 FORWARD/corrections/Normalization
b313ec91 322 DESTINATION PWGLF/FORWARD/corrections
b4742e93 323 PATTERN "*~" EXCLUDE
72cc12cd 324 PATTERN ".svn" EXCLUDE)
325
326# Install shell script
327install ( FILES FORWARD/analysis2/Run.sh
47e8f045 328 FORWARD/analysis2/liteAnalysis.sh
329 FORWARD/analysis2/gridAnalysis.sh
522419a8 330 FORWARD/analysis2/baseAnalysis.sh
b313ec91 331 DESTINATION PWGLF/FORWARD/analysis2
72cc12cd 332 PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
333 GROUP_EXECUTE GROUP_READ
334 WORLD_EXECUTE WORLD_READ )
335
336
337# --------------------------------------------------------------------
338#
339# EOF
340#